#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
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