20 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
21 #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
24 #include "ModelHighAPI.h"
54 virtual void fillAttribute(
const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
const;
58 const std::shared_ptr<GeomDataAPI_Point> & thePoint,
64 MODELHIGHAPI_EXPORT
double value()
const;
67 MODELHIGHAPI_EXPORT
virtual std::wstring
string()
const;
70 enum VariantType { VT_DOUBLE, VT_STRING } myVariantType;
72 std::wstring myString;
Attribute that contains 3D point coordinates.
Definition: GeomDataAPI_Point.h:36
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Class for filling ModelAPI_AttributeDouble.
Definition: ModelHighAPI_Double.h:37
virtual ~ModelHighAPI_Double()
Destructor.
Definition: ModelHighAPI_Double.cpp:47
double value() const
Value of the attribute.
Definition: ModelHighAPI_Double.cpp:51
ModelHighAPI_Double(double theValue=0.)
Constructor for double.
Definition: ModelHighAPI_Double.cpp:29
virtual void fillAttribute(const std::shared_ptr< ModelAPI_AttributeDouble > &theAttribute) const
Fill attribute values.
Definition: ModelHighAPI_Double.cpp:68
virtual std::wstring string() const
Returns a string representation of the value.
Definition: ModelHighAPI_Double.cpp:57