VTK  9.1.0
vtkMappedUnstructuredGridCellIterator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkMappedUnstructuredGridCellIterator.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=========================================================================*/
15
27#ifndef vtkMappedUnstructuredGridCellIterator_h
28#define vtkMappedUnstructuredGridCellIterator_h
29
30#include "vtkCellIterator.h"
31#include "vtkSmartPointer.h" // For vtkSmartPointer
32
33template <class Implementation, class CellIterator>
35
36template <class Implementation>
38{
39public:
41 typedef Implementation ImplementationType;
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
48 bool IsDoneWithTraversal() override;
49 vtkIdType GetCellId() override;
50
51protected:
54
55 void ResetToFirstCell() override;
56 void IncrementToNextCell() override;
57 void FetchCellType() override;
58 void FetchPointIds() override;
59 void FetchPoints() override;
60
61private:
63 void operator=(const vtkMappedUnstructuredGridCellIterator&) = delete;
64
67 vtkIdType CellId;
68 vtkIdType NumberOfCells;
69};
70
71#include "vtkMappedUnstructuredGridCellIterator.txx" // template implementations
72
73#endif // vtkMappedUnstructuredGridCellIterator_h
74
75// VTK-HeaderTest-Exclude: vtkMappedUnstructuredGridCellIterator.h
Efficient cell iterator for vtkDataSet topologies.
a simple class to control print indentation
Definition: vtkIndent.h:113
Default cell iterator for vtkMappedUnstructuredGrid.
static vtkMappedUnstructuredGridCellIterator< ImplementationType > * New()
void FetchPoints() override
Lookup the cell points in the data set and store them in this->Points.
bool IsDoneWithTraversal() override
Returns false while the iterator is valid.
void FetchPointIds() override
Lookup the cell point ids in the data set and store them in this->PointIds.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType GetCellId() override
Get the id of the current cell.
void SetMappedUnstructuredGrid(vtkMappedUnstructuredGrid< ImplementationType, ThisType > *grid)
vtkMappedUnstructuredGridCellIterator< ImplementationType > ThisType
vtkTemplateTypeMacro(vtkMappedUnstructuredGridCellIterator< Implementation >, vtkCellIterator)
void ResetToFirstCell() override
Update internal state to point to the first cell.
void IncrementToNextCell() override
Update internal state to point to the next cell.
void FetchCellType() override
Lookup the cell type in the data set and store it in this->CellType.
Allows datasets with arbitrary storage layouts to be used with VTK.
int vtkIdType
Definition: vtkType.h:332