VTK  9.3.1
vtkGenericPointIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkGenericPointIterator_h
25 #define vtkGenericPointIterator_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCOMMONDATAMODEL_EXPORT vtkGenericPointIterator : public vtkObject
32 {
33 public:
35 
39  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  virtual void Begin() = 0;
46 
50  virtual vtkTypeBool IsAtEnd() = 0;
51 
56  virtual void Next() = 0;
57 
63  virtual double* GetPosition() = 0;
64 
70  virtual void GetPosition(double x[3]) = 0;
71 
76  virtual vtkIdType GetId() = 0;
77 
78 protected:
80 
84  ~vtkGenericPointIterator() override;
86 
87 private:
89  void operator=(const vtkGenericPointIterator&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkIdType
Definition: vtkType.h:315
iterator used to traverse points
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28