SHAPER  9.12.0
ModelHighAPI_Double Class Reference

Class for filling ModelAPI_AttributeDouble. More...

Public Member Functions

 ModelHighAPI_Double (double theValue=0.)
 Constructor for double. More...
 
 ModelHighAPI_Double (const std::wstring &theValue)
 Constructor for std::string. More...
 
 ModelHighAPI_Double (const wchar_t *theValue)
 Constructor for char *. More...
 
virtual ~ModelHighAPI_Double ()
 Destructor. More...
 
virtual void fillAttribute (const std::shared_ptr< ModelAPI_AttributeDouble > &theAttribute) const
 Fill attribute values. More...
 
virtual void fillAttribute (const std::shared_ptr< GeomDataAPI_Point > &thePoint, const ModelHighAPI_Double &theX, const ModelHighAPI_Double &theY, const ModelHighAPI_Double &theZ) const
 Sets the zero-based coordinates of a point. More...
 
double value () const
 Value of the attribute. More...
 
virtual std::wstring string () const
 Returns a string representation of the value. More...
 

Detailed Description

Class for filling ModelAPI_AttributeDouble.

Constructor & Destructor Documentation

◆ ModelHighAPI_Double() [1/3]

ModelHighAPI_Double::ModelHighAPI_Double ( double  theValue = 0.)

Constructor for double.

◆ ModelHighAPI_Double() [2/3]

ModelHighAPI_Double::ModelHighAPI_Double ( const std::wstring &  theValue)

Constructor for std::string.

◆ ModelHighAPI_Double() [3/3]

ModelHighAPI_Double::ModelHighAPI_Double ( const wchar_t *  theValue)

Constructor for char *.

◆ ~ModelHighAPI_Double()

ModelHighAPI_Double::~ModelHighAPI_Double ( )
virtual

Destructor.

Member Function Documentation

◆ fillAttribute() [1/2]

void ModelHighAPI_Double::fillAttribute ( const std::shared_ptr< ModelAPI_AttributeDouble > &  theAttribute) const
virtual

Fill attribute values.

◆ fillAttribute() [2/2]

void ModelHighAPI_Double::fillAttribute ( const std::shared_ptr< GeomDataAPI_Point > &  thePoint,
const ModelHighAPI_Double theX,
const ModelHighAPI_Double theY,
const ModelHighAPI_Double theZ 
) const
virtual

Sets the zero-based coordinates of a point.

◆ value()

double ModelHighAPI_Double::value ( ) const

Value of the attribute.

◆ string()

std::wstring ModelHighAPI_Double::string ( ) const
virtual

Returns a string representation of the value.