SHAPER  9.12.0
PlaneGCSSolver_EntityWrapper Class Referenceabstract

Wrapper providing operations with entities regardless the solver. More...

Inheritance diagram for PlaneGCSSolver_EntityWrapper:
Inheritance graph

Public Member Functions

virtual SketchSolver_EntityType type () const =0
 Return type of current entity. More...
 
void setExternal (bool theExternal)
 Change flag indicating the entity cannot be changed in the solver. More...
 
bool isExternal () const
 Return the External flag. More...
 
void setAdditionalAttributes (const std::map< std::string, EntityWrapperPtr > &theAttribues)
 Store names of attributes and their values if necessary. More...
 
const std::map< std::string, EntityWrapperPtr > & additionalAttributes () const
 Return the list of additional attributes. More...
 

Protected Member Functions

virtual bool update (std::shared_ptr< ModelAPI_Attribute > theAttribute)
 Update entity by the values of theAttribute. More...
 

Friends

class PlaneGCSSolver_AttributeBuilder
 

Detailed Description

Wrapper providing operations with entities regardless the solver.

Member Function Documentation

◆ type()

virtual SketchSolver_EntityType PlaneGCSSolver_EntityWrapper::type ( ) const
pure virtual

◆ setExternal()

void PlaneGCSSolver_EntityWrapper::setExternal ( bool  theExternal)
inline

Change flag indicating the entity cannot be changed in the solver.

◆ isExternal()

bool PlaneGCSSolver_EntityWrapper::isExternal ( ) const
inline

Return the External flag.

◆ setAdditionalAttributes()

void PlaneGCSSolver_EntityWrapper::setAdditionalAttributes ( const std::map< std::string, EntityWrapperPtr > &  theAttribues)
inline

Store names of attributes and their values if necessary.

◆ additionalAttributes()

const std::map<std::string, EntityWrapperPtr>& PlaneGCSSolver_EntityWrapper::additionalAttributes ( ) const
inline

Return the list of additional attributes.

◆ update()

virtual bool PlaneGCSSolver_EntityWrapper::update ( std::shared_ptr< ModelAPI_Attribute theAttribute)
inlineprotectedvirtual

Update entity by the values of theAttribute.

Returns
true if any value of attribute is not equal to the stored in the entity

Reimplemented in PlaneGCSSolver_ScalarWrapper, PlaneGCSSolver_ScalarArrayWrapper, PlaneGCSSolver_PointWrapper, PlaneGCSSolver_PointArrayWrapper, and PlaneGCSSolver_BooleanWrapper.