Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / GeomAPI / GeomAPI_Vertex.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAPI_Vertex.hxx
4 // Created:     16 Dec 2014
5 // Author:      Vitaly Smetannikov
6
7 #ifndef GeomAPI_Vertex_H_
8 #define GeomAPI_Vertex_H_
9
10 #include <GeomAPI_Shape.h>
11
12 class GeomAPI_Pnt;
13
14 /**\class GeomAPI_Vertex
15 * \ingroup DataModel
16  * \brief Interface to the vertex object
17  */
18
19 class GEOMAPI_EXPORT GeomAPI_Vertex : public GeomAPI_Shape
20 {
21 public:
22    /// Creation of empty (null) shape
23    GeomAPI_Vertex();
24
25    /// Creation of edge by the edge-shape
26    GeomAPI_Vertex(const std::shared_ptr<GeomAPI_Shape>& theShape);
27
28   /// Returns the first vertex coordinates of the edge 
29   std::shared_ptr<GeomAPI_Pnt> point();
30
31   /// Returns true if the current edge is geometrically equal to the given edge
32   bool isEqual(std::shared_ptr<GeomAPI_Shape> theVert);
33 };
34
35 #endif
36