VTK  9.2.5
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=========================================================================*/
24#ifndef vtkDataSetCellIterator_h
25#define vtkDataSetCellIterator_h
26
27#include "vtkCellIterator.h"
28#include "vtkCommonDataModelModule.h" // For export macro
29#include "vtkSmartPointer.h" // For vtkSmartPointer
30
31class vtkDataSet;
32
33class VTKCOMMONDATAMODEL_EXPORT vtkDataSetCellIterator : public vtkCellIterator
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
40 bool IsDoneWithTraversal() override;
41 vtkIdType GetCellId() override;
42
43protected:
46
47 void ResetToFirstCell() override;
48 void IncrementToNextCell() override;
49 void FetchCellType() override;
50 void FetchPointIds() override;
51 void FetchPoints() override;
52
53 friend class vtkDataSet;
55
58
59private:
61 void operator=(const vtkDataSetCellIterator&) = delete;
62};
63
64#endif // vtkDataSetCellIterator_h
Efficient cell iterator for vtkDataSet topologies.
Implementation of vtkCellIterator using vtkDataSet API.
void FetchPoints() override
Lookup the cell points in the data set and store them in this->Points.
void FetchCellType() override
Lookup the cell type in the data set and store it in this->CellType.
static vtkDataSetCellIterator * New()
void IncrementToNextCell() override
Update internal state to point to the next cell.
vtkIdType GetCellId() override
Get the id of the current cell.
vtkSmartPointer< vtkDataSet > DataSet
void FetchPointIds() override
Lookup the cell point ids in the data set and store them in this->PointIds.
~vtkDataSetCellIterator() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool IsDoneWithTraversal() override
Returns false while the iterator is valid.
void SetDataSet(vtkDataSet *ds)
void ResetToFirstCell() override
Update internal state to point to the first cell.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:332