SHAPER  9.12.0
PlaneGCSSolver_AngleWrapper Class Reference

Wrapper providing operations with angular parameters in PlaneGCS. More...

Inheritance diagram for PlaneGCSSolver_AngleWrapper:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_AngleWrapper (double *const theParam)
 
virtual void setValue (double theValue)
 Change value of parameter. More...
 
virtual double value () const
 Return value of parameter. More...
 
double * scalar () const
 Return PlaneGCS parameter. 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...
 

Protected Attributes

double * myValue
 pointer to value provided by the storage More...
 

Detailed Description

Wrapper providing operations with angular parameters in PlaneGCS.

Provides automatic conversion from degrees to radians and vice versa.

Member Function Documentation

◆ setValue()

void PlaneGCSSolver_AngleWrapper::setValue ( double  theValue)
virtual

Change value of parameter.

Reimplemented from PlaneGCSSolver_ScalarWrapper.

◆ value()

double PlaneGCSSolver_AngleWrapper::value ( ) const
virtual

Return value of parameter.

Reimplemented from PlaneGCSSolver_ScalarWrapper.

◆ scalar()

double* PlaneGCSSolver_ScalarWrapper::scalar ( ) const
inlineinherited

Return PlaneGCS parameter.

◆ type()

virtual SketchSolver_EntityType PlaneGCSSolver_ScalarWrapper::type ( ) const
inlinevirtualinherited

Return type of current entity.

Implements PlaneGCSSolver_EntityWrapper.

◆ update()

bool PlaneGCSSolver_ScalarWrapper::update ( std::shared_ptr< ModelAPI_Attribute theAttribute)
protectedvirtualinherited

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.

Field Documentation

◆ myValue

double* PlaneGCSSolver_ScalarWrapper::myValue
protectedinherited

pointer to value provided by the storage