Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt2d.h
index a1faf626c561b1e5df015cb502575af70cbab1c4..91aec7eee0b22864d460c5b2a3fc972ddab6b7f3 100644 (file)
@@ -9,6 +9,8 @@
 #include <boost/shared_ptr.hpp>
 
 class GeomAPI_XY;
+class GeomAPI_Pnt;
+class GeomAPI_Dir;
 
 /**\class GeomAPI_Pnt2d
  * \ingroup DataModel
@@ -33,6 +35,11 @@ public:
   /// sets Y coordinate
   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);
+
   /// returns coordinates of the point
   const boost::shared_ptr<GeomAPI_XY> xy();