X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Circ2d.h;h=58a292c162dd49fec0ce435562a1f5be72526d52;hb=c3abf4152cb6f2fce8a3c528f9104c0058f3cc3c;hp=8b91d8332f3adeb2614646ac9dae3351e4b7dcff;hpb=cb65395939911675238e6b5668524c12d71ad9df;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Circ2d.h b/src/GeomAPI/GeomAPI_Circ2d.h index 8b91d8332..58a292c16 100644 --- a/src/GeomAPI/GeomAPI_Circ2d.h +++ b/src/GeomAPI/GeomAPI_Circ2d.h @@ -2,28 +2,40 @@ // 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 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); + /// 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); + + /// Return center of the circle + const boost::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 boost::shared_ptr project( + const boost::shared_ptr& thePoint) const; }; #endif