VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkGenericPointIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericPointIterator.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 =========================================================================*/
35 #ifndef __vtkGenericPointIterator_h
36 #define __vtkGenericPointIterator_h
37 
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkObject.h"
40 
41 class VTKCOMMONDATAMODEL_EXPORT vtkGenericPointIterator : public vtkObject
42 {
43 public:
45 
46  vtkTypeMacro(vtkGenericPointIterator,vtkObject);
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  virtual void Begin() = 0;
52 
54  virtual int IsAtEnd() = 0;
55 
58  virtual void Next() = 0;
59 
62  virtual double *GetPosition() = 0;
63 
66  virtual void GetPosition(double x[3]) = 0;
67 
70  virtual vtkIdType GetId() = 0;
71 
72 protected:
74 
76  virtual ~vtkGenericPointIterator();
78 
79 private:
80  vtkGenericPointIterator(const vtkGenericPointIterator&); // Not implemented.
81  void operator=(const vtkGenericPointIterator&); // Not implemented.
82 };
83 
84 #endif
iterator used to traverse points