VTK: Common/DataModel/vtkGenericPointIterator.h Source File

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