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>
14 namespace SketchPlugin_Tools {
16 /// Clears text expressions for all attributes of the feature
17 void clearExpressions(FeaturePtr theFeature);
19 /// \return coincidence point
20 /// \param[in] theStartCoin coincidence feature
21 std::shared_ptr<GeomAPI_Pnt2d> getCoincidencePoint(const FeaturePtr theStartCoin);
23 /// Finds lines coincident at point
24 /// \param[in] theStartCoin coincidence feature
25 /// \param[in] theAttr attribute name
26 /// \param[out] theList list of lines
27 void findCoincidences(const FeaturePtr theStartCoin,
28 const std::string& theAttr,
29 std::set<FeaturePtr>& theList);
31 }; // namespace SketchPlugin_Tools
33 #endif // SKETCHPLUGIN_TOOLS_H_