VTK
|
breadth first search iterator through a vtkTree More...
#include <vtkTreeBFSIterator.h>
Public Types | |
typedef vtkTreeIterator | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkTreeBFSIterator * | New () |
static int | IsTypeOf (const char *type) |
static vtkTreeBFSIterator * | SafeDownCast (vtkObject *o) |
Protected Types | |
enum | ColorType { WHITE, GRAY, BLACK } |
Protected Member Functions | |
vtkTreeBFSIterator () | |
~vtkTreeBFSIterator () | |
virtual void | Initialize () |
virtual vtkIdType | NextInternal () |
Protected Attributes | |
vtkTreeBFSIteratorInternals * | Internals |
vtkIntArray * | Color |
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.
Definition at line 41 of file vtkTreeBFSIterator.h.
Reimplemented from vtkTreeIterator.
Definition at line 45 of file vtkTreeBFSIterator.h.
enum vtkTreeBFSIterator::ColorType [protected] |
Definition at line 59 of file vtkTreeBFSIterator.h.
vtkTreeBFSIterator::vtkTreeBFSIterator | ( | ) | [protected] |
vtkTreeBFSIterator::~vtkTreeBFSIterator | ( | ) | [protected] |
static vtkTreeBFSIterator* vtkTreeBFSIterator::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual const char* vtkTreeBFSIterator::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTreeIterator.
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.
static vtkTreeBFSIterator* vtkTreeBFSIterator::SafeDownCast | ( | vtkObject * | o | ) | [static] |
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.
vtkTreeBFSIteratorInternals* vtkTreeBFSIterator::Internals [protected] |
Definition at line 55 of file vtkTreeBFSIterator.h.
vtkIntArray* vtkTreeBFSIterator::Color [protected] |
Definition at line 56 of file vtkTreeBFSIterator.h.