X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Circ2d.h;h=2306b87e727fa9a8c6fc5e927124ff651415031b;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=478c9986a76e7d3648569f78c7973b71e1c3a4a7;hpb=868158fe6d39b25e60ac528295b1c908821e4af5;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Circ2d.h b/src/GeomAPI/GeomAPI_Circ2d.h index 478c9986a..2306b87e7 100644 --- a/src/GeomAPI/GeomAPI_Circ2d.h +++ b/src/GeomAPI/GeomAPI_Circ2d.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_Circ2d.h -// Created: 29 May 2014 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-2023 CEA, EDF +// +// 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_Circ2d_H_ #define GeomAPI_Circ2d_H_ @@ -10,8 +23,10 @@ #include #include +class GeomAPI_Ax3; class GeomAPI_Pnt2d; class GeomAPI_Dir2d; +class GeomAPI_Shape; /**\class GeomAPI_Circ2d * \ingroup DataModel @@ -20,27 +35,31 @@ class GeomAPI_Dir2d; class GeomAPI_Circ2d : public GeomAPI_Interface { - public: +public: + /// Creation of circle defined by center point and circle radius + GEOMAPI_EXPORT + GeomAPI_Circ2d(const double theCenterX, const double theCenterY, const double theRadius); + /// Creation of circle defined by center point and circle radius - GEOMAPI_EXPORT + GEOMAPI_EXPORT GeomAPI_Circ2d(const std::shared_ptr& theCenter, const std::shared_ptr& theCirclePoint); /// Creation of circle defined by center point, direction and circle radius - GEOMAPI_EXPORT + GEOMAPI_EXPORT GeomAPI_Circ2d(const std::shared_ptr& theCenter, const std::shared_ptr& theDir, double theRadius); /// Return center of the circle - GEOMAPI_EXPORT + GEOMAPI_EXPORT const std::shared_ptr center() const; /// Return radius of the circle - GEOMAPI_EXPORT + GEOMAPI_EXPORT double radius() const; /// Project point on line - GEOMAPI_EXPORT + GEOMAPI_EXPORT const std::shared_ptr project( const std::shared_ptr& thePoint) const;