VTK
vtkGenericCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericCellIterator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkGenericCellIterator_h
36 #define vtkGenericCellIterator_h
37 
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkObject.h"
40 
42 
44 {
45 public:
47 
49  void PrintSelf(ostream& os, vtkIndent indent);
51 
53  virtual void Begin() = 0;
54 
56  virtual int IsAtEnd() = 0;
57 
60  virtual vtkGenericAdaptorCell *NewCell() = 0;
61 
65  virtual void GetCell(vtkGenericAdaptorCell *c) = 0;
66 
69  virtual vtkGenericAdaptorCell *GetCell() = 0;
70 
73  virtual void Next() = 0;
74 
75 protected:
77  virtual ~vtkGenericCellIterator();
78 
79 private:
80  vtkGenericCellIterator(const vtkGenericCellIterator&); // Not implemented.
81  void operator=(const vtkGenericCellIterator&); // Not implemented.
82 };
83 
84 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
iterator used to traverse cells
defines cell interface
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKCOMMONDATAMODEL_EXPORT