1 // File: GeomAPI_PlanarEdges.hxx
2 // Created: 24 Jul 2014
3 // Author: Artem ZHIDKOV
5 #ifndef GEOMAPI_WIRE_H_
6 #define GEOMAPI_WIRE_H_
9 #include "GeomAPI_Edge.h"
10 #include "GeomAPI_Pnt.h"
11 #include "GeomAPI_Dir.h"
17 /**\class GeomAPI_PlanarEdges
19 * \brief Interface to the edge object
22 class GeomAPI_PlanarEdges : public GeomAPI_Shape
25 /// Creation of empty (null) shape
26 GEOMAPI_EXPORT GeomAPI_PlanarEdges();
28 GEOMAPI_EXPORT virtual bool isVertex() const;
30 /// Returns whether the shape is an edge
31 GEOMAPI_EXPORT virtual bool isEdge() const;
33 GEOMAPI_EXPORT void addEdge(std::shared_ptr<GeomAPI_Shape> theEdge);
34 GEOMAPI_EXPORT std::list<std::shared_ptr<GeomAPI_Shape> > getEdges();
36 /// Returns True if the wire is defined in a plane
37 GEOMAPI_EXPORT bool hasPlane() const;
39 /// Set/Get origin point
40 GEOMAPI_EXPORT void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
42 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt> origin() const;
44 /// Set/Get X direction vector
45 GEOMAPI_EXPORT void setDirX(const std::shared_ptr<GeomAPI_Dir>& theDirX);
46 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> dirX() const;
48 /// Set/Get Y direction vector
49 GEOMAPI_EXPORT void setDirY(const std::shared_ptr<GeomAPI_Dir>& theDirY);
50 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> dirY() const;
52 /// Set/Get Normal direction vector
53 GEOMAPI_EXPORT void setNorm(const std::shared_ptr<GeomAPI_Dir>& theNorm);
54 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> norm() const;
57 std::shared_ptr<GeomAPI_Pnt> myOrigin;
58 std::shared_ptr<GeomAPI_Dir> myDirX;
59 std::shared_ptr<GeomAPI_Dir> myDirY;
60 std::shared_ptr<GeomAPI_Dir> myNorm;