1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_Tools.h
4 // Created: 07 July 2015
5 // Author: Sergey POKHODENKO
7 #ifndef SKETCHPLUGIN_TOOLS_H_
8 #define SKETCHPLUGIN_TOOLS_H_
10 #include <GeomAPI_Pnt2d.h>
12 #include <ModelAPI_Feature.h>
13 #include <ModelAPI_Attribute.h>
15 namespace SketchPlugin_Tools {
17 /// Clears text expressions for all attributes of the feature
18 void clearExpressions(FeaturePtr theFeature);
20 /// \return coincidence point
21 /// \param[in] theStartCoin coincidence feature
22 std::shared_ptr<GeomAPI_Pnt2d> getCoincidencePoint(const FeaturePtr theStartCoin);
24 /// Finds lines coincident at point
25 /// \param[in] theStartCoin coincidence feature
26 /// \param[in] theAttr attribute name
27 /// \param[out] theList list of lines
28 void findCoincidences(const FeaturePtr theStartCoin,
29 const std::string& theAttr,
30 std::set<FeaturePtr>& theList);
31 }; // namespace SketchPlugin_Tools
33 #endif // SKETCHPLUGIN_TOOLS_H_