Salome HOME
Changes for modifying of GeomData objects by GeomAPI objects
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt2d.h
index 097e8786ea144dc232309a3eae42fa769e2f18d6..a1faf626c561b1e5df015cb502575af70cbab1c4 100644 (file)
@@ -8,7 +8,7 @@
 #include <GeomAPI_Interface.h>
 #include <boost/shared_ptr.hpp>
 
-class GeomAPI_XYZ;
+class GeomAPI_XY;
 
 /**\class GeomAPI_Pnt2d
  * \ingroup DataModel
@@ -20,6 +20,8 @@ class GEOMAPI_EXPORT GeomAPI_Pnt2d: public GeomAPI_Interface
 public:
   /// 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);
 
   /// returns X coordinate
   double x() const;
@@ -31,6 +33,9 @@ public:
   /// sets Y coordinate
   void setY(const double theY);
 
+  /// returns coordinates of the point
+  const boost::shared_ptr<GeomAPI_XY> xy();
+
   /// Distance between two points
   double distance(const boost::shared_ptr<GeomAPI_Pnt2d>& theOther) const;
 };