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

iterator through a vtkCollection. More...

#include <vtkCollectionIterator.h>

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

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkCollectionIteratorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void InitTraversal ()
void GoToFirstItem ()
void GoToNextItem ()
int IsDoneWithTraversal ()
vtkObjectGetCurrentObject ()
virtual void SetCollection (vtkCollection *)
virtual vtkCollectionGetCollection ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkCollectionIteratorSafeDownCast (vtkObjectBase *o)
static vtkCollectionIteratorNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkCollectionIterator ()
 ~vtkCollectionIterator ()
vtkObjectGetObjectInternal ()

Protected Attributes

vtkCollectionCollection
vtkCollectionElementElement

Detailed Description

iterator through a vtkCollection.

vtkCollectionIterator provides an alternative way to traverse through the objects in a vtkCollection. Unlike the collection's built in interface, this allows multiple iterators to simultaneously traverse the collection. If items are removed from the collection, only the iterators currently pointing to those items are invalidated. Other iterators will still continue to function normally.

Definition at line 36 of file vtkCollectionIterator.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

Definition at line 39 of file vtkCollectionIterator.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkCollectionIterator::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 vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

virtual int vtkCollectionIterator::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 vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

Reimplemented from vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

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

Reimplemented from vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

Reimplemented from vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

void vtkCollectionIterator::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 vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

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

Reimplemented from vtkObject.

Reimplemented in vtkDataArrayCollectionIterator.

virtual void vtkCollectionIterator::SetCollection ( vtkCollection ) [virtual]

Set/Get the collection over which to iterate.

Reimplemented in vtkDataArrayCollectionIterator.

Set/Get the collection over which to iterate.

Position the iterator at the first item in the collection.

Definition at line 50 of file vtkCollectionIterator.h.

Position the iterator at the first item in the collection.

Move the iterator to the next item in the collection.

Test whether the iterator is currently positioned at a valid item. Returns 1 for yes, 0 for no.

Get the item at the current iterator position. Valid only when IsDoneWithTraversal() returns 1.


Member Data Documentation

Definition at line 71 of file vtkCollectionIterator.h.

Definition at line 74 of file vtkCollectionIterator.h.


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