VTK  9.0.20210615
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 =========================================================================*/
33 #ifndef vtkGenericCellIterator_h
34 #define vtkGenericCellIterator_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkObject.h"
38 
40 
41 class VTKCOMMONDATAMODEL_EXPORT vtkGenericCellIterator : public vtkObject
42 {
43 public:
45 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  virtual void Begin() = 0;
56 
60  virtual vtkTypeBool IsAtEnd() = 0;
61 
67 
75  virtual void GetCell(vtkGenericAdaptorCell* c) = 0;
76 
84 
89  virtual void Next() = 0;
90 
91 protected:
94 
95 private:
97  void operator=(const vtkGenericCellIterator&) = delete;
98 };
99 
100 #endif
vtkGenericCellIterator::vtkGenericCellIterator
vtkGenericCellIterator()
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:63
vtkGenericAdaptorCell
defines cell interface
Definition: vtkGenericAdaptorCell.h:92
vtkGenericCellIterator
iterator used to traverse cells
Definition: vtkGenericCellIterator.h:42
vtkGenericCellIterator::GetCell
virtual vtkGenericAdaptorCell * GetCell()=0
Get the cell at the current traversal position.
vtkGenericCellIterator::~vtkGenericCellIterator
~vtkGenericCellIterator() override
vtkGenericCellIterator::Next
virtual void Next()=0
Move the iterator to the next position in the list.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkGenericCellIterator::NewCell
virtual vtkGenericAdaptorCell * NewCell()=0
Create an empty cell.
vtkGenericCellIterator::IsAtEnd
virtual vtkTypeBool IsAtEnd()=0
Is the iterator at the end of traversal?
vtkObject.h
vtkGenericCellIterator::Begin
virtual void Begin()=0
Move iterator to first position if any (loop initialization).
vtkGenericCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK construction and type macros.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkGenericCellIterator::GetCell
virtual void GetCell(vtkGenericAdaptorCell *c)=0
Get the cell at current position.