X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=759f490d540b0edd87a4aadc0cfec040ae2fe1b8;hb=29cf3cffcf4536d96e3546f6c451359387e670e6;hp=4139385d632fcfdb7905f1f8ad4bbb38f52e11c3;hpb=973230a6a9b5c239063e3f7ae7a74601238b2a5f;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h index 4139385d6..759f490d5 100644 --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -11,7 +11,10 @@ #include +#include + class Handle_V3d_View; +class ModelAPI_Feature; /*! \class PartSet_Tools @@ -25,6 +28,13 @@ public: /// \param theView a 3D view static gp_Pnt ConvertClickToPoint(QPoint thePoint, Handle_V3d_View theView); + /// \brief Converts the 3D point to the projected coodinates on the sketch plane. + /// \param thePoint the 3D point in the viewer + /// \param theSketch the sketch feature + /// \param theX the X coordinate + /// \param theY the Y coordinate + static void ConvertTo2D(const gp_Pnt& thePoint, boost::shared_ptr theSketch, + double& theX, double& theY); }; #endif