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();
42 
43 protected:
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 
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
int vtkIdType
Definition: vtkType.h:275
virtual void FetchCellType()=0
Implementation of vtkCellIterator using vtkPointSet API.
virtual void ResetToFirstCell()=0
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
virtual void IncrementToNextCell()=0
virtual vtkIdType GetCellId()=0
virtual void FetchPointIds()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< vtkPointSet > PointSet
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void FetchPoints()=0
Efficient cell iterator for vtkDataSet topologies.
static vtkObject * New()
virtual bool IsDoneWithTraversal()=0
#define VTKCOMMONDATAMODEL_EXPORT
vtkSmartPointer< vtkPoints > PointSetPoints
represent and manipulate 3D points
Definition: vtkPoints.h:38