Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Common/vtkCompositeDataIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCompositeDataIterator.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00033 #ifndef __vtkCompositeDataIterator_h
00034 #define __vtkCompositeDataIterator_h
00035 
00036 #include "vtkObject.h"
00037 
00038 class vtkDataObject;
00039 
00040 class VTK_COMMON_EXPORT vtkCompositeDataIterator : public vtkObject
00041 {
00042 public:
00043   vtkTypeRevisionMacro(vtkCompositeDataIterator,vtkObject);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00047   void InitTraversal() { this->GoToFirstItem(); }
00048 
00050   virtual void GoToFirstItem() = 0;
00051 
00053   virtual void GoToNextItem() = 0;
00054 
00057   virtual int IsDoneWithTraversal() = 0;
00058 
00061   virtual vtkDataObject* GetCurrentDataObject() = 0;
00062 
00063 protected:
00064   vtkCompositeDataIterator(); 
00065   virtual ~vtkCompositeDataIterator(); 
00066 
00067 private:
00068   vtkCompositeDataIterator(const vtkCompositeDataIterator&);  // Not implemented.
00069   void operator=(const vtkCompositeDataIterator&);  // Not implemented.
00070 };
00071 
00072 #endif
00073