VTK
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 =========================================================================*/
24 #ifndef vtkPointSetCellIterator_h
25 #define vtkPointSetCellIterator_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkCellIterator.h"
29 #include "vtkSmartPointer.h" // For vtkSmartPointer
30 
31 class vtkPoints;
32 class vtkPointSet;
33 
34 class VTKCOMMONDATAMODEL_EXPORT vtkPointSetCellIterator: public vtkCellIterator
35 {
36 public:
37  static vtkPointSetCellIterator *New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  bool IsDoneWithTraversal() override;
42  vtkIdType GetCellId() override;
43 
44 protected:
46  ~vtkPointSetCellIterator() override;
47 
48  void ResetToFirstCell() override;
49  void IncrementToNextCell() override;
50  void FetchCellType() override;
51  void FetchPointIds() override;
52  void FetchPoints() override;
53 
54  friend class vtkPointSet;
55  void SetPointSet(vtkPointSet *ds);
56 
57  vtkSmartPointer<vtkPointSet> PointSet;
58  vtkSmartPointer<vtkPoints> PointSetPoints;
59  vtkIdType CellId;
60 
61 private:
62  vtkPointSetCellIterator(const vtkPointSetCellIterator &) = delete;
63  void operator=(const vtkPointSetCellIterator &) = delete;
64 };
65 
66 #endif //vtkPointSetCellIterator_h
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:347
Implementation of vtkCellIterator using vtkPointSet API.
a simple class to control print indentation
Definition: vtkIndent.h:39
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...
represent and manipulate 3D points
Definition: vtkPoints.h:39