VTK  9.3.1
vtkGenericCellIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkGenericCellIterator_h
25 #define vtkGenericCellIterator_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
32 
33 class VTKCOMMONDATAMODEL_EXPORT vtkGenericCellIterator : public vtkObject
34 {
35 public:
37 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  virtual void Begin() = 0;
48 
52  virtual vtkTypeBool IsAtEnd() = 0;
53 
58  virtual vtkGenericAdaptorCell* NewCell() = 0;
59 
67  virtual void GetCell(vtkGenericAdaptorCell* c) = 0;
68 
75  virtual vtkGenericAdaptorCell* GetCell() = 0;
76 
81  virtual void Next() = 0;
82 
83 protected:
85  ~vtkGenericCellIterator() override;
86 
87 private:
89  void operator=(const vtkGenericCellIterator&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
iterator used to traverse cells
int vtkTypeBool
Definition: vtkABI.h:64
defines cell interface
a simple class to control print indentation
Definition: vtkIndent.h:28