20 #ifndef GEOMAPI_WIRE_H_
21 #define GEOMAPI_WIRE_H_
24 #include "GeomAPI_Edge.h"
25 #include "GeomAPI_Pnt.h"
26 #include "GeomAPI_Dir.h"
27 #include "GeomAPI_Ax3.h"
46 GEOMAPI_EXPORT
virtual bool isVertex()
const;
49 GEOMAPI_EXPORT
virtual bool isEdge()
const;
51 GEOMAPI_EXPORT
void addEdge(std::shared_ptr<GeomAPI_Shape> theEdge);
53 GEOMAPI_EXPORT std::list<std::shared_ptr<GeomAPI_Shape> >
getEdges();
56 GEOMAPI_EXPORT
bool hasPlane()
const;
59 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
origin()
const;
62 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
dirX()
const;
65 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
dirY()
const;
68 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
norm()
const;
71 GEOMAPI_EXPORT
virtual bool isPlanar()
const;
77 GEOMAPI_EXPORT
void setPlane(
const std::shared_ptr<GeomAPI_Pnt>& theOrigin,
78 const std::shared_ptr<GeomAPI_Dir>& theDirX,
79 const std::shared_ptr<GeomAPI_Dir>& theNorm);
83 virtual bool isEqual(
const std::shared_ptr<GeomAPI_Shape> theShape)
const;
87 std::shared_ptr<GeomAPI_Ax3> myPlane;
Interface to the set of edges located in one plane.
Definition: GeomAPI_PlanarEdges.h:40
virtual bool isEdge() const
Returns whether the shape is alone edge.
Definition: GeomAPI_PlanarEdges.cpp:74
virtual bool isPlanar() const
Returns whether the shape is planar.
Definition: GeomAPI_PlanarEdges.cpp:106
std::shared_ptr< GeomAPI_Dir > dirY() const
Returns Y direction vector.
Definition: GeomAPI_PlanarEdges.cpp:92
void addEdge(std::shared_ptr< GeomAPI_Shape > theEdge)
Appends the edge to the set.
Definition: GeomAPI_PlanarEdges.cpp:43
std::list< std::shared_ptr< GeomAPI_Shape > > getEdges()
Returns the list of edges in this interface.
Definition: GeomAPI_PlanarEdges.cpp:53
std::shared_ptr< GeomAPI_Dir > dirX() const
Returns X direction vector.
Definition: GeomAPI_PlanarEdges.cpp:85
std::shared_ptr< GeomAPI_Pnt > origin() const
Returns the plane origin point.
Definition: GeomAPI_PlanarEdges.cpp:78
virtual bool isEqual(const std::shared_ptr< GeomAPI_Shape > theShape) const
Returns whether the shapes are equal.
Definition: GeomAPI_PlanarEdges.cpp:118
void setPlane(const std::shared_ptr< GeomAPI_Pnt > &theOrigin, const std::shared_ptr< GeomAPI_Dir > &theDirX, const std::shared_ptr< GeomAPI_Dir > &theNorm)
Set working plane.
Definition: GeomAPI_PlanarEdges.cpp:111
std::shared_ptr< GeomAPI_Dir > norm() const
Returns Z direction vector.
Definition: GeomAPI_PlanarEdges.cpp:99
virtual bool isVertex() const
Returns whether the shape is alone vertex.
Definition: GeomAPI_PlanarEdges.cpp:70
GeomAPI_PlanarEdges()
Creation of empty (null) shape.
Definition: GeomAPI_PlanarEdges.cpp:35
bool hasPlane() const
Returns True if the wire is defined in a plane.
Definition: GeomAPI_PlanarEdges.cpp:66
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43