16 #ifndef vtkCollectionIterator_h
17 #define vtkCollectionIterator_h
19 #include "vtkCommonCoreModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
iterator through a vtkCollection.
void InitTraversal()
Position the iterator at the first item in the collection.
~vtkCollectionIterator() override
vtkObject * GetObjectInternal()
int IsDoneWithTraversal()
Test whether the iterator is currently positioned at a valid item.
static vtkCollectionIterator * New()
vtkObject * GetCurrentObject()
Get the item at the current iterator position.
void GoToNextItem()
Move the iterator to the next item in the collection.
vtkCollection * Collection
virtual void SetCollection(vtkCollection *)
Set/Get the collection over which to iterate.
void GoToFirstItem()
Position the iterator at the first item in the collection.
vtkCollectionElement * Element
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create and manipulate ordered lists of objects
a simple class to control print indentation
abstract base class for most VTK objects