Salome HOME
2D point selection in multi-rotation/multi-translation.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Tools.h
index a574db78a03f84cfd693cec81dbc3f49736edeb4..32dfbb129670f402fe0cccaa981a84c8fc3d9527 100644 (file)
@@ -7,9 +7,27 @@
 #ifndef SKETCHPLUGIN_TOOLS_H_
 #define SKETCHPLUGIN_TOOLS_H_
 
+#include <GeomAPI_Pnt2d.h>
+
 #include <ModelAPI_Feature.h>
+#include <ModelAPI_Attribute.h>
+
+namespace SketchPlugin_Tools {
 
 /// Clears text expressions for all attributes of the feature 
 void clearExpressions(FeaturePtr theFeature);
 
+/// \return coincidence point
+/// \param[in] theStartCoin coincidence feature
+std::shared_ptr<GeomAPI_Pnt2d> getCoincidencePoint(const FeaturePtr theStartCoin);
+
+/// Finds lines coincident at point
+/// \param[in] theStartCoin coincidence feature
+/// \param[in] theAttr attribute name
+/// \param[out] theList list of lines
+void findCoincidences(const FeaturePtr theStartCoin,
+                      const std::string& theAttr,
+                      std::set<FeaturePtr>& theList);
+}; // namespace SketchPlugin_Tools
+
 #endif // SKETCHPLUGIN_TOOLS_H_
\ No newline at end of file