VTK
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 "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkCellIterator.h"
29 #include "vtkSmartPointer.h" // For vtkSmartPointer
30 
31 class vtkDataSet;
32 
33 class VTKCOMMONDATAMODEL_EXPORT vtkDataSetCellIterator: public vtkCellIterator
34 {
35 public:
36  static vtkDataSetCellIterator *New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40  bool IsDoneWithTraversal() override;
41  vtkIdType GetCellId() override;
42 
43 protected:
45  ~vtkDataSetCellIterator() override;
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;
54  void SetDataSet(vtkDataSet *ds);
55 
58 
59 private:
61  void operator=(const vtkDataSetCellIterator &) = delete;
62 };
63 
64 #endif //vtkDataSetCellIterator_h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkCellIterator::FetchPointIds
virtual void FetchPointIds()=0
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:33
vtkCellIterator::FetchCellType
virtual void FetchCellType()=0
Lookup the cell type in the data set and store it in this->CellType.
vtkCellIterator::ResetToFirstCell
virtual void ResetToFirstCell()=0
Update internal state to point to the first cell.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkCellIterator.h
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkCellIterator::IsDoneWithTraversal
virtual bool IsDoneWithTraversal()=0
Returns false while the iterator is valid.
vtkDataSetCellIterator::DataSet
vtkSmartPointer< vtkDataSet > DataSet
Definition: vtkDataSetCellIterator.h:56
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.
vtkCellIterator::GetCellId
virtual vtkIdType GetCellId()=0
Get the id of the current cell.
vtkCellIterator
Efficient cell iterator for vtkDataSet topologies.
Definition: vtkCellIterator.h:80
vtkDataSetCellIterator::CellId
vtkIdType CellId
Definition: vtkDataSetCellIterator.h:57
vtkCellIterator::FetchPoints
virtual void FetchPoints()=0
Lookup the cell points in the data set and store them in this->Points.