VTK
vtkDataSetCellIterator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDataSetCellIterator.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 vtkDataSetCellIterator_h
25#define vtkDataSetCellIterator_h
26
27#include "vtkCommonDataModelModule.h" // For export macro
28#include "vtkCellIterator.h"
29#include "vtkSmartPointer.h" // For vtkSmartPointer
30
31class vtkDataSet;
32
33class VTKCOMMONDATAMODEL_EXPORT vtkDataSetCellIterator: public vtkCellIterator
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39
40 bool IsDoneWithTraversal() VTK_OVERRIDE;
41 vtkIdType GetCellId() VTK_OVERRIDE;
42
43protected:
45 ~vtkDataSetCellIterator() VTK_OVERRIDE;
46
47 void ResetToFirstCell() VTK_OVERRIDE;
48 void IncrementToNextCell() VTK_OVERRIDE;
49 void FetchCellType() VTK_OVERRIDE;
50 void FetchPointIds() VTK_OVERRIDE;
51 void FetchPoints() VTK_OVERRIDE;
52
53 friend class vtkDataSet;
54 void SetDataSet(vtkDataSet *ds);
55
57 vtkIdType CellId;
58
59private:
60 vtkDataSetCellIterator(const vtkDataSetCellIterator &) VTK_DELETE_FUNCTION;
61 void operator=(const vtkDataSetCellIterator &) VTK_DELETE_FUNCTION;
62};
63
64#endif //vtkDataSetCellIterator_h
Efficient cell iterator for vtkDataSet topologies.
Implementation of vtkCellIterator using vtkDataSet API.
static vtkDataSetCellIterator * New()
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:287