VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
vtkTreeBFSIterator Class Reference

breadth first search iterator through a vtkTree More...

#include <vtkTreeBFSIterator.h>

Inheritance diagram for vtkTreeBFSIterator:
Inheritance graph
[legend]
Collaboration diagram for vtkTreeBFSIterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTreeIterator Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTreeBFSIteratorNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static vtkTreeBFSIteratorNew ()
static int IsTypeOf (const char *type)
static vtkTreeBFSIteratorSafeDownCast (vtkObjectBase *o)

Protected Types

enum  ColorType { WHITE, GRAY, BLACK }

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTreeBFSIterator ()
 ~vtkTreeBFSIterator ()
virtual void Initialize ()
virtual vtkIdType NextInternal ()

Protected Attributes

vtkTreeBFSIteratorInternals * Internals
vtkIntArrayColor

Detailed Description

breadth first search iterator through a vtkTree

vtkTreeBFSIterator performs a breadth first search traversal of a tree.

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

Thanks:
Thanks to David Doria for submitting this class.
Tests:
vtkTreeBFSIterator (Tests)

Definition at line 42 of file vtkTreeBFSIterator.h.


Member Typedef Documentation

Reimplemented from vtkTreeIterator.

Definition at line 46 of file vtkTreeBFSIterator.h.


Member Enumeration Documentation

Enumerator:
WHITE 
GRAY 
BLACK 

Definition at line 60 of file vtkTreeBFSIterator.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkTreeBFSIterator::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTreeIterator.

virtual int vtkTreeBFSIterator::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTreeIterator.

Reimplemented from vtkTreeIterator.

virtual vtkObjectBase* vtkTreeBFSIterator::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTreeIterator.

Reimplemented from vtkTreeIterator.

virtual void vtkTreeBFSIterator::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkTreeIterator.

virtual void vtkTreeBFSIterator::Initialize ( ) [protected, virtual]

Implements vtkTreeIterator.

virtual vtkIdType vtkTreeBFSIterator::NextInternal ( ) [protected, virtual]

Implements vtkTreeIterator.


Member Data Documentation

vtkTreeBFSIteratorInternals* vtkTreeBFSIterator::Internals [protected]

Definition at line 56 of file vtkTreeBFSIterator.h.

Definition at line 57 of file vtkTreeBFSIterator.h.


The documentation for this class was generated from the following file: