VTK
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:
42 typedef Implementation ImplementationType;
45 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46
49
52
53protected:
56
62
63private:
65 void operator=(const vtkMappedUnstructuredGridCellIterator &) VTK_DELETE_FUNCTION;
66
69 vtkIdType CellId;
70 vtkIdType NumberOfCells;
71};
72
73#include "vtkMappedUnstructuredGridCellIterator.txx"
74
75#endif //vtkMappedUnstructuredGridCellIterator_h
76
77// VTK-HeaderTest-Exclude: vtkMappedUnstructuredGridCellIterator.h
Efficient cell iterator for vtkDataSet topologies.
a simple class to control print indentation
Definition: vtkIndent.h:40
Default cell iterator for vtkMappedUnstructuredGrid.
void FetchPoints()
Lookup the cell points in the data set and store them in this->Points.
void FetchPointIds()
Lookup the cell point ids in the data set and store them in this->PointIds.
void IncrementToNextCell()
Update internal state to point to the next cell.
static vtkMappedUnstructuredGridCellIterator< ImplementationType > * New()
void ResetToFirstCell()
Update internal state to point to the first cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMappedUnstructuredGrid(vtkMappedUnstructuredGrid< ImplementationType, ThisType > *grid)
vtkMappedUnstructuredGridCellIterator< ImplementationType > ThisType
bool IsDoneWithTraversal()
Returns false while the iterator is valid.
vtkIdType GetCellId()
Get the id of the current cell.
vtkTemplateTypeMacro(vtkMappedUnstructuredGridCellIterator< Implementation >, vtkCellIterator) typedef Implementation ImplementationType
void FetchCellType()
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:287