Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / PartSet / PartSet_FeatureArcPrs.h
index 80d07e014d1c1c2a3d3b6df87ff771c2ace62bb6..b06e0882bb080e0c232b2280f537d90f6719dfab 100644 (file)
@@ -51,8 +51,15 @@ public:
   /// \return next attribute selection mode
   virtual PartSet_SelectionMode getNextMode(const std::string& theAttribute) const;
 
-  void projectPointOnArc(gp_Pnt& thePoint, Handle_V3d_View theView,
-                         double& theX, double& theY);
+  /// Project the view point on the feature. The output coordinates belong to the feature
+  /// \param theFeature a feature
+  /// \param theSketch the sketch feature
+  /// \param thePoint a viewer point
+  /// \param theView the OCC view
+  /// \theX the output horizontal coordinate of a projected point
+  /// \theY the output vertical coordinate of a projected point
+  static void projectPointOnFeature(FeaturePtr theFeature, FeaturePtr theSketch, gp_Pnt& thePoint,
+                                    Handle_V3d_View theView, double& theX, double& theY);
 
   /// \brief Move the full feature.
   /// \param theDeltaX the delta for X coordinate is moved