VTK
vtkMappedUnstructuredGridCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMappedUnstructuredGridCellIterator.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 =========================================================================*/
15 
26 #ifndef vtkMappedUnstructuredGridCellIterator_h
27 #define vtkMappedUnstructuredGridCellIterator_h
28 
29 #include "vtkCellIterator.h"
30 #include "vtkSmartPointer.h" // For vtkSmartPointer
31 #include "vtkTypeTemplate.h" // For vtkTypeTemplate
32 
33 template <class Implementation, class CellIterator>
35 
36 template <class Implementation>
38  public vtkTypeTemplate<vtkMappedUnstructuredGridCellIterator<Implementation>,
39  vtkCellIterator>
40 {
41 public:
42  typedef Implementation ImplementationType;
45  virtual void PrintSelf(ostream &os, vtkIndent indent);
46 
49 
50  bool IsDoneWithTraversal();
52 
53 protected:
56 
57  void ResetToFirstCell();
58  void IncrementToNextCell();
59  void FetchCellType();
60  void FetchPointIds();
61  void FetchPoints();
62 
63 private:
65  void operator=(const vtkMappedUnstructuredGridCellIterator &); // Not implemented.
66 
68  vtkSmartPointer<vtkPoints> GridPoints;
69  vtkIdType CellId;
70  vtkIdType NumberOfCells;
71 };
72 
73 #include "vtkMappedUnstructuredGridCellIterator.txx"
74 
75 #endif //vtkMappedUnstructuredGridCellIterator_h
76 
77 // VTK-HeaderTest-Exclude: vtkMappedUnstructuredGridCellIterator.h
virtual void PrintSelf(ostream &os, vtkIndent indent)
Provides the equivalent of vtkTypeMacro for use with template classes.
Default cell iterator for vtkMappedUnstructuredGrid.
int vtkIdType
Definition: vtkType.h:275
vtkMappedUnstructuredGridCellIterator< ImplementationType > ThisType
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetMappedUnstructuredGrid(vtkMappedUnstructuredGrid< ImplementationType, ThisType > *grid)
static vtkMappedUnstructuredGridCellIterator< ImplementationType > * New()
Allows datasets with arbitrary storage layouts to be used with VTK.