Salome HOME
f1c74c5d55573b1f92310a1d306aa7cc7339611d
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.h
1 // File:        GeomAPI_Edge.hxx
2 // Created:     24 Jul 2014
3 // Author:      Artem ZHIDKOV
4
5 #ifndef GeomAPI_Edge_H_
6 #define GeomAPI_Edge_H_
7
8 #include <GeomAPI_Shape.h>
9
10 /**\class GeomAPI_Edge
11  * \ingroup DataModel
12  * \brief Interface to the edge object
13  */
14
15 class GEOMAPI_EXPORT GeomAPI_Edge : public GeomAPI_Shape
16 {
17  public:
18   /// Creation of empty (null) shape
19   GeomAPI_Edge();
20
21   /// Returns whether the shape is a vertex
22   virtual bool isVertex() const
23   {
24     return false;
25   }
26
27   /// Returns whether the shape is an edge
28   virtual bool isEdge() const
29   {
30     return true;
31   }
32
33   /// Verifies that the edge is a line
34   bool isLine() const;
35
36   /// Verifies that the edge is a circle
37   bool isCircle() const;
38
39   /// Verifies that the edge is an arc of circle
40   bool isArc() const;
41 };
42
43 #endif
44