SHAPER  9.12.0
SketchSolver_ConstraintMirror Class Reference

Convert fillet constraint to SolveSpace structure. More...

Inheritance diagram for SketchSolver_ConstraintMirror:
Inheritance graph

Public Member Functions

 SketchSolver_ConstraintMirror (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 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 bool remove ()
 Tries to remove constraint. 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...
 
virtual void getAttributes (EntityWrapperPtr &, std::vector< EntityWrapperPtr > &)
 Generate list of entities of mirror constraint. More...
 
virtual void adjustConstraint ()
 This method is used in derived objects to check consistence of constraint. More...
 
void cleanErrorMsg ()
 Removes last error. More...
 

Protected Attributes

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...
 

Detailed Description

Convert fillet constraint to SolveSpace structure.

Constructor & Destructor Documentation

◆ SketchSolver_ConstraintMirror()

SketchSolver_ConstraintMirror::SketchSolver_ConstraintMirror ( ConstraintPtr  theConstraint)
inline

Constructor based on SketchPlugin constraint.

Member Function Documentation

◆ update()

void SketchSolver_ConstraintMirror::update ( )
virtual

Update constraint.

Reimplemented from SketchSolver_Constraint.

◆ notify()

void SketchSolver_ConstraintMirror::notify ( const FeaturePtr &  theFeature,
PlaneGCSSolver_Update  
)
virtual

Notify this object about the feature is changed somewhere.

Reimplemented from SketchSolver_Constraint.

◆ blockEvents()

void SketchSolver_ConstraintMirror::blockEvents ( bool  isBlocked)
virtual

Block or unblock events from this constraint.

Reimplemented from SketchSolver_Constraint.

◆ process() [1/2]

void SketchSolver_ConstraintMirror::process ( )
protectedvirtual

Converts SketchPlugin constraint to a list of SolveSpace constraints.

Reimplemented from SketchSolver_Constraint.

◆ getAttributes()

void SketchSolver_ConstraintMirror::getAttributes ( EntityWrapperPtr &  ,
std::vector< EntityWrapperPtr > &   
)
protectedvirtual

Generate list of entities of mirror constraint.

Reimplemented from SketchSolver_Constraint.

◆ adjustConstraint()

void SketchSolver_ConstraintMirror::adjustConstraint ( )
protectedvirtual

This method is used in derived objects to check consistence of constraint.

E.g. the distance between line and point may be signed.

Reimplemented from SketchSolver_Constraint.

◆ process() [2/2]

void SketchSolver_Constraint::process ( StoragePtr  theStorage,
bool  theEvensBlocked 
)
inherited

Initializes parameters and start constraint creation.

Parameters
theStorage[in] storage where to place new constraint
theEventsBlocked[in] all events from this constraint should be blocked

◆ remove()

bool SketchSolver_Constraint::remove ( )
virtualinherited

Tries to remove constraint.

Returns
false, if current constraint contains another SketchPlugin constraints (like for multiple coincidence)

Reimplemented in SketchSolver_ConstraintTangent, SketchSolver_ConstraintMulti, SketchSolver_ConstraintMiddle, SketchSolver_ConstraintEqual, SketchSolver_ConstraintDistance, and SketchSolver_ConstraintCoincidence.

◆ TYPE()

SketchSolver_ConstraintType SketchSolver_Constraint::TYPE ( ConstraintPtr  theConstraint)
staticinherited

Obtain a type of SketchPlugin constraint.

◆ getType()

virtual SketchSolver_ConstraintType SketchSolver_Constraint::getType ( ) const
inlinevirtualinherited

Returns the type of constraint.

◆ error()

const std::string& SketchSolver_Constraint::error ( ) const
inlineinherited

Shows error message.

◆ cleanErrorMsg()

void SketchSolver_Constraint::cleanErrorMsg ( )
inlineprotectedinherited

Removes last error.

Field Documentation

◆ myBaseConstraint

ConstraintPtr SketchSolver_Constraint::myBaseConstraint
protectedinherited

base SketchPlugin constraint

◆ mySolverConstraint

ConstraintWrapperPtr SketchSolver_Constraint::mySolverConstraint
protectedinherited

wrapper for PlaneGCS constraint

◆ myStorage

StoragePtr SketchSolver_Constraint::myStorage
protectedinherited

storage, which contains all information about entities and constraints

◆ myType

SketchSolver_ConstraintType SketchSolver_Constraint::myType
protectedinherited

type of constraint

◆ myAttributes

std::list<EntityWrapperPtr> SketchSolver_Constraint::myAttributes
protectedinherited

attributes of constraint

◆ myErrorMsg

std::string SketchSolver_Constraint::myErrorMsg
protectedinherited

error message