- /// Sets programmatically the value to the spin box without emitting any signals(e.g. valueChanged)
- /// \param theSpin an X or Y coordinate widget
- /// \param theValue a new value
- static void setSpinValue(ModuleBase_DoubleSpinBox* theSpin, double theValue);
+ /// Create a coincidence constraint between the attribute and the parameter object
+ /// \theObject a result object
+ void setConstraintWith(const ObjectPtr& theObject);
+
+ /// Returns if the feature is an orphan point, circle or an arc. Returns true if it
+ /// has no a coincident to other lines. It processes point, circle and arc features
+ /// In circle an arc features, only centers are processed, for other points, it returns
+ /// that the point is not an orphan.
+ /// \param theFeature a checked feature
+ /// \param theSketch a sketch
+ /// \param theX an X coordinate of the point
+ /// \param theY an Y coordinate of the point
+ /// \return boolean result
+ static bool isOrphanPoint(const FeaturePtr& theFeature, const CompositeFeaturePtr& theSketch,
+ double theX, double theY, const bool theSearchInResults = false);