VTK  9.4.20250328
vtkUnstructuredGridCellIterator.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
12#ifndef vtkUnstructuredGridCellIterator_h
13#define vtkUnstructuredGridCellIterator_h
14
15#include "vtkCellArrayIterator.h" // Accessing cell array
16#include "vtkCellIterator.h"
17#include "vtkCommonDataModelModule.h" // For export macro
18#include "vtkSmartPointer.h" // For vtkSmartPointer
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkCellArray;
22class vtkIdTypeArray;
25class vtkPoints;
26
27class VTKCOMMONDATAMODEL_EXPORT vtkUnstructuredGridCellIterator : public vtkCellIterator
28{
29public:
31
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 bool IsDoneWithTraversal() override;
44 vtkIdType GetCellId() override;
46
53 void GoToCell(vtkIdType cellId) { this->Cells->GoToCell(cellId); }
54
55protected:
58
59 void ResetToFirstCell() override;
60 void IncrementToNextCell() override;
61 void FetchCellType() override;
62 void FetchPointIds() override;
63 void FetchPoints() override;
64 void FetchFaces() override;
65
66 friend class vtkUnstructuredGrid;
68
74
75private:
77 void operator=(const vtkUnstructuredGridCellIterator&) = delete;
78};
79
80VTK_ABI_NAMESPACE_END
81#endif // vtkUnstructuredGridCellIterator_h
object to represent cell connectivity
Efficient cell iterator for vtkDataSet topologies.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 3D points
Definition vtkPoints.h:139
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char
Implementation of vtkCellIterator specialized for vtkUnstructuredGrid.
void GoToCell(vtkIdType cellId)
A method used to provide random access into cells.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
void SetUnstructuredGrid(vtkUnstructuredGrid *ug)
void IncrementToNextCell() override
Update internal state to point to the next cell.
void ResetToFirstCell() override
Update internal state to point to the first cell.
bool IsDoneWithTraversal() override
Override superclass methods.
vtkSmartPointer< vtkCellArray > PolyFaceLocs
vtkIdType GetCellId() override
Override superclass methods.
void FetchFaces() override
Lookup the cell faces in the data set and store them in this->Faces.
void FetchPoints() override
Lookup the cell points in the data set and store them in this->Points.
vtkSmartPointer< vtkCellArrayIterator > Cells
vtkSmartPointer< vtkCellArray > PolyFaceConn
vtkSmartPointer< vtkUnsignedCharArray > Types
static vtkUnstructuredGridCellIterator * New()
Standard methods for instantiation, type information, and printing.
void FetchPointIds() override
Lookup the cell point ids in the data set and store them in this->PointIds.
void FetchCellType() override
Lookup the cell type in the data set and store it in this->CellType.
dataset represents arbitrary combinations of all possible cell types
@ Cells
A cell specified by degrees of freedom held in arrays.
int vtkIdType
Definition vtkType.h:332