|
SHAPER
9.15.0
|
Common base class for the Multi constraints. More...

Public Member Functions | |
| SketchSolver_ConstraintMulti (ConstraintPtr theConstraint) | |
| Constructor based on SketchPlugin constraint. More... | |
| virtual void | update () |
| Update constraint. More... | |
| virtual void | notify (const FeaturePtr &theFeature, PlaneGCSSolver_Update *) |
| Notify this object about the feature is changed somewhere. More... | |
| virtual bool | remove () |
| Tries to remove constraint. More... | |
| virtual void | blockEvents (bool isBlocked) |
| Block or unblock events from this constraint. More... | |
| void | process (StoragePtr theStorage, bool theEvensBlocked) |
| Initializes parameters and start constraint creation. More... | |
| virtual SketchSolver_ConstraintType | getType () const |
| Returns the type of constraint. More... | |
| const std::string & | error () const |
| Shows error message. More... | |
Static Public Member Functions | |
| static SketchSolver_ConstraintType | TYPE (ConstraintPtr theConstraint) |
| Obtain a type of SketchPlugin constraint. More... | |
Protected Member Functions | |
| virtual void | process () |
| Converts SketchPlugin constraint to a list of SolveSpace constraints. More... | |
| void | getEntities (std::list< EntityWrapperPtr > &theEntities) |
| Collect entities which are translated or rotated (not their copies) More... | |
| virtual void | getAttributes (EntityWrapperPtr &, std::vector< EntityWrapperPtr > &) |
| Generate list of attributes of constraint in order useful for SolveSpace constraints. More... | |
| virtual void | adjustConstraint () |
| This method is used in derived objects to check consistence of constraint. More... | |
| virtual void | updateLocal ()=0 |
| Update parameters of derived classes. More... | |
| virtual const std::string & | nameNbObjects ()=0 |
| Returns name of NUMBER_OF_COPIES parameter for corresponding feature. More... | |
| virtual void | getRelative (double theAbsX, double theAbsY, double &theRelX, double &theRelY)=0 |
| Convert absolute coordinates to relative coordinates. More... | |
| virtual void | getAbsolute (double theRelX, double theRelY, double &theAbsX, double &theAbsY)=0 |
| Convert relative coordinates to absolute coordinates. More... | |
| virtual void | transformRelative (double &theX, double &theY)=0 |
| Apply transformation for relative coordinates. More... | |
| void | cleanErrorMsg () |
| Removes last error. More... | |
Protected Attributes | |
| int | myNumberOfObjects |
| number of previous initial objects More... | |
| int | myNumberOfCopies |
| number of previous copies of initial objects More... | |
| bool | myIsFullValue |
| value whether the angle/distance is a full or single for objects More... | |
| bool | myAdjusted |
| the constraint is already adjusted (to not do it several times) More... | |
| std::set< FeaturePtr > | myOriginalFeatures |
| lists of original features and their copies to find whether some of them are disappeared More... | |
| std::set< FeaturePtr > | myCopiedFeatures |
| bool | myIsEventsBlocked |
| bool | myIsProcessingNotify |
| the notification is already processing More... | |
| ConstraintPtr | myBaseConstraint |
| base SketchPlugin constraint More... | |
| ConstraintWrapperPtr | mySolverConstraint |
| wrapper for PlaneGCS constraint More... | |
| StoragePtr | myStorage |
| storage, which contains all information about entities and constraints More... | |
| SketchSolver_ConstraintType | myType |
| type of constraint More... | |
| std::list< EntityWrapperPtr > | myAttributes |
| attributes of constraint More... | |
| std::string | myErrorMsg |
| error message More... | |
Common base class for the Multi constraints.
|
inline |
Constructor based on SketchPlugin constraint.
|
virtual |
Update constraint.
Reimplemented from SketchSolver_Constraint.
|
virtual |
Notify this object about the feature is changed somewhere.
Reimplemented from SketchSolver_Constraint.
|
virtual |
Tries to remove constraint.
false, if current constraint contains another SketchPlugin constraints (like for multiple coincidence) Reimplemented from SketchSolver_Constraint.
|
virtual |
Block or unblock events from this constraint.
Reimplemented from SketchSolver_Constraint.
|
inlineprotectedvirtual |
Converts SketchPlugin constraint to a list of SolveSpace constraints.
Reimplemented from SketchSolver_Constraint.
Reimplemented in SketchSolver_ConstraintMultiTranslation, and SketchSolver_ConstraintMultiRotation.
|
protected |
Collect entities which are translated or rotated (not their copies)
|
inlineprotectedvirtual |
Generate list of attributes of constraint in order useful for SolveSpace constraints.
Reimplemented from SketchSolver_Constraint.
|
protectedvirtual |
This method is used in derived objects to check consistence of constraint.
Reimplemented from SketchSolver_Constraint.
Reimplemented in SketchSolver_ConstraintMultiTranslation, and SketchSolver_ConstraintMultiRotation.
|
protectedpure virtual |
Update parameters of derived classes.
Implemented in SketchSolver_ConstraintMultiTranslation, and SketchSolver_ConstraintMultiRotation.
|
protectedpure virtual |
Returns name of NUMBER_OF_COPIES parameter for corresponding feature.
|
protectedpure virtual |
Convert absolute coordinates to relative coordinates.
|
protectedpure virtual |
Convert relative coordinates to absolute coordinates.
|
protectedpure virtual |
Apply transformation for relative coordinates.
|
inherited |
Initializes parameters and start constraint creation.
| theStorage | [in] storage where to place new constraint |
| theEventsBlocked | [in] all events from this constraint should be blocked |
|
staticinherited |
Obtain a type of SketchPlugin constraint.
|
inlinevirtualinherited |
Returns the type of constraint.
|
inlineinherited |
Shows error message.
|
inlineprotectedinherited |
Removes last error.
|
protected |
number of previous initial objects
|
protected |
number of previous copies of initial objects
|
protected |
value whether the angle/distance is a full or single for objects
|
protected |
the constraint is already adjusted (to not do it several times)
|
protected |
lists of original features and their copies to find whether some of them are disappeared
|
protected |
the notification is already processing
|
protectedinherited |
base SketchPlugin constraint
|
protectedinherited |
wrapper for PlaneGCS constraint
|
protectedinherited |
storage, which contains all information about entities and constraints
|
protectedinherited |
type of constraint
|
protectedinherited |
attributes of constraint
|
protectedinherited |
error message