VTK
vtkPointSetCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointSetCellIterator.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 =========================================================================*/
24 #ifndef vtkPointSetCellIterator_h
25 #define vtkPointSetCellIterator_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkCellIterator.h"
29 #include "vtkSmartPointer.h" // For vtkSmartPointer
30 
31 class vtkPoints;
32 class vtkPointSet;
33 
34 class VTKCOMMONDATAMODEL_EXPORT vtkPointSetCellIterator: public vtkCellIterator
35 {
36 public:
37  static vtkPointSetCellIterator *New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  bool IsDoneWithTraversal() override;
42  vtkIdType GetCellId() override;
43 
44 protected:
46  ~vtkPointSetCellIterator() override;
47 
48  void ResetToFirstCell() override;
49  void IncrementToNextCell() override;
50  void FetchCellType() override;
51  void FetchPointIds() override;
52  void FetchPoints() override;
53 
54  friend class vtkPointSet;
55  void SetPointSet(vtkPointSet *ds);
56 
60 
61 private:
63  void operator=(const vtkPointSetCellIterator &) = delete;
64 };
65 
66 #endif //vtkPointSetCellIterator_h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPointSetCellIterator::PointSetPoints
vtkSmartPointer< vtkPoints > PointSetPoints
Definition: vtkPointSetCellIterator.h:58
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkCellIterator::FetchPointIds
virtual void FetchPointIds()=0
Lookup the cell point ids in the data set and store them in this->PointIds.
vtkSmartPointer< vtkPointSet >
vtkCellIterator::FetchCellType
virtual void FetchCellType()=0
Lookup the cell type in the data set and store it in this->CellType.
vtkCellIterator::ResetToFirstCell
virtual void ResetToFirstCell()=0
Update internal state to point to the first cell.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkCellIterator.h
vtkPointSetCellIterator
Implementation of vtkCellIterator using vtkPointSet API.
Definition: vtkPointSetCellIterator.h:34
vtkCellIterator::IsDoneWithTraversal
virtual bool IsDoneWithTraversal()=0
Returns false while the iterator is valid.
vtkPointSetCellIterator::CellId
vtkIdType CellId
Definition: vtkPointSetCellIterator.h:59
vtkPointSetCellIterator::PointSet
vtkSmartPointer< vtkPointSet > PointSet
Definition: vtkPointSetCellIterator.h:57
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
vtkCellIterator::IncrementToNextCell
virtual void IncrementToNextCell()=0
Update internal state to point to the next cell.
vtkCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellIterator::GetCellId
virtual vtkIdType GetCellId()=0
Get the id of the current cell.
vtkCellIterator
Efficient cell iterator for vtkDataSet topologies.
Definition: vtkCellIterator.h:80
vtkCellIterator::FetchPoints
virtual void FetchPoints()=0
Lookup the cell points in the data set and store them in this->Points.