]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAPI/GeomAPI_Edge.h
Salome HOME
Define guards are corrected according to the code style
[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   { return false; }
24
25   /// Returns whether the shape is an edge
26   virtual bool isEdge() const
27   { return true; }
28
29   /// Verifies that the edge is a line
30   bool isLine() const;
31
32   /// Verifies that the edge is a circle
33   bool isCircle() const;
34
35   /// Verifies that the edge is an arc of circle
36   bool isArc() const;
37 };
38
39 #endif
40