VTK  9.3.1
vtkPointSetCellIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkPointSetCellIterator_h
13 #define vtkPointSetCellIterator_h
14 
15 #include "vtkCellIterator.h"
16 #include "vtkCommonDataModelModule.h" // For export macro
17 #include "vtkSmartPointer.h" // For vtkSmartPointer
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkPoints;
21 class vtkPointSet;
22 
23 class VTKCOMMONDATAMODEL_EXPORT vtkPointSetCellIterator : public vtkCellIterator
24 {
25 public:
26  static vtkPointSetCellIterator* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30  bool IsDoneWithTraversal() override;
31  vtkIdType GetCellId() override;
32 
33 protected:
35  ~vtkPointSetCellIterator() override;
36 
37  void ResetToFirstCell() override;
38  void IncrementToNextCell() override;
39  void FetchCellType() override;
40  void FetchPointIds() override;
41  void FetchPoints() override;
42 
43  friend class vtkPointSet;
44  void SetPointSet(vtkPointSet* ds);
45 
49 
50 private:
52  void operator=(const vtkPointSetCellIterator&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkPointSetCellIterator_h
concrete class for storing a set of points
Definition: vtkPointSet.h:58
int vtkIdType
Definition: vtkType.h:315
virtual void FetchCellType()=0
Lookup the cell type in the data set and store it in this->CellType.
Implementation of vtkCellIterator using vtkPointSet API.
virtual void ResetToFirstCell()=0
Update internal state to point to the first cell.
virtual void IncrementToNextCell()=0
Update internal state to point to the next cell.
virtual vtkIdType GetCellId()=0
Get the id of the current cell.
virtual void FetchPointIds()=0
Lookup the cell point ids in the data set and store them in this->PointIds.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkPointSet > PointSet
virtual void FetchPoints()=0
Lookup the cell points in the data set and store them in this->Points.
Efficient cell iterator for vtkDataSet topologies.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool IsDoneWithTraversal()=0
Returns false while the iterator is valid.
vtkSmartPointer< vtkPoints > PointSetPoints
represent and manipulate 3D points
Definition: vtkPoints.h:28