Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #2024: Redesign of circle and arc of circle
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_Tools.h
diff --git
a/src/SketchPlugin/SketchPlugin_Tools.h
b/src/SketchPlugin/SketchPlugin_Tools.h
index ef26d67c0560f73d29f8d3e9d025bd9bc1d1b53b..622b63d68705d6b06e44e28602d5e4e51a0ee905 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_Tools.h
+++ b/
src/SketchPlugin/SketchPlugin_Tools.h
@@
-11,6
+11,7
@@
#include <ModelAPI_Feature.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_Attribute.h>
+#include <GeomDataAPI_Point2D.h>
class SketchPlugin_Feature;
class SketchPlugin_Feature;
@@
-23,6
+24,9
@@
void clearExpressions(FeaturePtr theFeature);
/// \param[in] theStartCoin coincidence feature
std::shared_ptr<GeomAPI_Pnt2d> getCoincidencePoint(const FeaturePtr theStartCoin);
/// \param[in] theStartCoin coincidence feature
std::shared_ptr<GeomAPI_Pnt2d> getCoincidencePoint(const FeaturePtr theStartCoin);
+/// Find all Coincident constraints referred to the feature or its attribute
+std::set<FeaturePtr> findCoincidentConstraints(const FeaturePtr& theFeature);
+
/// Finds lines coincident at point
/// \param[in] theStartCoin coincidence feature
/// \param[in] theAttr attribute name
/// Finds lines coincident at point
/// \param[in] theStartCoin coincidence feature
/// \param[in] theAttr attribute name
@@
-31,6
+35,11
@@
void findCoincidences(const FeaturePtr theStartCoin,
const std::string& theAttr,
std::set<FeaturePtr>& theList);
const std::string& theAttr,
std::set<FeaturePtr>& theList);
+/// Find all features the point is coincident to.
+std::set<FeaturePtr> findFeaturesCoincidentToPoint(const AttributePoint2DPtr& thePoint);
+
+void resetAttribute(SketchPlugin_Feature* theFeature, const std::string& theId);
+
/// Creates coincidence or tangent constraint.
/// \param[in] theFeature to get selected attribute or object
/// \param[in] theId ID of attribute where selection is.
/// Creates coincidence or tangent constraint.
/// \param[in] theFeature to get selected attribute or object
/// \param[in] theId ID of attribute where selection is.