Section: Visualization Toolkit Common Classes
Example usage: \begin{verbatim} vtkArrayIter* iter = array->NewIterator(); switch(array->GetDataType()) { vtkArrayIteratorTemplateMacro(myFunc(static_cast<VTK_TT*>(iter), arg2)); } iter->Delete(); \end{verbatim}
To create an instance of class vtkArrayIterator, simply invoke its constructor as follows
obj = vtkArrayIterator
obj
is an instance of the vtkArrayIterator class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkArrayIterator = obj.NewInstance ()
vtkArrayIterator = obj.SafeDownCast (vtkObject o)
obj.Initialize (vtkAbstractArray array)
- Set the array this iterator will iterate over.
After Initialize() has been called, the iterator is valid
so long as the Array has not been modified
(except using the iterator itself).
If the array is modified, the iterator must be re-intialized.
int = obj.GetDataType ()