Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt2d.h
index 4470a2aa6d0a995170c2a6e44a09790bf0983438..bd0000fdb867d2e0bc919862bf41f599db18cf8b 100644 (file)
@@ -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 <GeomAPI_Interface.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 class GeomAPI_XY;
 class GeomAPI_Pnt;
@@ -23,7 +25,7 @@ class GEOMAPI_EXPORT GeomAPI_Pnt2d : public GeomAPI_Interface
   /// Creation of point by coordinates
   GeomAPI_Pnt2d(const double theX, const double theY);
   /// Creation of point by coordinates
-  GeomAPI_Pnt2d(const boost::shared_ptr<GeomAPI_XY>& theCoords);
+  GeomAPI_Pnt2d(const std::shared_ptr<GeomAPI_XY>& theCoords);
 
   /// returns X coordinate
   double x() const;
@@ -36,18 +38,18 @@ class GEOMAPI_EXPORT GeomAPI_Pnt2d : public GeomAPI_Interface
   void setY(const double theY);
 
   /// Returns the 3D point
-  boost::shared_ptr<GeomAPI_Pnt> to3D(const boost::shared_ptr<GeomAPI_Pnt>& theOrigin,
-                                      const boost::shared_ptr<GeomAPI_Dir>& theDirX,
-                                      const boost::shared_ptr<GeomAPI_Dir>& theDirY);
+  std::shared_ptr<GeomAPI_Pnt> to3D(const std::shared_ptr<GeomAPI_Pnt>& theOrigin,
+                                      const std::shared_ptr<GeomAPI_Dir>& theDirX,
+                                      const std::shared_ptr<GeomAPI_Dir>& theDirY);
 
   /// returns coordinates of the point
-  const boost::shared_ptr<GeomAPI_XY> xy();
+  const std::shared_ptr<GeomAPI_XY> xy();
 
   /// Distance between two points
-  double distance(const boost::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
+  double distance(const std::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
 
   /// Returns whether the distance between two points is less then precision confusion
-  bool isEqual(const boost::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
+  bool isEqual(const std::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
 };
 
 #endif