VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkDataObjectTreeIterator Class Reference

superclass for composite data iterators More...

#include <vtkDataObjectTreeIterator.h>

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

List of all members.

Public Types

typedef vtkCompositeDataIterator Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDataObjectTreeIteratorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void GoToFirstItem ()
virtual void GoToNextItem ()
virtual int IsDoneWithTraversal ()
virtual vtkDataObjectGetCurrentDataObject ()
virtual vtkInformationGetCurrentMetaData ()
virtual int HasCurrentMetaData ()
virtual unsigned int GetCurrentFlatIndex ()
virtual void SetVisitOnlyLeaves (int)
virtual int GetVisitOnlyLeaves ()
virtual void VisitOnlyLeavesOn ()
virtual void VisitOnlyLeavesOff ()
virtual void SetTraverseSubTree (int)
virtual int GetTraverseSubTree ()
virtual void TraverseSubTreeOn ()
virtual void TraverseSubTreeOff ()

Static Public Member Functions

static vtkDataObjectTreeIteratorNew ()
static int IsTypeOf (const char *type)
static vtkDataObjectTreeIteratorSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkDataObjectTreeIterator ()
virtual ~vtkDataObjectTreeIterator ()
void NextInternal ()
vtkDataObjectTreeIndex GetCurrentIndex ()

Protected Attributes

unsigned int CurrentFlatIndex

Friends

class vtkDataObjectTree
class vtkMultiDataSetInternal
class vtkInternals

Detailed Description

superclass for composite data iterators

vtkDataObjectTreeIterator provides an interface for accessing datasets in a collection (vtkDataObjectTreeIterator).

Tests:
vtkDataObjectTreeIterator (Tests)

Definition at line 38 of file vtkDataObjectTreeIterator.h.


Member Typedef Documentation

Reimplemented from vtkCompositeDataIterator.

Definition at line 42 of file vtkDataObjectTreeIterator.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 vtkDataObjectTreeIterator::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 vtkCompositeDataIterator.

virtual int vtkDataObjectTreeIterator::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 vtkCompositeDataIterator.

Reimplemented from vtkCompositeDataIterator.

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

Reimplemented from vtkCompositeDataIterator.

Reimplemented from vtkCompositeDataIterator.

void vtkDataObjectTreeIterator::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 vtkCompositeDataIterator.

virtual void vtkDataObjectTreeIterator::GoToFirstItem ( ) [virtual]

Move the iterator to the beginning of the collection.

Implements vtkCompositeDataIterator.

virtual void vtkDataObjectTreeIterator::GoToNextItem ( ) [virtual]

Move the iterator to the next item in the collection.

Implements vtkCompositeDataIterator.

Test whether the iterator is finished with the traversal. Returns 1 for yes, and 0 for no. It is safe to call any of the GetCurrent...() methods only when IsDoneWithTraversal() returns 0.

Implements vtkCompositeDataIterator.

Returns the current item. Valid only when IsDoneWithTraversal() returns 0.

Implements vtkCompositeDataIterator.

Returns the meta-data associated with the current item. Note that, depending on iterator implementation, the returned information is not necessarily stored on the current object. So modifying the information is forbidden.

Implements vtkCompositeDataIterator.

Returns if the a meta-data information object is present for the current item. Return 1 on success, 0 otherwise.

Implements vtkCompositeDataIterator.

virtual unsigned int vtkDataObjectTreeIterator::GetCurrentFlatIndex ( ) [virtual]

Flat index is an index obtained by traversing the tree in preorder. This can be used to uniquely identify nodes in the tree. Not valid if IsDoneWithTraversal() returns true.

Implements vtkCompositeDataIterator.

virtual void vtkDataObjectTreeIterator::SetVisitOnlyLeaves ( int  ) [virtual]

If VisitOnlyLeaves is true, the iterator will only visit nodes (sub-datasets) that are not composite. If it encounters a composite data set, it will automatically traverse that composite dataset until it finds non-composite datasets. With this options, it is possible to visit all non-composite datasets in tree of composite datasets (composite of composite of composite for example :-) ) If VisitOnlyLeaves is false, GetCurrentDataObject() may return vtkCompositeDataSet. By default, VisitOnlyLeaves is 1.

If VisitOnlyLeaves is true, the iterator will only visit nodes (sub-datasets) that are not composite. If it encounters a composite data set, it will automatically traverse that composite dataset until it finds non-composite datasets. With this options, it is possible to visit all non-composite datasets in tree of composite datasets (composite of composite of composite for example :-) ) If VisitOnlyLeaves is false, GetCurrentDataObject() may return vtkCompositeDataSet. By default, VisitOnlyLeaves is 1.

If VisitOnlyLeaves is true, the iterator will only visit nodes (sub-datasets) that are not composite. If it encounters a composite data set, it will automatically traverse that composite dataset until it finds non-composite datasets. With this options, it is possible to visit all non-composite datasets in tree of composite datasets (composite of composite of composite for example :-) ) If VisitOnlyLeaves is false, GetCurrentDataObject() may return vtkCompositeDataSet. By default, VisitOnlyLeaves is 1.

If VisitOnlyLeaves is true, the iterator will only visit nodes (sub-datasets) that are not composite. If it encounters a composite data set, it will automatically traverse that composite dataset until it finds non-composite datasets. With this options, it is possible to visit all non-composite datasets in tree of composite datasets (composite of composite of composite for example :-) ) If VisitOnlyLeaves is false, GetCurrentDataObject() may return vtkCompositeDataSet. By default, VisitOnlyLeaves is 1.

virtual void vtkDataObjectTreeIterator::SetTraverseSubTree ( int  ) [virtual]

If TraverseSubTree is set to true, the iterator will visit the entire tree structure, otherwise it only visits the first level children. Set to 1 by default.

If TraverseSubTree is set to true, the iterator will visit the entire tree structure, otherwise it only visits the first level children. Set to 1 by default.

If TraverseSubTree is set to true, the iterator will visit the entire tree structure, otherwise it only visits the first level children. Set to 1 by default.

If TraverseSubTree is set to true, the iterator will visit the entire tree structure, otherwise it only visits the first level children. Set to 1 by default.

Returns the index for the current data object.


Friends And Related Function Documentation

friend class vtkDataObjectTree [friend]

Definition at line 115 of file vtkDataObjectTreeIterator.h.

friend class vtkMultiDataSetInternal [friend]

Definition at line 116 of file vtkDataObjectTreeIterator.h.

friend class vtkInternals [friend]

Definition at line 126 of file vtkDataObjectTreeIterator.h.


Member Data Documentation

Definition at line 118 of file vtkDataObjectTreeIterator.h.


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