SHAPER  9.12.0
SolveSpaceSolver_ConstraintWrapper Class Reference

Wrapper providing operations with SovleSpace constraints. More...

Inheritance diagram for SolveSpaceSolver_ConstraintWrapper:
Inheritance graph

Public Member Functions

 SolveSpaceSolver_ConstraintWrapper (const ConstraintPtr &theOriginal, const Slvs_Constraint &theConstraint)
 
const Slvs_Constraint & constraint () const
 Return SolveSpace constraint. More...
 
Slvs_Constraint & changeConstraint ()
 Return SolveSpace constraint to change. More...
 
virtual ConstraintID id () const
 Return ID of current entity. More...
 
virtual void setGroup (const GroupID &theGroup)
 Change group for the constraint. More...
 
virtual GroupID group () const
 Return identifier of the group the constraint belongs to. More...
 
virtual SketchSolver_ConstraintType type () const
 Return type of current entity. More...
 
virtual bool isUsed (FeaturePtr theFeature) const
 Verify the feature is used in the constraint. More...
 
virtual bool isUsed (AttributePtr theAttribute) const
 Verify the attribute is used in the constraint. More...
 
virtual bool isEqual (const ConstraintWrapperPtr &theOther)
 Compare current constraint with other. More...
 
virtual bool update (const std::shared_ptr< SketchSolver_IConstraintWrapper > &theOther)
 Update values of parameters of this constraint by the parameters of given one. More...
 

Detailed Description

Wrapper providing operations with SovleSpace constraints.

Member Function Documentation

◆ constraint()

const Slvs_Constraint& SolveSpaceSolver_ConstraintWrapper::constraint ( ) const
inline

Return SolveSpace constraint.

◆ changeConstraint()

Slvs_Constraint& SolveSpaceSolver_ConstraintWrapper::changeConstraint ( )
inline

Return SolveSpace constraint to change.

◆ id()

ConstraintID SolveSpaceSolver_ConstraintWrapper::id ( ) const
virtual

Return ID of current entity.

◆ setGroup()

void SolveSpaceSolver_ConstraintWrapper::setGroup ( const GroupID &  theGroup)
virtual

Change group for the constraint.

◆ group()

virtual GroupID SolveSpaceSolver_ConstraintWrapper::group ( ) const
inlinevirtual

Return identifier of the group the constraint belongs to.

◆ type()

SketchSolver_ConstraintType SolveSpaceSolver_ConstraintWrapper::type ( ) const
virtual

Return type of current entity.

◆ isUsed() [1/2]

bool SolveSpaceSolver_ConstraintWrapper::isUsed ( FeaturePtr  theFeature) const
virtual

Verify the feature is used in the constraint.

◆ isUsed() [2/2]

bool SolveSpaceSolver_ConstraintWrapper::isUsed ( AttributePtr  theAttribute) const
virtual

Verify the attribute is used in the constraint.

◆ isEqual()

bool SolveSpaceSolver_ConstraintWrapper::isEqual ( const ConstraintWrapperPtr &  theOther)
virtual

Compare current constraint with other.

◆ update()

bool SolveSpaceSolver_ConstraintWrapper::update ( const std::shared_ptr< SketchSolver_IConstraintWrapper > &  theOther)
virtual

Update values of parameters of this constraint by the parameters of given one.

Returns
true if some parameters change their values