VTK
vtkBridgePointIteratorOne.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgePointIteratorOne.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 vtkBridgePointIteratorOne_h
25 #define vtkBridgePointIteratorOne_h
26 
27 #include "vtkBridgeExport.h" //for module export macro
29 
30 class vtkBridgeDataSet;
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40  void Begin();
41 
43  int IsAtEnd();
44 
47  void Next();
48 
51  double *GetPosition();
52 
55  void GetPosition(double x[3]);
56 
59  vtkIdType GetId();
60 
62 
66  void InitWithOnePoint(vtkBridgeDataSet *ds,
67  vtkIdType id);
69 
70 protected:
73 
75  virtual ~vtkBridgePointIteratorOne();
76 
77  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
78  vtkIdType Id; // the id at current position.
79  int cIsAtEnd;
80 
81 private:
82  vtkBridgePointIteratorOne(const vtkBridgePointIteratorOne&); // Not implemented
83  void operator=(const vtkBridgePointIteratorOne&); // Not implemented
84 };
85 
86 #endif
virtual vtkIdType GetId()=0
#define VTKTESTINGGENERICBRIDGE_EXPORT
int vtkIdType
Definition: vtkType.h:247
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
virtual double * GetPosition()=0
static vtkObject * New()
Iterate over one point of a dataset.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int IsAtEnd()=0