1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_PlanarEdges.hxx
4 // Created: 24 Jul 2014
5 // Author: Artem ZHIDKOV
7 #ifndef GEOMAPI_WIRE_H_
8 #define GEOMAPI_WIRE_H_
11 #include "GeomAPI_Edge.h"
12 #include "GeomAPI_Pnt.h"
13 #include "GeomAPI_Dir.h"
19 /**\class GeomAPI_PlanarEdges
21 * \brief Interface to the edge object
24 class GeomAPI_PlanarEdges : public GeomAPI_Shape
27 /// Creation of empty (null) shape
28 GEOMAPI_EXPORT GeomAPI_PlanarEdges();
30 GEOMAPI_EXPORT virtual bool isVertex() const;
32 /// Returns whether the shape is an edge
33 GEOMAPI_EXPORT virtual bool isEdge() const;
35 GEOMAPI_EXPORT void addEdge(std::shared_ptr<GeomAPI_Shape> theEdge);
36 GEOMAPI_EXPORT std::list<std::shared_ptr<GeomAPI_Shape> > getEdges();
38 /// Returns True if the wire is defined in a plane
39 GEOMAPI_EXPORT bool hasPlane() const;
41 /// Set/Get origin point
42 GEOMAPI_EXPORT void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
44 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt> origin() const;
46 /// Set/Get X direction vector
47 GEOMAPI_EXPORT void setDirX(const std::shared_ptr<GeomAPI_Dir>& theDirX);
48 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> dirX() const;
50 /// Set/Get Y direction vector
51 GEOMAPI_EXPORT void setDirY(const std::shared_ptr<GeomAPI_Dir>& theDirY);
52 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> dirY() const;
54 /// Set/Get Normal direction vector
55 GEOMAPI_EXPORT void setNorm(const std::shared_ptr<GeomAPI_Dir>& theNorm);
56 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir> norm() const;
59 std::shared_ptr<GeomAPI_Pnt> myOrigin;
60 std::shared_ptr<GeomAPI_Dir> myDirX;
61 std::shared_ptr<GeomAPI_Dir> myDirY;
62 std::shared_ptr<GeomAPI_Dir> myNorm;