VTK  9.0.1
vtkUnstructuredGridCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridCellIterator.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 =========================================================================*/
21 #ifndef vtkUnstructuredGridCellIterator_h
22 #define vtkUnstructuredGridCellIterator_h
23 
24 #include "vtkCellIterator.h"
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkSmartPointer.h" // For vtkSmartPointer
27 
28 class vtkCellArray;
30 class vtkIdTypeArray;
33 class vtkPoints;
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkUnstructuredGridCellIterator : public vtkCellIterator
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  bool IsDoneWithTraversal() override;
43  vtkIdType GetCellId() override;
44 
45 protected:
48 
49  void ResetToFirstCell() override;
50  void IncrementToNextCell() override;
51  void FetchCellType() override;
52  void FetchPointIds() override;
53  void FetchPoints() override;
54  void FetchFaces() override;
55 
56  friend class vtkUnstructuredGrid;
57  void SetUnstructuredGrid(vtkUnstructuredGrid* ug);
58 
64 
65 private:
67  void operator=(const vtkUnstructuredGridCellIterator&) = delete;
68 };
69 
70 #endif // vtkUnstructuredGridCellIterator_h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkUnstructuredGridCellIterator::Coords
vtkSmartPointer< vtkPoints > Coords
Definition: vtkUnstructuredGridCellIterator.h:63
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:35
vtkCellIterator::FetchPointIds
virtual void FetchPointIds()=0
Lookup the cell point ids in the data set and store them in this->PointIds.
vtkUnstructuredGridCellIterator::FaceConn
vtkSmartPointer< vtkIdTypeArray > FaceConn
Definition: vtkUnstructuredGridCellIterator.h:61
vtkSmartPointer< vtkCellArrayIterator >
vtkCellIterator::FetchCellType
virtual void FetchCellType()=0
Lookup the cell type in the data set and store it in this->CellType.
vtkUnstructuredGridCellIterator::FaceLocs
vtkSmartPointer< vtkIdTypeArray > FaceLocs
Definition: vtkUnstructuredGridCellIterator.h:62
vtkCellArrayIterator
Encapsulate traversal logic for vtkCellArray.
Definition: vtkCellArrayIterator.h:78
vtkUnstructuredGridCellIterator::Types
vtkSmartPointer< vtkUnsignedCharArray > Types
Definition: vtkUnstructuredGridCellIterator.h:60
vtkCellIterator::ResetToFirstCell
virtual void ResetToFirstCell()=0
Update internal state to point to the first cell.
vtkUnstructuredGridCellIterator
Implementation of vtkCellIterator specialized for vtkUnstructuredGrid.
Definition: vtkUnstructuredGridCellIterator.h:35
vtkCellIterator::FetchFaces
virtual void FetchFaces()
Lookup the cell faces in the data set and store them in this->Faces.
Definition: vtkCellIterator.h:188
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:179
vtkSmartPointer.h
vtkCellIterator.h
vtkCellIterator::IsDoneWithTraversal
virtual bool IsDoneWithTraversal()=0
Returns false while the iterator is valid.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkCellIterator::IncrementToNextCell
virtual void IncrementToNextCell()=0
Update internal state to point to the next cell.
vtkCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridCellIterator::Cells
vtkSmartPointer< vtkCellArrayIterator > Cells
Definition: vtkUnstructuredGridCellIterator.h:59
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92
vtkCellIterator::GetCellId
virtual vtkIdType GetCellId()=0
Get the id of the current cell.
vtkCellIterator
Efficient cell iterator for vtkDataSet topologies.
Definition: vtkCellIterator.h:77
vtkCellIterator::FetchPoints
virtual void FetchPoints()=0
Lookup the cell points in the data set and store them in this->Points.