VTK
|
superclass for composite data iterators More...
#include <vtkDataObjectTreeIterator.h>
superclass for composite data iterators
vtkDataObjectTreeIterator provides an interface for accessing datasets in a collection (vtkDataObjectTreeIterator).
Definition at line 38 of file vtkDataObjectTreeIterator.h.
Reimplemented from vtkCompositeDataIterator.
Definition at line 42 of file vtkDataObjectTreeIterator.h.
vtkDataObjectTreeIterator::vtkDataObjectTreeIterator | ( | ) | [protected] |
virtual vtkDataObjectTreeIterator::~vtkDataObjectTreeIterator | ( | ) | [protected, virtual] |
static vtkDataObjectTreeIterator* vtkDataObjectTreeIterator::New | ( | ) | [static] |
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.
static vtkDataObjectTreeIterator* vtkDataObjectTreeIterator::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
virtual int vtkDataObjectTreeIterator::IsDoneWithTraversal | ( | ) | [virtual] |
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.
virtual vtkDataObject* vtkDataObjectTreeIterator::GetCurrentDataObject | ( | ) | [virtual] |
Returns the current item. Valid only when IsDoneWithTraversal() returns 0.
Implements vtkCompositeDataIterator.
virtual vtkInformation* vtkDataObjectTreeIterator::GetCurrentMetaData | ( | ) | [virtual] |
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.
virtual int vtkDataObjectTreeIterator::HasCurrentMetaData | ( | ) | [virtual] |
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.
virtual int vtkDataObjectTreeIterator::GetVisitOnlyLeaves | ( | ) | [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.
virtual void vtkDataObjectTreeIterator::VisitOnlyLeavesOn | ( | ) | [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.
virtual void vtkDataObjectTreeIterator::VisitOnlyLeavesOff | ( | ) | [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.
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.
virtual int vtkDataObjectTreeIterator::GetTraverseSubTree | ( | ) | [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.
virtual void vtkDataObjectTreeIterator::TraverseSubTreeOn | ( | ) | [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.
virtual void vtkDataObjectTreeIterator::TraverseSubTreeOff | ( | ) | [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.
void vtkDataObjectTreeIterator::NextInternal | ( | ) | [protected] |
vtkDataObjectTreeIndex vtkDataObjectTreeIterator::GetCurrentIndex | ( | ) | [protected] |
Returns the index for the current data object.
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.
unsigned int vtkDataObjectTreeIterator::CurrentFlatIndex [protected] |
Definition at line 118 of file vtkDataObjectTreeIterator.h.