SHAPER  9.12.0
PlaneGCSSolver_EntityBuilder Class Referenceabstract

API to convert data model entity to the entity applicable for PlaneGCS solver. More...

Inheritance diagram for PlaneGCSSolver_EntityBuilder:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_EntityBuilder (PlaneGCSSolver_Storage *theStorage=0)
 Create entity in the given storage. More...
 
virtual EntityWrapperPtr createAttribute (AttributePtr theAttribute)=0
 Converts an attribute to the solver's entity. More...
 
virtual EntityWrapperPtr createFeature (FeaturePtr)=0
 Converts SketchPlugin's feature to the solver's entity. More...
 

Protected Attributes

PlaneGCSSolver_StoragemyStorage
 

Detailed Description

API to convert data model entity to the entity applicable for PlaneGCS solver.

Constructor & Destructor Documentation

◆ PlaneGCSSolver_EntityBuilder()

PlaneGCSSolver_EntityBuilder::PlaneGCSSolver_EntityBuilder ( PlaneGCSSolver_Storage theStorage = 0)
inline

Create entity in the given storage.

If the storage is empty, the entity should not be changed while constraint solving. So, it is created out of the storage.

Member Function Documentation

◆ createAttribute()

virtual EntityWrapperPtr PlaneGCSSolver_EntityBuilder::createAttribute ( AttributePtr  theAttribute)
pure 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

Implemented in PlaneGCSSolver_FeatureBuilder, and PlaneGCSSolver_AttributeBuilder.

◆ createFeature()

virtual EntityWrapperPtr PlaneGCSSolver_EntityBuilder::createFeature ( FeaturePtr  )
pure virtual

Converts SketchPlugin's feature to the solver's entity.

Result if based on the list of already converted attributes.

Parameters
theFeature[in] feature to create

Implemented in PlaneGCSSolver_AttributeBuilder, and PlaneGCSSolver_FeatureBuilder.