Section: Visualization Toolkit Filtering Classes
Typical use is: <pre> vtkGenericDataSet *dataset; vtkGenericPointIterator *it = dataset->NewPointIterator(); for (it->Begin(); !it->IsAtEnd(); it->Next()); { x=it->GetPosition(); } </pre>
To create an instance of class vtkGenericPointIterator, simply invoke its constructor as follows
obj = vtkGenericPointIterator
obj
is an instance of the vtkGenericPointIterator class.
string = obj.GetClassName ()
- Standard VTK construction and type macros.
int = obj.IsA (string name)
- Standard VTK construction and type macros.
vtkGenericPointIterator = obj.NewInstance ()
- Standard VTK construction and type macros.
vtkGenericPointIterator = 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?
obj.Next ()
- Move the iterator to the next position in the list.
\pre not_off: !IsAtEnd()
obj.GetPosition (double x[3])
- Get the coordinates of the point at the current iterator position.
\pre not_off: !IsAtEnd()
\pre x_exists: x!=0
vtkIdType = obj.GetId ()
- Return the unique identifier for the point, could be non-contiguous.
\pre not_off: !IsAtEnd()