VTK  9.1.0
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=========================================================================*/
33#ifndef vtkGenericPointIterator_h
34#define vtkGenericPointIterator_h
35
36#include "vtkCommonDataModelModule.h" // For export macro
37#include "vtkObject.h"
38
39class VTKCOMMONDATAMODEL_EXPORT vtkGenericPointIterator : public vtkObject
40{
41public:
43
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49
53 virtual void Begin() = 0;
54
58 virtual vtkTypeBool IsAtEnd() = 0;
59
64 virtual void Next() = 0;
65
71 virtual double* GetPosition() = 0;
72
78 virtual void GetPosition(double x[3]) = 0;
79
84 virtual vtkIdType GetId() = 0;
85
86protected:
88
94
95private:
97 void operator=(const vtkGenericPointIterator&) = delete;
98};
99
100#endif
iterator used to traverse points
virtual vtkTypeBool IsAtEnd()=0
Is the iterator at the end of traversal?
virtual double * GetPosition()=0
Get the coordinates of the point at the current iterator position.
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 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:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332