X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Vertex.h;h=c5f0dfe27144e2ff9054a7287aeefc43f26adb41;hb=bdbfb368d71ed11cc0391354a7d86c880cd94949;hp=3b517a8632a0e61b4a894093058d6eadcfe247c7;hpb=5453faccbabc730f9816c502460cd3ec37ef5621;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Vertex.h b/src/GeomAPI/GeomAPI_Vertex.h index 3b517a863..c5f0dfe27 100644 --- a/src/GeomAPI/GeomAPI_Vertex.h +++ b/src/GeomAPI/GeomAPI_Vertex.h @@ -11,24 +11,30 @@ class GeomAPI_Pnt; -/**\class GeomAPI_Vertex -* \ingroup DataModel - * \brief Interface to the vertex object - */ - -class GEOMAPI_EXPORT GeomAPI_Vertex : public GeomAPI_Shape +/// \class GeomAPI_Vertex +/// \ingroup DataModel +/// \brief Interface to the vertex object. +class GeomAPI_Vertex: public GeomAPI_Shape { public: - /// Creation of empty (null) shape - GeomAPI_Vertex(); + /// Creation of empty (null) shape. + GEOMAPI_EXPORT + GeomAPI_Vertex(); + + /// Creation of vertex by the vertex-shape. + GEOMAPI_EXPORT + GeomAPI_Vertex(const std::shared_ptr& theShape); - /// Creation of edge by the edge-shape - GeomAPI_Vertex(const std::shared_ptr& theShape); + /// Creation of vertex by 3d coordinates. + GEOMAPI_EXPORT + GeomAPI_Vertex(double theX, double theY, double theZ); - /// Returns the first vertex coordinates of the edge + /// Returns the first vertex coordinates of the edge. + GEOMAPI_EXPORT std::shared_ptr point(); - /// Returns true if the current edge is geometrically equal to the given edge + /// Returns true if the current edge is geometrically equal to the given edge. + GEOMAPI_EXPORT bool isEqual(const std::shared_ptr theVert) const; };