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