VTK
vtkBridgePointIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgePointIterator.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 vtkBridgePointIterator_h
28 #define vtkBridgePointIterator_h
29 
30 #include "vtkBridgeExport.h" //for module export macro
32 
33 class vtkBridgeDataSet;
34 class vtkBridgeCell;
38 
39 
41 {
42 public:
43  static vtkBridgePointIterator *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48  void Begin();
49 
51  int IsAtEnd();
52 
55  void Next();
56 
59  double *GetPosition();
60 
63  void GetPosition(double x[3]);
64 
67  vtkIdType GetId();
68 
71  void InitWithDataSet(vtkBridgeDataSet *ds);
72 
74 
78  void InitWithOnePoint(vtkBridgeDataSet *ds,
79  vtkIdType id);
81 
84  void InitWithCell(vtkBridgeCell *cell);
85 
86 protected:
89 
91  virtual ~vtkBridgePointIterator();
92 
97 
98 private:
99  vtkBridgePointIterator(const vtkBridgePointIterator&); // Not implemented
100  void operator=(const vtkBridgePointIterator&); // Not implemented
101 };
102 
103 #endif
virtual vtkIdType GetId()=0
Implementation of vtkGenericPointIterator.
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
#define VTKTESTINGGENERICBRIDGE_EXPORT
vtkBridgePointIteratorOne * IteratorOne
int vtkIdType
Definition: vtkType.h:247
iterator used to traverse points
Implementation of vtkGenericDataSet.
virtual void Begin()=0
vtkBridgePointIteratorOnCell * IteratorOnCell
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Next()=0
Implementation of vtkGenericPointIterator.
virtual double * GetPosition()=0
vtkGenericPointIterator * CurrentIterator
Implementation of vtkGenericPointIterator.
static vtkObject * New()
Iterate over one point of a dataset.
void PrintSelf(ostream &os, vtkIndent indent)
vtkBridgePointIteratorOnDataSet * IteratorOnDataSet
virtual int IsAtEnd()=0