VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
31 #include "vtkGenericPointIterator.h"
32 
33 class vtkBridgeDataSet;
34 
35 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgePointIteratorOnDataSet : public vtkGenericPointIterator
36 {
37 public:
38  static vtkBridgePointIteratorOnDataSet *New();
39  vtkTypeMacro(vtkBridgePointIteratorOnDataSet,vtkGenericPointIterator);
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
Implementation of vtkGenericDataSet.
Implementation of vtkGenericPointIterator.