00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00031
#ifndef __vtkCollectionIterator_h
00032
#define __vtkCollectionIterator_h
00033
00034
#include "vtkObject.h"
00035
00036
class vtkCollection;
00037
class vtkCollectionElement;
00038
00039 class VTK_COMMON_EXPORT vtkCollectionIterator :
public vtkObject
00040 {
00041
public:
00042 vtkTypeRevisionMacro(vtkCollectionIterator,
vtkObject);
00043
void PrintSelf(ostream& os,
vtkIndent indent);
00044
static vtkCollectionIterator*
New();
00045
00047
00048
virtual void SetCollection(
vtkCollection*);
00049 vtkGetObjectMacro(Collection,
vtkCollection);
00051
00053 void InitTraversal() { this->GoToFirstItem(); }
00054
00056
void GoToFirstItem();
00057
00059
void GoToNextItem();
00060
00063
int IsDoneWithTraversal();
00064
00067
vtkObject* GetObject();
00068
00069
protected:
00070 vtkCollectionIterator();
00071 ~vtkCollectionIterator();
00072
00073
00074 vtkCollection* Collection;
00075
00076
00077 vtkCollectionElement* Element;
00078
00079
private:
00080 vtkCollectionIterator(
const vtkCollectionIterator&);
00081
void operator=(
const vtkCollectionIterator&);
00082 };
00083
00084
#endif