20 #ifndef MODEL_ATTRIBUTEINTARRAY_H_
21 #define MODEL_ATTRIBUTEINTARRAY_H_
24 #include <ModelAPI_AttributeIntArray.h>
26 #include <TDF_Label.hxx>
27 #include <TDataStd_IntegerArray.hxx>
41 Handle_TDataStd_IntegerArray myArray;
47 MODEL_EXPORT
virtual int size();
50 MODEL_EXPORT
virtual void setSize(
const int theSize,
51 bool sendUpdated =
true);
54 MODEL_EXPORT
virtual void setValue(
const int theIndex,
56 bool sendUpdated =
true);
59 MODEL_EXPORT
virtual int value(
const int theIndex);
API for the attribute that contains several integers in the array inside.
Definition: ModelAPI_AttributeIntArray.h:36
API for the attribute that contains several integers in the array inside.
Definition: Model_AttributeIntArray.h:39
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: Model_AttributeIntArray.cpp:97
virtual MODEL_EXPORT int value(const int theIndex)
Returns the value by the index.
Definition: Model_AttributeIntArray.cpp:86
Model_AttributeIntArray(TDF_Label &theLabel)
Initializes attibutes.
Definition: Model_AttributeIntArray.cpp:91
virtual MODEL_EXPORT void setSize(const int theSize, bool sendUpdated=true)
Sets the new size of the array. The previous data is erased.
Definition: Model_AttributeIntArray.cpp:46
virtual MODEL_EXPORT int size()
Returns the size of the array (zero means that it is empty)
Definition: Model_AttributeIntArray.cpp:34
virtual MODEL_EXPORT void setValue(const int theIndex, const int theValue, bool sendUpdated=true)
Defines the value of the array by index [0; size-1].
Definition: Model_AttributeIntArray.cpp:74
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:61