This class implements an array of MAnimCurveClipboardItems. Common convenience functions are available, and the implementation is compatible with the internal Maya implementation so that it can be passed efficiently between plugins and internal maya data structures.
This will grow and shrink the array as desired. Elements that are grown have uninitialized values, while those which are shrunk will lose the data contained in the deleted elements (ie. it will release the memory).
Inserts a new value into the array at the given index.
The initial element at that index, and all following elements, are shifted towards the last. If the array cannot be expanded in size by 1 element, then the insert will fail and the existing array will remain unchanged.
Parameters
[in]
element
the new value to insert into the array
[in]
index
the index of the element to set to the the new value
Returns
MS::kSuccess if the insert was successful and MS::kFailure otherwise
After this operation the length method will return 0. This does not change the amount of memory allocated to the array, only the number of valid elements in it.
Returns
MS::kSuccess the operation is successful and MS::kFailure otherwise
void setSizeIncrement
(
unsigned int
newIncrement
)
Set the size by which the array will be expanded whenever expansion is necessary.
Parameters
[in]
newIncrement
the new increment
unsigned int sizeIncrement
(
)
const
Return the size by which the array will be expanded whenever expansion is necessary.