VTK
vtkBridgeCellIteratorOne.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeCellIteratorOne.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 __vtkBridgeCellIteratorOne_h
25 #define __vtkBridgeCellIteratorOne_h
26 
28 
29 class vtkBridgeCell;
30 class vtkBridgeDataSet;
31 class vtkBridgeCell;
32 class vtkIdList;
33 class vtkPoints;
34 class vtkCell;
35 
37 {
38 public:
39  static vtkBridgeCellIteratorOne *New();
40  vtkTypeMacro(vtkBridgeCellIteratorOne,
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45  void Begin();
46 
48  int IsAtEnd();
49 
53 
57 
60  void Next();
61 
63 
66  void InitWithOneCell(vtkBridgeDataSet *ds,
67  vtkIdType cellid);
69 
72  void InitWithOneCell(vtkBridgeCell *c);
73 
75 
80  void InitWithPoints(vtkPoints *coords,
81  vtkIdList *pts,
82  int dim,
83  vtkIdType cellid);
85 
86 protected:
88  virtual ~vtkBridgeCellIteratorOne();
89 
90  int cIsAtEnd;
91  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
92  vtkIdType Id; // the id at current position.
93  vtkBridgeCell *Cell; // cell at current position.
95 
96 private:
97  vtkBridgeCellIteratorOne(const vtkBridgeCellIteratorOne&); // Not implemented
98  void operator=(const vtkBridgeCellIteratorOne&); // Not implemented
99 };
100 
101 #endif