|
SHAPER
9.15.0
|
Convert rotated features to the list of SolveSpace constraints. More...

Public Member Functions | |
| SketchSolver_ConstraintMultiRotation (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 | getAttributes (EntityWrapperPtr &theCenter, ScalarWrapperPtr &theAngle, bool &theFullValue, bool &theReversed, std::list< EntityWrapperPtr > &theEntities) |
| Generate list of rotated entities. More... | |
| virtual void | adjustConstraint () |
| This method is used in derived objects to check consistence of constraint. More... | |
| virtual void | updateLocal () |
| Update parameters (called from base class) 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... | |
| 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... | |
Convert rotated features to the list of SolveSpace constraints.
|
inline |
Constructor based on SketchPlugin constraint.
|
protectedvirtual |
Converts SketchPlugin constraint to a list of SolveSpace constraints.
Reimplemented from SketchSolver_ConstraintMulti.
|
protected |
Generate list of rotated entities.
| [out] | theCenter | central point of rotation |
| [out] | theAngle | rotation angle |
| [out] | theFullValue | applying translation using the distance as a full or single value |
| [out] | theReversed | rotation angle is negative |
| [out] | theEntities | list of base entities |
|
protectedvirtual |
This method is used in derived objects to check consistence of constraint.
Reimplemented from SketchSolver_ConstraintMulti.
|
protectedvirtual |
Update parameters (called from base class)
Implements SketchSolver_ConstraintMulti.
|
virtualinherited |
Update constraint.
Reimplemented from SketchSolver_Constraint.
|
virtualinherited |
Notify this object about the feature is changed somewhere.
Reimplemented from SketchSolver_Constraint.
|
virtualinherited |
Tries to remove constraint.
false, if current constraint contains another SketchPlugin constraints (like for multiple coincidence) Reimplemented from SketchSolver_Constraint.
|
virtualinherited |
Block or unblock events from this constraint.
Reimplemented from SketchSolver_Constraint.
|
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 |
|
protectedinherited |
Collect entities which are translated or rotated (not their copies)
|
inlineprotectedvirtualinherited |
Generate list of attributes of constraint in order useful for SolveSpace constraints.
Reimplemented from SketchSolver_Constraint.
|
staticinherited |
Obtain a type of SketchPlugin constraint.
|
inlinevirtualinherited |
Returns the type of constraint.
|
inlineinherited |
Shows error message.
|
inlineprotectedinherited |
Removes last error.
|
protectedinherited |
number of previous initial objects
|
protectedinherited |
number of previous copies of initial objects
|
protectedinherited |
value whether the angle/distance is a full or single for objects
|
protectedinherited |
the constraint is already adjusted (to not do it several times)
|
protectedinherited |
lists of original features and their copies to find whether some of them are disappeared
|
protectedinherited |
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