X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt2d.h;h=d3b3426cdca61c9bbbc6436f6820681b2750c79a;hb=69ff21c1bc1af665be9419918f64f5a7d1878cbd;hp=4470a2aa6d0a995170c2a6e44a09790bf0983438;hpb=acebef0bc5fb22dc9672e0046085b896e957af56;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt2d.h b/src/GeomAPI/GeomAPI_Pnt2d.h index 4470a2aa6..d3b3426cd 100644 --- a/src/GeomAPI/GeomAPI_Pnt2d.h +++ b/src/GeomAPI/GeomAPI_Pnt2d.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Pnt2d.h // Created: 29 May 2014 // Author: Artem ZHIDKOV @@ -6,7 +8,7 @@ #define GeomAPI_Pnt2d_H_ #include -#include +#include class GeomAPI_XY; class GeomAPI_Pnt; @@ -17,37 +19,47 @@ class GeomAPI_Dir; * \brief 2D point defined by two coordinates */ -class GEOMAPI_EXPORT GeomAPI_Pnt2d : public GeomAPI_Interface +class GeomAPI_Pnt2d : public GeomAPI_Interface { public: /// Creation of point by coordinates + GEOMAPI_EXPORT GeomAPI_Pnt2d(const double theX, const double theY); /// Creation of point by coordinates - GeomAPI_Pnt2d(const boost::shared_ptr& theCoords); + GEOMAPI_EXPORT + GeomAPI_Pnt2d(const std::shared_ptr& theCoords); /// returns X coordinate + GEOMAPI_EXPORT double x() const; /// returns Y coordinate + GEOMAPI_EXPORT double y() const; /// sets X coordinate + GEOMAPI_EXPORT void setX(const double theX); /// sets Y coordinate + GEOMAPI_EXPORT void setY(const double theY); /// Returns the 3D point - boost::shared_ptr to3D(const boost::shared_ptr& theOrigin, - const boost::shared_ptr& theDirX, - const boost::shared_ptr& theDirY); + GEOMAPI_EXPORT + std::shared_ptr to3D(const std::shared_ptr& theOrigin, + const std::shared_ptr& theDirX, + const std::shared_ptr& theDirY); /// returns coordinates of the point - const boost::shared_ptr xy(); + GEOMAPI_EXPORT + const std::shared_ptr xy(); /// Distance between two points - double distance(const boost::shared_ptr& theOther) const; + GEOMAPI_EXPORT + double distance(const std::shared_ptr& theOther) const; /// Returns whether the distance between two points is less then precision confusion - bool isEqual(const boost::shared_ptr& theOther) const; + GEOMAPI_EXPORT + bool isEqual(const std::shared_ptr& theOther) const; }; #endif