Salome HOME
Merge remote-tracking branch 'origin/BR_WIRE_RESULTS'
[modules/shaper.git] / src / GeomAPI / GeomAPI_Wire.h
1 // File:        GeomAPI_Wire.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
11 #include <boost/smart_ptr/shared_ptr.hpp>
12
13 #include <list>
14
15 /**\class GeomAPI_Wire
16  * \ingroup DataModel
17  * \brief Interface to the edge object
18  */
19
20 class GEOMAPI_EXPORT GeomAPI_Wire : public GeomAPI_Shape
21 {
22  public:
23   /// Creation of empty (null) shape
24   GeomAPI_Wire();
25
26   virtual bool isVertex() const
27   {
28     return false;
29   }
30
31   /// Returns whether the shape is an edge
32   virtual bool isEdge() const
33   {
34     return false;
35   }
36
37   void addEdge(boost::shared_ptr<GeomAPI_Shape> theEdge);
38   std::list<boost::shared_ptr<GeomAPI_Shape> > getEdges();
39
40 };
41
42 #endif
43