|
SHAPER
9.15.0
|
Keeps the group of constraints which placed in the same sketch. More...
Public Member Functions | |
| SketchSolver_Group (const CompositeFeaturePtr &theWorkplane) | |
| New group based on specified workplane. More... | |
| bool | isEmpty () const |
| Returns true if the group has no constraints yet. More... | |
| bool | isWorkplaneValid () const |
| Check for valid sketch data. More... | |
| bool | changeConstraint (std::shared_ptr< SketchPlugin_Constraint > theConstraint) |
| Adds or updates a constraint in the group. More... | |
| bool | updateSketch (CompositeFeaturePtr theSketch) |
| Updates the sketch feature. More... | |
| bool | updateFeature (FeaturePtr theFeature) |
| Updates the data corresponding the specified feature. More... | |
| bool | moveFeature (FeaturePtr theFeature, const std::shared_ptr< GeomAPI_Pnt2d > &theFrom, const std::shared_ptr< GeomAPI_Pnt2d > &theTo) |
| Updates the data corresponding the specified feature moved in GUI. More... | |
| bool | movePoint (AttributePtr thePointOrArray, const int thePointIndex, const std::shared_ptr< GeomAPI_Pnt2d > &theFrom, const std::shared_ptr< GeomAPI_Pnt2d > &theTo) |
| Updates the data corresponding the specified point moved in GUI. More... | |
| const CompositeFeaturePtr & | getWorkplane () const |
| Returns the current workplane. More... | |
| void | repairConsistency () |
| Searches invalid features and constraints in the group and removes them. More... | |
| bool | resolveConstraints () |
| Start solution procedure if necessary and update attributes of features. More... | |
| void | underconstrainedFeatures (std::set< ObjectPtr > &theFeatures) const |
| Find the list of features, which are not fully constrained. More... | |
| void | blockEvents (bool isBlocked) |
| Block or unblock events sent by features in this group. More... | |
Keeps the group of constraints which placed in the same sketch.
| SketchSolver_Group::SketchSolver_Group | ( | const CompositeFeaturePtr & | theWorkplane | ) |
New group based on specified workplane.
Throws an exception if theWorkplane is not an object of SketchPlugin_Sketch type
|
inline |
Returns true if the group has no constraints yet.
|
inline |
Check for valid sketch data.
| bool SketchSolver_Group::changeConstraint | ( | std::shared_ptr< SketchPlugin_Constraint > | theConstraint | ) |
Adds or updates a constraint in the group.
| [in] | theConstraint | constraint to be changed |
true if the constraint added or updated successfully | bool SketchSolver_Group::updateSketch | ( | CompositeFeaturePtr | theSketch | ) |
Updates the sketch feature.
| bool SketchSolver_Group::updateFeature | ( | FeaturePtr | theFeature | ) |
Updates the data corresponding the specified feature.
| [in] | theFeature | the feature to be updated |
| bool SketchSolver_Group::moveFeature | ( | FeaturePtr | theFeature, |
| const std::shared_ptr< GeomAPI_Pnt2d > & | theFrom, | ||
| const std::shared_ptr< GeomAPI_Pnt2d > & | theTo | ||
| ) |
Updates the data corresponding the specified feature moved in GUI.
Special kind of Fixed constraints is created.
| [in] | theFeature | the feature to be updated |
| [in] | theFrom | start point of the movement |
| [in] | theTo | final point of the movement |
true, if the feature is really moved | bool SketchSolver_Group::movePoint | ( | AttributePtr | thePointOrArray, |
| const int | thePointIndex, | ||
| const std::shared_ptr< GeomAPI_Pnt2d > & | theFrom, | ||
| const std::shared_ptr< GeomAPI_Pnt2d > & | theTo | ||
| ) |
Updates the data corresponding the specified point moved in GUI.
Special kind of Fixed constraints is created.
| [in] | thePointOrArray | the attribute to be updated |
| [in] | thePointIndex | index of moved point in array |
| [in] | theFrom | start point of the movement |
| [in] | theTo | destination point of the movement |
true, if the attribute is really moved
|
inline |
Returns the current workplane.
| void SketchSolver_Group::repairConsistency | ( | ) |
Searches invalid features and constraints in the group and removes them.
false if the group several constraints were removed | bool SketchSolver_Group::resolveConstraints | ( | ) |
Start solution procedure if necessary and update attributes of features.
false when no need to solve constraints | void SketchSolver_Group::underconstrainedFeatures | ( | std::set< ObjectPtr > & | theFeatures | ) | const |
Find the list of features, which are not fully constrained.
| void SketchSolver_Group::blockEvents | ( | bool | isBlocked | ) |
Block or unblock events sent by features in this group.