OpenMaya.MArrayDataBuilder Class Reference

OpenMaya.MArrayDataBuilder Class Reference
+ この参照ページは、次の概要トピックと関連付けられています。

Class Description

Array builder for arrays in data blocks.
+ Inheritance diagram for OpenMaya.MArrayDataBuilder:

Public Member Functions

__init__ ()
 
__len__ ()
 
addElement ()
 
addElementArray ()
 
addLast ()
 
addLastArray ()
 
copy ()
 
growArray ()
 
removeElement ()
 
setGrowSize ()
 

Constructor & Destructor Documentation

OpenMaya.MArrayDataBuilder.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MArrayDataBuilder.__len__ ( )
x.__len__() <==> len(x)
OpenMaya.MArrayDataBuilder.addElement ( )
addElement(index) -> MDataHandle

Adds a new element to the array at the given index.

* index (int) - the index at which we wish to add the new element

Returns The handle for the new element
OpenMaya.MArrayDataBuilder.addElementArray ( )
addElementArray(index) -> MArrayDataHandle

Adds a new element to the array at the given index.  The added element is also an array.

* index (int) - the index at which we wish to add the new element

Returns The handle for the new array element
OpenMaya.MArrayDataBuilder.addLast ( )
addLast() -> MDataHandle

Adds a new element to the end of the array.  The index of the element will be the current highest index + 1.

Returns The handle for the new element
OpenMaya.MArrayDataBuilder.addLastArray ( )
addLastArray() -> MArrayDataHandle

Adds a new element to the end of the array.  The added element is also an array.  The index of the element will the current highest index + 1.

Returns The handle for the new array element
OpenMaya.MArrayDataBuilder.copy ( )
copy(source) -> self

Copy data from source builder.

* source (MArrayDataBuilder) - The source object to copy from
OpenMaya.MArrayDataBuilder.growArray ( )
growArray(amount) -> self

Grows the array storage by the given amount.

* amount (int) - the amount to grow the array by
OpenMaya.MArrayDataBuilder.removeElement ( )
removeElement(index) -> self

Removes the specified element from the array

* index (int) - the element of the array to remove
OpenMaya.MArrayDataBuilder.setGrowSize ( )
setGrowSize(size) -> self

Sets the grow size of the array.  As elements are added to the array, the builder will allocate memory in chunks.  This method tells the builder how many elements to allocate each time it grows the array.

* size (int) - the number of elements to allocate when growing the array