Section: Visualization Toolkit Filtering Classes
Typical use is: <pre> vtkGenericDataSet *dataset; vtkGenericCellIterator *it = dataset->NewCellIterator(2); for (it->Begin(); !it->IsAtEnd(); it->Next()); { spec=it->GetCell(); } </pre>
To create an instance of class vtkGenericCellIterator, simply invoke its constructor as follows
obj = vtkGenericCellIterator
obj
is an instance of the vtkGenericCellIterator class.
string = obj.GetClassName ()
- Standard VTK construction and type macros.
int = obj.IsA (string name)
- Standard VTK construction and type macros.
vtkGenericCellIterator = obj.NewInstance ()
- Standard VTK construction and type macros.
vtkGenericCellIterator = obj.SafeDownCast (vtkObject o)
- Standard VTK construction and type macros.
obj.Begin ()
- Move iterator to first position if any (loop initialization).
int = obj.IsAtEnd ()
- Is the iterator at the end of traversal?
vtkGenericAdaptorCell = obj.NewCell ()
- Create an empty cell. The user is responsible for deleting it.
\post result_exists: result!=0
obj.GetCell (vtkGenericAdaptorCell c)
- Get the cell at current position. The cell should be instantiated
with the NewCell() method.
\pre not_at_end: !IsAtEnd()
\pre c_exists: c!=0
THREAD SAFE
vtkGenericAdaptorCell = obj.GetCell ()
- Get the cell at the current traversal position.
NOT THREAD SAFE
\pre not_at_end: !IsAtEnd()
\post result_exits: result!=0
obj.Next ()
- Move the iterator to the next position in the list.
\pre not_at_end: !IsAtEnd()