X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Vertex.h;h=13668b6af2c4c1034c719c06d6ba5b1b99ad28d3;hb=02018d26c9d5f1f36661ac3c8b40182ab9f98d98;hp=c1ec7109c3d669158ffad59dd374360ddc6f1d32;hpb=f2337211db0c2b449dd065dd195ffe76d5fd7116;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Vertex.h b/src/GeomAPI/GeomAPI_Vertex.h index c1ec7109c..13668b6af 100644 --- a/src/GeomAPI/GeomAPI_Vertex.h +++ b/src/GeomAPI/GeomAPI_Vertex.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_Vertex.hxx -// Created: 16 Dec 2014 -// Author: Vitaly Smetannikov +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef GeomAPI_Vertex_H_ #define GeomAPI_Vertex_H_ @@ -11,34 +24,35 @@ class GeomAPI_Pnt; -/**\class GeomAPI_Vertex -* \ingroup DataModel - * \brief Interface to the vertex object - */ - -class 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_EXPORT - 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 vertex by the vertex-shape. + GEOMAPI_EXPORT + GeomAPI_Vertex(const std::shared_ptr& theShape); - /// Creation of vertex by 3d coordinates - GEOMAPI_EXPORT - GeomAPI_Vertex(double theX, double theY, double theZ); + /// Creation of vertex by 3d coordinates. + GEOMAPI_EXPORT + GeomAPI_Vertex(double theX, double theY, double theZ); - /// Returns the first vertex coordinates of the edge - GEOMAPI_EXPORT + /// 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 - GEOMAPI_EXPORT - bool isEqual(const std::shared_ptr theVert) const; + /// Returns true if the current edge is geometrically equal to the given edge. + GEOMAPI_EXPORT + virtual bool isEqual(const std::shared_ptr theVert) const; }; +//! Pointer on the object +typedef std::shared_ptr GeomVertexPtr; + #endif