Common/vtkCollectionIterator.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00027 #ifndef __vtkCollectionIterator_h
00028 #define __vtkCollectionIterator_h
00029
00030 #include "vtkObject.h"
00031
00032 class vtkCollection;
00033 class vtkCollectionElement;
00034
00035 class VTK_COMMON_EXPORT vtkCollectionIterator : public vtkObject
00036 {
00037 public:
00038 vtkTypeRevisionMacro(vtkCollectionIterator,vtkObject);
00039 void PrintSelf(ostream& os, vtkIndent indent);
00040 static vtkCollectionIterator* New();
00041
00043
00044 virtual void SetCollection(vtkCollection*);
00045 vtkGetObjectMacro(Collection, vtkCollection);
00047
00049 void InitTraversal() { this->GoToFirstItem(); }
00050
00052 void GoToFirstItem();
00053
00055 void GoToNextItem();
00056
00059 int IsDoneWithTraversal();
00060
00063 vtkObject* GetObject();
00064
00065 protected:
00066 vtkCollectionIterator();
00067 ~vtkCollectionIterator();
00068
00069
00070 vtkCollection* Collection;
00071
00072
00073 vtkCollectionElement* Element;
00074
00075 private:
00076 vtkCollectionIterator(const vtkCollectionIterator&);
00077 void operator=(const vtkCollectionIterator&);
00078 };
00079
00080 #endif