X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Circ2d.h;h=1226a5f78f20cb3553b337d65f25271ac236bb78;hb=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;hp=11d18f6b665abdb313630e0fbc30e19a23bb0691;hpb=8dfbb935d2eac7b77029d1f090b84840ff27d612;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Circ2d.h b/src/GeomAPI/GeomAPI_Circ2d.h index 11d18f6b6..1226a5f78 100644 --- a/src/GeomAPI/GeomAPI_Circ2d.h +++ b/src/GeomAPI/GeomAPI_Circ2d.h @@ -1,12 +1,14 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Circ2d.h // Created: 29 May 2014 // Author: Artem ZHIDKOV -#ifndef GeomAPI_Circ2d_HeaderFile -#define GeomAPI_Circ2d_HeaderFile +#ifndef GeomAPI_Circ2d_H_ +#define GeomAPI_Circ2d_H_ #include -#include +#include class GeomAPI_Pnt2d; class GeomAPI_Dir2d; @@ -16,20 +18,31 @@ class GeomAPI_Dir2d; * \brief Circle in 2D */ -class GEOMAPI_EXPORT GeomAPI_Circ2d: public GeomAPI_Interface +class GeomAPI_Circ2d : public GeomAPI_Interface { -public: + public: /// Creation of circle defined by center point and circle radius - GeomAPI_Circ2d(const boost::shared_ptr& theCenter, - const boost::shared_ptr& theCirclePoint); + 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_Circ2d(const boost::shared_ptr& theCenter, - const boost::shared_ptr& theDir, - double theRadius); + GEOMAPI_EXPORT + GeomAPI_Circ2d(const std::shared_ptr& theCenter, + const std::shared_ptr& theDir, double theRadius); + + /// Return center of the circle + GEOMAPI_EXPORT + const std::shared_ptr center() const; + + /// Return radius of the circle + GEOMAPI_EXPORT + double radius() const; /// Project point on line - const boost::shared_ptr project(const boost::shared_ptr& thePoint) const; + GEOMAPI_EXPORT + const std::shared_ptr project( + const std::shared_ptr& thePoint) const; }; #endif