VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkBridgeCellIteratorOnCellList.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeCellIteratorOnCellList.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 =========================================================================*/
26 #ifndef __vtkBridgeCellIteratorOnCellList_h
27 #define __vtkBridgeCellIteratorOnCellList_h
28 
30 
31 class vtkBridgeCell;
32 class vtkIdList;
33 class vtkBridgeDataSet;
34 
35 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgeCellIteratorOnCellList : public vtkBridgeCellIteratorStrategy
36 {
37 public:
38  static vtkBridgeCellIteratorOnCellList *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44  void Begin();
45 
47  int IsAtEnd();
48 
51  void GetCell(vtkGenericAdaptorCell *c);
52 
55  vtkGenericAdaptorCell *GetCell();
56 
59  void Next();
60 
62 
65  void InitWithCells(vtkIdList *cells,
66  vtkBridgeDataSet *ds);
68 
69 protected:
72 
73  vtkIdList *Cells; // cells traversed by the iterator.
75  vtkIdType Id; // the id at current position.
76  vtkBridgeCell *Cell; // cell at current position.
77 
78 private:
80  void operator=(const vtkBridgeCellIteratorOnCellList&); // Not implemented
81 };
82 
83 #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 a list of cells defined on a dataset. See InitWithCells().