X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Circ2d.h;h=9761c882900d10b1a3b2f576c529571d5008ae65;hb=9e10a25021a539ae9bb44e85e244a8e3fa8119ed;hp=1870cbba80e160350ed0e6b7e1beae04af5b52b6;hpb=258a626d26271b93bae55eb0803de020e2b6f315;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Circ2d.h b/src/GeomAPI/GeomAPI_Circ2d.h index 1870cbba8..9761c8829 100644 --- a/src/GeomAPI/GeomAPI_Circ2d.h +++ b/src/GeomAPI/GeomAPI_Circ2d.h @@ -1,35 +1,43 @@ +// 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; /**\class GeomAPI_Circ2d * \ingroup DataModel - * \brief Line in 2D + * \brief Circle in 2D */ -class GEOMAPI_EXPORT GeomAPI_Circ2d: public GeomAPI_Interface +class GEOMAPI_EXPORT 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_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_Circ2d(const std::shared_ptr& theCenter, + const std::shared_ptr& theDir, double theRadius); + + /// Return center of the circle + const std::shared_ptr center() const; + + /// Return radius of the circle + double radius() const; /// Project point on line - const boost::shared_ptr project(const boost::shared_ptr& thePoint) const; + const std::shared_ptr project( + const std::shared_ptr& thePoint) const; }; #endif