VTK
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 =========================================================================*/
36 #ifndef vtkGenericPointIterator_h
37 #define vtkGenericPointIterator_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkObject.h"
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkGenericPointIterator : public vtkObject
43 {
44 public:
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  virtual void Begin() = 0;
57 
61  virtual vtkTypeBool IsAtEnd() = 0;
62 
67  virtual void Next() = 0;
68 
74  virtual double *GetPosition() = 0;
75 
81  virtual void GetPosition(double x[3]) = 0;
82 
87  virtual vtkIdType GetId() = 0;
88 
89 protected:
91 
97 
98 private:
100  void operator=(const vtkGenericPointIterator&) = delete;
101 };
102 
103 #endif
vtkGenericPointIterator
iterator used to traverse points
Definition: vtkGenericPointIterator.h:43
vtkGenericPointIterator::~vtkGenericPointIterator
~vtkGenericPointIterator() override
vtkGenericPointIterator::GetId
virtual vtkIdType GetId()=0
Return the unique identifier for the point, could be non-contiguous.
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkGenericPointIterator::IsAtEnd
virtual vtkTypeBool IsAtEnd()=0
Is the iterator at the end of traversal?
vtkGenericPointIterator::Next
virtual void Next()=0
Move the iterator to the next position in the list.
vtkGenericPointIterator::Begin
virtual void Begin()=0
Move iterator to first position if any (loop initialization).
vtkGenericPointIterator::GetPosition
virtual double * GetPosition()=0
Get the coordinates of the point at the current iterator position.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGenericPointIterator::GetPosition
virtual void GetPosition(double x[3])=0
Get the coordinates of the point at the current iterator position.
vtkObject.h
vtkGenericPointIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericPointIterator::vtkGenericPointIterator
vtkGenericPointIterator()
Destructor.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69