]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_ConstraintDistance.h
Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintDistance.h
index 2294ac6ef2be8483ab3d3c1339bbf0ce982223c7..afb687d09c49f1caa24932f4b821b6e9a38f556d 100644 (file)
@@ -8,9 +8,13 @@
 #include "SketchPlugin.h"
 #include "SketchPlugin_Constraint.h"
 #include "SketchPlugin_Sketch.h"
+#include "ModelAPI_Data.h"
 
 #include <list>
 
+class SketchPlugin_Line;
+class GeomDataAPI_Point2D;
+
 /** \class SketchPlugin_ConstraintDistance
  *  \ingroup DataModel
  *  \brief Feature for creation of a new constraint which defines a distance
@@ -52,4 +56,15 @@ public:
   SketchPlugin_ConstraintDistance();
 };
 
+
+/// Obtain the point object from specified constraint parameter
+boost::shared_ptr<GeomDataAPI_Point2D> getFeaturePoint(DataPtr theData,
+                                                       const std::string&  theAttribute);
+
+boost::shared_ptr<SketchPlugin_Line> getFeatureLine(DataPtr theData, const std::string& theAttribute);
+
+boost::shared_ptr<GeomAPI_Pnt2d> getProjectionPoint(const boost::shared_ptr<SketchPlugin_Line>& theLine, 
+                                                    const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+
+
 #endif