VTK  9.3.0
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 
86 
87 private:
89  void operator=(const vtkGenericPointIterator&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
iterator used to traverse points
virtual vtkTypeBool IsAtEnd()=0
Is the iterator at the end of traversal?
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK construction and type macros.
virtual void Begin()=0
Move iterator to first position if any (loop initialization).
virtual void GetPosition(double x[3])=0
Get the coordinates of the point at the current iterator position.
virtual double * GetPosition()=0
Get the coordinates of the point at the current iterator position.
virtual void Next()=0
Move the iterator to the next position in the list.
vtkGenericPointIterator()
Destructor.
~vtkGenericPointIterator() override
Destructor.
virtual vtkIdType GetId()=0
Return the unique identifier for the point, could be non-contiguous.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract base class for most VTK objects
Definition: vtkObject.h:61
int vtkTypeBool
Definition: vtkABI.h:64
int vtkIdType
Definition: vtkType.h:315