20 #ifndef ModelAPI_AttributeDoubleArray_H_
21 #define ModelAPI_AttributeDoubleArray_H_
24 #include <ModelAPI_Attribute.h>
35 MODELAPI_EXPORT
virtual int size() = 0;
38 MODELAPI_EXPORT
virtual void setSize(
const int theSize) = 0;
41 MODELAPI_EXPORT
virtual void setValue(
const int theIndex,
42 const double theValue) = 0;
45 MODELAPI_EXPORT
virtual double value(
const int theIndex) = 0;
48 MODELAPI_EXPORT
static std::string
typeId()
65 typedef std::shared_ptr<ModelAPI_AttributeDoubleArray> AttributeDoubleArrayPtr;
API for the attribute that contains several double in the array inside.
Definition: ModelAPI_AttributeDoubleArray.h:32
virtual MODELAPI_EXPORT double value(const int theIndex)=0
Returns the value by the index.
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeDoubleArray.h:48
virtual MODELAPI_EXPORT ~ModelAPI_AttributeDoubleArray()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeDoubleArray.cpp:29
MODELAPI_EXPORT ModelAPI_AttributeDoubleArray()
Objects are created for features automatically.
Definition: ModelAPI_AttributeDoubleArray.cpp:34
virtual MODELAPI_EXPORT int size()=0
Returns the size of the array (zero means that it is empty)
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeDoubleArray.cpp:23
virtual MODELAPI_EXPORT void setValue(const int theIndex, const double theValue)=0
Defines the value of the array by index [0; size-1].
virtual MODELAPI_EXPORT void setSize(const int theSize)=0
Sets the new size of the array. The previous data is erased.
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34