X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Finformation.h;fp=src%2Fbase%2Finformation.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=36829776954360da6f226c588e9e3d8605d4c0ce;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/information.h b/src/base/information.h deleted file mode 100644 index 3682977..0000000 --- a/src/base/information.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef __INFORMATION_H__ -#define __INFORMATION_H__ - -#include "entitycontainer.h" -#include "line.h" -#include "arc.h" - -/** - * Class for getting information about entities. This includes - * also things like the end point of an element which is - * nearest to a given coordinate. - * There's no interaction handled in this class. - * This class is bound to an entity container. - * - * @author Andrew Mustun - */ -class Information -{ - public: - Information(EntityContainer & entityContainer); - - static bool isDimension(RS2::EntityType type); - static bool isTrimmable(Entity * e); - static bool isTrimmable(Entity * e1, Entity * e2); - Vector getNearestEndpoint(const Vector & point, double * dist = NULL) const; - Vector getNearestPointOnEntity(const Vector & point, bool onEntity = true, - double * dist = NULL, Entity ** entity = NULL) const; - Entity * getNearestEntity(const Vector & point, double * dist = NULL, - RS2::ResolveLevel level = RS2::ResolveAll) const; - static VectorSolutions getIntersection(Entity * e1, Entity * e2, bool onEntities = false); - static VectorSolutions getIntersectionLineLine(Line * e1, Line * e2); - static VectorSolutions getIntersectionLineArc(Line * line, Arc * arc); - static VectorSolutions getIntersectionArcArc(Arc * e1, Arc * e2); - static VectorSolutions getIntersectionLineEllipse(Line * line, Ellipse * ellipse); - static bool isPointInsideContour(const Vector & point, EntityContainer * contour, - bool * onContour = NULL); - - protected: - EntityContainer * container; -}; - -#endif