]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAPI/GeomAPI_PlanarEdges.h
Salome HOME
Fix for crash and invisible bodies on Debian Squeeze SALOME version.
[modules/shaper.git] / src / GeomAPI / GeomAPI_PlanarEdges.h
1 // File:        GeomAPI_PlanarEdges.hxx
2 // Created:     24 Jul 2014
3 // Author:      Artem ZHIDKOV
4
5 #ifndef GEOMAPI_WIRE_H_
6 #define GEOMAPI_WIRE_H_
7
8 #include "GeomAPI.h"
9 #include "GeomAPI_Edge.h"
10 #include "GeomAPI_Pnt.h"
11 #include "GeomAPI_Dir.h"
12
13 #include <boost/smart_ptr/shared_ptr.hpp>
14
15 #include <list>
16
17 /**\class GeomAPI_PlanarEdges
18  * \ingroup DataModel
19  * \brief Interface to the edge object
20  */
21
22 class GeomAPI_PlanarEdges : public GeomAPI_Shape
23 {
24  public:
25   /// Creation of empty (null) shape
26   GEOMAPI_EXPORT GeomAPI_PlanarEdges();
27
28   GEOMAPI_EXPORT virtual bool isVertex() const;
29
30   /// Returns whether the shape is an edge
31   GEOMAPI_EXPORT virtual bool isEdge() const;
32
33   GEOMAPI_EXPORT void addEdge(boost::shared_ptr<GeomAPI_Shape> theEdge);
34   GEOMAPI_EXPORT std::list<boost::shared_ptr<GeomAPI_Shape> > getEdges();
35
36   /// Returns True if the wire is defined in a plane
37   GEOMAPI_EXPORT bool hasPlane() const;
38
39   /// Set/Get origin point
40   GEOMAPI_EXPORT void setOrigin(const boost::shared_ptr<GeomAPI_Pnt>& theOrigin);
41   GEOMAPI_EXPORT boost::shared_ptr<GeomAPI_Pnt> origin() const;
42
43   /// Set/Get X direction vector
44   GEOMAPI_EXPORT void setDirX(const boost::shared_ptr<GeomAPI_Dir>& theDirX);
45   GEOMAPI_EXPORT boost::shared_ptr<GeomAPI_Dir> dirX() const;
46
47   /// Set/Get Y direction vector
48   GEOMAPI_EXPORT void setDirY(const boost::shared_ptr<GeomAPI_Dir>& theDirY);
49   GEOMAPI_EXPORT boost::shared_ptr<GeomAPI_Dir> dirY() const;
50
51   /// Set/Get Normal direction vector
52   GEOMAPI_EXPORT void setNorm(const boost::shared_ptr<GeomAPI_Dir>& theNorm);
53   GEOMAPI_EXPORT boost::shared_ptr<GeomAPI_Dir> norm() const;
54
55 private:
56   boost::shared_ptr<GeomAPI_Pnt> myOrigin;
57   boost::shared_ptr<GeomAPI_Dir> myDirX;
58   boost::shared_ptr<GeomAPI_Dir> myDirY;
59   boost::shared_ptr<GeomAPI_Dir> myNorm;
60 };
61
62 #endif
63