SHAPER  9.12.0
PlaneGCSSolver_FeatureBuilder Class Reference

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

Inheritance diagram for PlaneGCSSolver_FeatureBuilder:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_FeatureBuilder (PlaneGCSSolver_Storage *theStorage=0)
 
 PlaneGCSSolver_FeatureBuilder (const StoragePtr &theStorage)
 
virtual EntityWrapperPtr createAttribute (AttributePtr theAttribute)
 Converts an attribute to the solver's entity and stores it for further processing. More...
 
virtual EntityWrapperPtr createFeature (FeaturePtr theFeature)
 Converts SketchPlugin's feature to the solver's entity. More...
 
virtual bool updateAttribute (AttributePtr theAttribute, EntityWrapperPtr theEntity)
 Update entity by the attribute values. More...
 

Protected Attributes

PlaneGCSSolver_StoragemyStorage
 

Detailed Description

Converts SketchPlugin_Feature to the entity applicable for PlaneGCS solver.

Member Function Documentation

◆ createAttribute()

EntityWrapperPtr PlaneGCSSolver_FeatureBuilder::createAttribute ( AttributePtr  theAttribute)
virtual

Converts an attribute to the solver's entity and stores it for further processing.

Double attributes and 2D points are supported only.

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

Reimplemented from PlaneGCSSolver_AttributeBuilder.

◆ createFeature()

EntityWrapperPtr PlaneGCSSolver_FeatureBuilder::createFeature ( FeaturePtr  theFeature)
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

Reimplemented from PlaneGCSSolver_AttributeBuilder.

◆ updateAttribute()

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

Update entity by the attribute values.

Returns
true if any value is updated.