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
virtual void Begin()=0
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
#define VTKTESTINGGENERICBRIDGE_EXPORT
Iterate over one cell only of a dataset.
int vtkIdType
Definition: vtkType.h:247
virtual vtkGenericAdaptorCell * GetCell()=0
Implementation of vtkGenericDataSet.
defines cell interface
abstract class to specify cell behavior
Definition: vtkCell.h:58
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
static vtkObject * New()
represent and manipulate 3D points
Definition: vtkPoints.h:38