vtkTreeDFSIterator

Section: Visualization Toolkit Filtering Classes

Usage

vtkTreeDFSIterator performs a depth first seedgeh of a tree. First, you must set the tree on which you are going to iterate, and set the starting vertex and mode. The mode is either DISCOVER, in which case vertices are visited as they are first reached, or FINISH, in which case vertices are visited when they are done, i.e. all adjacent vertices have been discovered already.

After setting up the iterator, the normal mode of operation is to set up a <code>while(iter->HasNext())</code> loop, with the statement <code>vtkIdType vertex = iter->Next()</code> inside the loop.

To create an instance of class vtkTreeDFSIterator, simply invoke its constructor as follows

  obj = vtkTreeDFSIterator

Methods

The class vtkTreeDFSIterator has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkTreeDFSIterator class.