SHAPER  9.12.0
PlaneGCSSolver_AttributeBuilder Class Reference

Converts ModelAPI_Attribute to the entity applicable for PlaneGCS solver. More...

Inheritance diagram for PlaneGCSSolver_AttributeBuilder:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_AttributeBuilder (PlaneGCSSolver_Storage *theStorage=0)
 
 PlaneGCSSolver_AttributeBuilder (const StoragePtr &theStorage)
 
virtual EntityWrapperPtr createAttribute (AttributePtr theAttribute)
 Converts an attribute to the solver's entity. More...
 
virtual bool updateAttribute (AttributePtr theAttribute, EntityWrapperPtr theEntity)
 Update entity by the attribute values. More...
 
virtual EntityWrapperPtr createFeature (FeaturePtr)
 Blank. To be defined in derived class. More...
 

Protected Attributes

PlaneGCSSolver_StoragemyStorage
 

Detailed Description

Converts ModelAPI_Attribute to the entity applicable for PlaneGCS solver.

Member Function Documentation

◆ createAttribute()

EntityWrapperPtr PlaneGCSSolver_AttributeBuilder::createAttribute ( AttributePtr  theAttribute)
virtual

Converts an attribute to the solver's entity.

Double attributes and 2D points are supported only.

Parameters
theAttribute[in] attribute to create
Returns
Created wrapper of the attribute applicable for specific solver

Implements PlaneGCSSolver_EntityBuilder.

Reimplemented in PlaneGCSSolver_FeatureBuilder.

◆ updateAttribute()

bool PlaneGCSSolver_AttributeBuilder::updateAttribute ( AttributePtr  theAttribute,
EntityWrapperPtr  theEntity 
)
virtual

Update entity by the attribute values.

Returns
true if any value is updated.

◆ createFeature()

virtual EntityWrapperPtr PlaneGCSSolver_AttributeBuilder::createFeature ( FeaturePtr  )
inlinevirtual

Blank. To be defined in derived class.

Implements PlaneGCSSolver_EntityBuilder.

Reimplemented in PlaneGCSSolver_FeatureBuilder.