VTK  9.2.6
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
36#ifndef vtkGenericCellIterator_h
37#define vtkGenericCellIterator_h
38
39#include "vtkCommonDataModelModule.h" // For export macro
40#include "vtkObject.h"
41
43
44class VTKCOMMONDATAMODEL_EXPORT vtkGenericCellIterator : public vtkObject
45{
46public:
48
52 void PrintSelf(ostream& os, vtkIndent indent) override;
54
58 virtual void Begin() = 0;
59
63 virtual vtkTypeBool IsAtEnd() = 0;
64
70
78 virtual void GetCell(vtkGenericAdaptorCell* c) = 0;
79
87
92 virtual void Next() = 0;
93
94protected:
97
98private:
100 void operator=(const vtkGenericCellIterator&) = delete;
101};
102
103#endif
defines cell interface
virtual void Next()=0
Move the iterator to the next position in the list.
virtual vtkTypeBool IsAtEnd()=0
Is the iterator at the end of traversal?
virtual void Begin()=0
Move iterator to first position if any (loop initialization).
virtual vtkGenericAdaptorCell * NewCell()=0
Create an empty cell.
virtual vtkGenericAdaptorCell * GetCell()=0
Get the cell at the current traversal position.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK construction and type macros.
~vtkGenericCellIterator() override
virtual void GetCell(vtkGenericAdaptorCell *c)=0
Get the cell at current position.
a simple class to control print indentation
Definition vtkIndent.h:40
int vtkTypeBool
Definition vtkABI.h:69