VTK
dox/Common/DataModel/vtkGenericCellIterator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGenericCellIterator.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkGenericCellIterator_h
00036 #define __vtkGenericCellIterator_h
00037 
00038 #include "vtkCommonDataModelModule.h" // For export macro
00039 #include "vtkObject.h"
00040 
00041 class vtkGenericAdaptorCell;
00042 
00043 class VTKCOMMONDATAMODEL_EXPORT vtkGenericCellIterator : public vtkObject
00044 {
00045 public:
00047 
00048   vtkTypeMacro(vtkGenericCellIterator,vtkObject);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053   virtual void Begin() = 0;
00054 
00056   virtual int IsAtEnd() = 0;
00057 
00060   virtual vtkGenericAdaptorCell *NewCell() = 0;
00061 
00065   virtual void GetCell(vtkGenericAdaptorCell *c) = 0;
00066 
00069   virtual vtkGenericAdaptorCell *GetCell() = 0;
00070 
00073   virtual void Next() = 0;
00074 
00075 protected:
00076   vtkGenericCellIterator();
00077   virtual ~vtkGenericCellIterator();
00078 
00079 private:
00080   vtkGenericCellIterator(const vtkGenericCellIterator&);  // Not implemented.
00081   void operator=(const vtkGenericCellIterator&);  // Not implemented.
00082 };
00083 
00084 #endif