VTK  9.0.1
vtkDataSetCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetCellIterator.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 vtkDataSetCellIterator_h
22 #define vtkDataSetCellIterator_h
23 
24 #include "vtkCellIterator.h"
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkSmartPointer.h" // For vtkSmartPointer
27 
28 class vtkDataSet;
29 
30 class VTKCOMMONDATAMODEL_EXPORT vtkDataSetCellIterator : public vtkCellIterator
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  bool IsDoneWithTraversal() override;
38  vtkIdType GetCellId() override;
39 
40 protected:
43 
44  void ResetToFirstCell() override;
45  void IncrementToNextCell() override;
46  void FetchCellType() override;
47  void FetchPointIds() override;
48  void FetchPoints() override;
49 
50  friend class vtkDataSet;
52 
55 
56 private:
58  void operator=(const vtkDataSetCellIterator&) = delete;
59 };
60 
61 #endif // vtkDataSetCellIterator_h
vtkDataSetCellIterator::GetCellId
vtkIdType GetCellId() override
Get the id of the current cell.
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkDataSetCellIterator::FetchPointIds
void FetchPointIds() override
Lookup the cell point ids in the data set and store them in this->PointIds.
vtkSmartPointer< vtkDataSet >
vtkDataSetCellIterator
Implementation of vtkCellIterator using vtkDataSet API.
Definition: vtkDataSetCellIterator.h:31
vtkDataSetCellIterator::New
static vtkDataSetCellIterator * New()
vtkDataSetCellIterator::~vtkDataSetCellIterator
~vtkDataSetCellIterator() override
vtkDataSetCellIterator::FetchCellType
void FetchCellType() override
Lookup the cell type in the data set and store it in this->CellType.
vtkDataSetCellIterator::vtkDataSetCellIterator
vtkDataSetCellIterator()
vtkDataSetCellIterator::IncrementToNextCell
void IncrementToNextCell() override
Update internal state to point to the next cell.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSmartPointer.h
vtkDataSetCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellIterator.h
vtkDataSetCellIterator::FetchPoints
void FetchPoints() override
Lookup the cell points in the data set and store them in this->Points.
vtkDataSetCellIterator::SetDataSet
void SetDataSet(vtkDataSet *ds)
vtkDataSetCellIterator::ResetToFirstCell
void ResetToFirstCell() override
Update internal state to point to the first cell.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkDataSetCellIterator::DataSet
vtkSmartPointer< vtkDataSet > DataSet
Definition: vtkDataSetCellIterator.h:53
vtkDataSetCellIterator::IsDoneWithTraversal
bool IsDoneWithTraversal() override
Returns false while the iterator is valid.
vtkCellIterator
Efficient cell iterator for vtkDataSet topologies.
Definition: vtkCellIterator.h:78
vtkDataSetCellIterator::CellId
vtkIdType CellId
Definition: vtkDataSetCellIterator.h:54