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