VTK
vtkBridgeCellIteratorOnDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeCellIteratorOnDataSet.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 vtkBridgeCellIteratorOnDataSet_h
25 #define vtkBridgeCellIteratorOnDataSet_h
26 
28 
29 class vtkBridgeCell;
30 class vtkBridgeDataSet;
31 class vtkBridgeCell;
32 class vtkIdList;
33 
35 {
36 public:
38  vtkTypeMacro(vtkBridgeCellIteratorOnDataSet,
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43  void Begin();
44 
46  int IsAtEnd();
47 
51 
55 
58  void Next();
59 
61 
64  void InitWithDataSet(vtkBridgeDataSet *ds,
65  int dim);
67 
68 protected:
71 
72  int Dim; // Dimension of cells over which to iterate (-1 to 3)
73 
74  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
75  vtkIdType Id; // the id at current position.
76  vtkIdType Size; // size of the structure.
77  vtkBridgeCell *Cell; // cell at current position.
78 
79 private:
81  void operator=(const vtkBridgeCellIteratorOnDataSet&); // Not implemented
82 };
83 
84 #endif
virtual void Begin()=0
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
#define VTKTESTINGGENERICBRIDGE_EXPORT
int vtkIdType
Definition: vtkType.h:247
virtual vtkGenericAdaptorCell * GetCell()=0
Implementation of vtkGenericDataSet.
defines cell interface
Interface used by vtkBridgeCellIterator vtkBridgeCellIterator has different behaviors depending on th...
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
virtual void Next()=0
virtual int IsAtEnd()=0
Iterate over cells of a dataset.
static vtkObject * New()