20 #ifndef Model_AttributeDoubleArray_H_
21 #define Model_AttributeDoubleArray_H_
25 #include <ModelAPI_AttributeDoubleArray.h>
27 #include <TDF_Label.hxx>
28 #include <TDataStd_RealArray.hxx>
39 MODEL_EXPORT
virtual int size();
42 MODEL_EXPORT
virtual void setSize(
const int theSize);
45 MODEL_EXPORT
virtual void setValue(
const int theIndex,
46 const double theValue);
49 MODEL_EXPORT
virtual double value(
const int theIndex);
59 Handle_TDataStd_RealArray myArray;
API for the attribute that contains several double in the array inside.
Definition: ModelAPI_AttributeDoubleArray.h:32
API for the attribute that contains several double in the array inside.
Definition: Model_AttributeDoubleArray.h:36
virtual void setValue(const int theIndex, const double theValue)
Defines the value of the array by index [0; size-1].
Definition: Model_AttributeDoubleArray.cpp:68
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: Model_AttributeDoubleArray.cpp:90
virtual void setSize(const int theSize)
Sets the new size of the array. The previous data is erased.
Definition: Model_AttributeDoubleArray.cpp:43
virtual double value(const int theIndex)
Returns the value by the index.
Definition: Model_AttributeDoubleArray.cpp:78
virtual int size()
Returns the size of the array (zero means that it is empty)
Definition: Model_AttributeDoubleArray.cpp:30
Model_AttributeDoubleArray(TDF_Label &theLabel)
Initializes attibutes.
Definition: Model_AttributeDoubleArray.cpp:84
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:61