VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
34 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgeCellIteratorOnDataSet : public vtkBridgeCellIteratorStrategy
35 {
36 public:
37  static vtkBridgeCellIteratorOnDataSet *New();
38  vtkTypeMacro(vtkBridgeCellIteratorOnDataSet,
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43  void Begin();
44 
46  int IsAtEnd();
47 
50  void GetCell(vtkGenericAdaptorCell *c);
51 
54  vtkGenericAdaptorCell *GetCell();
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
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
Implementation of vtkGenericDataSet.
Interface used by vtkBridgeCellIterator vtkBridgeCellIterator has different behaviors depending on th...
void PrintSelf(ostream &os, vtkIndent indent)
Iterate over cells of a dataset.