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