VTK
vtkBridgePointIteratorOnDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgePointIteratorOnDataSet.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 =========================================================================*/
27 #ifndef vtkBridgePointIteratorOnDataSet_h
28 #define vtkBridgePointIteratorOnDataSet_h
29 
30 #include "vtkBridgeExport.h" //for module export macro
32 
33 class vtkBridgeDataSet;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43  void Begin();
44 
46  int IsAtEnd();
47 
50  void Next();
51 
54  double *GetPosition();
55 
58  void GetPosition(double x[3]);
59 
62  vtkIdType GetId();
63 
66  void InitWithDataSet(vtkBridgeDataSet *ds);
67 
68 protected:
71 
74 
75  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
76  vtkIdType Id; // the id at current position.
77  int Size; // size of the structure.
78 
79 private:
81  void operator=(const vtkBridgePointIteratorOnDataSet&); // Not implemented
82 };
83 
84 #endif
virtual vtkIdType GetId()=0
#define VTKTESTINGGENERICBRIDGE_EXPORT
int vtkIdType
Definition: vtkType.h:275
iterator used to traverse points
Implementation of vtkGenericDataSet.
virtual void Begin()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Next()=0
Implementation of vtkGenericPointIterator.
virtual double * GetPosition()=0
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int IsAtEnd()=0