ConstraintMap;
/** \class SketchSolver_ConstraintGroup
- * \ingroup DataModel
+ * \ingroup Plugins
* \brief Keeps the group of constraints which based on the same entities
*/
class SketchSolver_ConstraintGroup
* \return \c true if the constraint added or updated successfully
*/
bool changeConstraint(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
+ /** \brief Adds or updates a rigid constraint in the group
+ * \param[in] theConstraint constraint to be changed
+ * \return \c true if the constraint added or updated successfully
+ */
bool changeRigidConstraint(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
/** \brief Verifies the feature attributes are used in this group
*/
bool isBaseWorkplane(std::shared_ptr<ModelAPI_CompositeFeature> theWorkplane) const;
+ /// Returns the current workplane
std::shared_ptr<ModelAPI_CompositeFeature> getWorkplane() const
{
return mySketch;
* \param[in] theEntity attribute of the constraint
*/
void updateRelatedConstraints(std::shared_ptr<ModelAPI_Attribute> theEntity) const;
+ /** \brief Searches the constraints built on the entity and emit the signal to update them
+ * \param[in] theFeature feature of the constraint
+ */
void updateRelatedConstraintsFeature(std::shared_ptr<ModelAPI_Feature> theFeature) const;
/** \brief Adds or updates an entity in the group