20 #ifndef ModelAPI_AttributeDouble_H_
21 #define ModelAPI_AttributeDouble_H_
23 #include <ModelAPI_Attribute.h>
37 MODELAPI_EXPORT
virtual void setValue(
const double theValue) = 0;
40 MODELAPI_EXPORT
virtual double value() = 0;
46 MODELAPI_EXPORT
virtual void setText(
const std::wstring& theText) = 0;
49 MODELAPI_EXPORT
virtual std::wstring
text() = 0;
64 MODELAPI_EXPORT
virtual
71 MODELAPI_EXPORT
static std::string
typeId()
88 typedef std::shared_ptr<ModelAPI_AttributeDouble> AttributeDoublePtr;
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
virtual MODELAPI_EXPORT void setUsedParameters(const std::set< std::wstring > &theUsedParameters)=0
Defines the used parameters.
virtual MODELAPI_EXPORT double value()=0
Returns the double value.
virtual MODELAPI_EXPORT std::wstring text()=0
Returns the text value.
virtual MODELAPI_EXPORT void setValue(const double theValue)=0
Defines the double value.
virtual MODELAPI_EXPORT void setExpressionInvalid(const bool theFlag)=0
Allows to set expression (text) as invalid (by the parameters listener)
virtual MODELAPI_EXPORT void setExpressionError(const std::string &theError)=0
Allows to set expression (text) error (by the parameters listener)
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeDouble.h:71
virtual MODELAPI_EXPORT ~ModelAPI_AttributeDouble()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeDouble.cpp:27
virtual MODELAPI_EXPORT std::set< std::wstring > usedParameters() const =0
Returns the used parameters.
virtual MODELAPI_EXPORT void setText(const std::wstring &theText)=0
Defines the text value.
virtual MODELAPI_EXPORT bool expressionInvalid()=0
Returns true if text is invalid.
MODELAPI_EXPORT ModelAPI_AttributeDouble()
Objects are created for features automatically.
Definition: ModelAPI_AttributeDouble.cpp:31
virtual MODELAPI_EXPORT std::string expressionError()=0
Returns an expression error.
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeDouble.cpp:22
virtual MODELAPI_EXPORT void setCalculatedValue(const double theValue)=0
Defines the calculated double value.
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34