|
SHAPER
9.15.0
|
Listens the changes of SketchPlugin features and transforms the Constraint feature into the format understandable by sketch solver. More...

Public Member Functions | |
| virtual void | processEvent (const std::shared_ptr< Events_Message > &theMessage) |
| Implementation of Event Listener method. More... | |
| virtual bool | groupMessages () |
| The solver needs all the updated objects are transferred in one group, not one by one. More... | |
Static Public Member Functions | |
| static SketchSolver_Manager * | instance () |
| Main method to create constraint manager. More... | |
Protected Member Functions | |
| bool | updateFeature (const std::shared_ptr< SketchPlugin_Feature > &theFeature) |
| Adds or updates a constraint or an entity in the suitable group. More... | |
| bool | updateSketch (const std::shared_ptr< ModelAPI_CompositeFeature > &theSketch) |
| Updates the sketch and related constraints, if the sketch plane is changed. More... | |
| bool | moveFeature (const std::shared_ptr< SketchPlugin_Feature > &theMovedFeature, const std::shared_ptr< GeomAPI_Pnt2d > &theFromPoint, const std::shared_ptr< GeomAPI_Pnt2d > &theToPoint) |
| Move feature. More... | |
| bool | moveAttribute (const std::shared_ptr< ModelAPI_Attribute > &theMovedAttribute, const int theMovedPointIndex, const std::shared_ptr< GeomAPI_Pnt2d > &theFromPoint, const std::shared_ptr< GeomAPI_Pnt2d > &theToPoint) |
| Move feature using its moved attribute. More... | |
| bool | removeConstraint (std::shared_ptr< SketchPlugin_Constraint > theConstraint) |
| Removes a constraint from the manager. More... | |
| bool | resolveConstraints () |
| Goes through the list of groups and solve the constraints. More... | |
| void | groupWhileFlush (const std::shared_ptr< Events_Message > &theMessage) |
| Allows to group messages while they are flushed (for flush for groupMessages=true listeners) More... | |
| EVENTS_EXPORT void | flushGrouped (const Events_ID &theID) |
| Sends myGroups on flush finish. More... | |
Listens the changes of SketchPlugin features and transforms the Constraint feature into the format understandable by sketch solver.
|
static |
Main method to create constraint manager.
|
virtual |
Implementation of Event Listener method.
| [in] | theMessage | the data of the event |
Implements Events_Listener.
|
virtual |
The solver needs all the updated objects are transferred in one group, not one by one.
This iscreases performance and avoids problems in resolve of only part of the made updates.
Reimplemented from Events_Listener.
|
protected |
Adds or updates a constraint or an entity in the suitable group.
| [in] | theFeature | sketch feature to be changed |
true if the feature changed successfully
|
protected |
Updates the sketch and related constraints, if the sketch plane is changed.
| [in] | theSketch | sketch to be updated |
true if the sketch plane is changed
|
protected |
Move feature.
| [in] | theMovedFeature | dragged sketch feature |
| [in] | theFromPoint | original position of the feature |
| [in] | theToPoint | prefereble position of the feature (current position of the mouse) |
true if the feature has been changed successfully
|
protected |
Move feature using its moved attribute.
| [in] | theMovedAttribute | dragged point (array of points) attribute of sketch feature |
| [in] | theMovedPointIndex | index of dragged point in an array (-1 otherwise) |
| [in] | theFromPoint | original position of the moved point |
| [in] | theToPoint | prefereble position (current position of the mouse) |
true if the attribute owner has been changed successfully
|
protected |
Removes a constraint from the manager.
| [in] | theConstraint | constraint to be removed |
true if the constraint removed successfully
|
protected |
Goes through the list of groups and solve the constraints.
true, if groups are resolved, and features should be updated (send the Update event)
|
protectedinherited |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners)
|
protectedinherited |
Sends myGroups on flush finish.