SHAPER  9.12.0
PlaneGCSSolver_PointArrayWrapper Class Reference

Wrapper providing operations with arrays of PlaneGCS points. More...

Inheritance diagram for PlaneGCSSolver_PointArrayWrapper:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_PointArrayWrapper (const std::vector< PointWrapperPtr > &thePoints)
 
const PointWrapperPtr & value (const int theIndex) const
 Return wrapper of PlaneGCS point. More...
 
int size () const
 \breif Size of array More...
 
const std::vector< PointWrapperPtr > & array () const
 Return array of points. More...
 
void setArray (const std::vector< PointWrapperPtr > &thePoints)
 \breif Set points More...
 
virtual SketchSolver_EntityType type () const
 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...
 

Detailed Description

Wrapper providing operations with arrays of PlaneGCS points.

Member Function Documentation

◆ value()

const PointWrapperPtr& PlaneGCSSolver_PointArrayWrapper::value ( const int  theIndex) const
inline

Return wrapper of PlaneGCS point.

◆ size()

int PlaneGCSSolver_PointArrayWrapper::size ( ) const
inline

\breif Size of array

◆ array()

const std::vector<PointWrapperPtr>& PlaneGCSSolver_PointArrayWrapper::array ( ) const
inline

Return array of points.

◆ setArray()

void PlaneGCSSolver_PointArrayWrapper::setArray ( const std::vector< PointWrapperPtr > &  thePoints)
inline

\breif Set points

◆ type()

virtual SketchSolver_EntityType PlaneGCSSolver_PointArrayWrapper::type ( ) const
inlinevirtual

Return type of current entity.

Implements PlaneGCSSolver_EntityWrapper.

◆ update()

bool PlaneGCSSolver_PointArrayWrapper::update ( std::shared_ptr< ModelAPI_Attribute theAttribute)
protectedvirtual

Update entity by the values of theAttribute.

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

Reimplemented from PlaneGCSSolver_EntityWrapper.

◆ setExternal()

void PlaneGCSSolver_EntityWrapper::setExternal ( bool  theExternal)
inlineinherited

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

◆ isExternal()

bool PlaneGCSSolver_EntityWrapper::isExternal ( ) const
inlineinherited

Return the External flag.

◆ setAdditionalAttributes()

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

Store names of attributes and their values if necessary.

◆ additionalAttributes()

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

Return the list of additional attributes.