VTK
vtkBridgeCellIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeCellIterator.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 vtkBridgeCellIterator_h
27 #define vtkBridgeCellIterator_h
28 
29 #include "vtkBridgeExport.h" //for module export macro
30 #include "vtkGenericCellIterator.h"
31 
32 class vtkBridgeCell;
33 class vtkBridgeDataSet;
34 class vtkBridgeCell;
35 class vtkIdList;
36 class vtkBridgeDataSet;
37 class vtkPoints;
38 
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53  void Begin();
54 
56  int IsAtEnd();
57 
60 
64 
68 
71  void Next();
72 
74 
78  int dim);
80 
82 
86  int dim,
87  int exterior_only);
89 
91 
95  vtkIdType cellid);
97 
101 
103 
107  int dim);
109 
111 
115  vtkBridgeDataSet *ds);
117 
119 
125  vtkIdList *pts,
126  int dim,
127  vtkIdType cellid);
129 
130 protected:
133 
139 
140  vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
141  vtkIdType Id; // the id at current position.
142  int OneCell; // Is in one cell mode?
143  vtkIdType Size; // size of the structure.
144  vtkBridgeCell *Cell; // cell at current position.
145 
146 private:
147  vtkBridgeCellIterator(const vtkBridgeCellIterator&); // Not implemented
148  void operator=(const vtkBridgeCellIterator&); // Not implemented
149 };
150 
151 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkBridgeCellIterator::Next
void Next()
VTKTESTINGGENERICBRIDGE_EXPORT
#define VTKTESTINGGENERICBRIDGE_EXPORT
Definition: vtkTestingGenericBridgeModule.h:15
vtkBridgeCellIterator::Begin
void Begin()
vtkBridgeCellIterator::~vtkBridgeCellIterator
virtual ~vtkBridgeCellIterator()
vtkBridgeCellIterator::Id
vtkIdType Id
Definition: vtkBridgeCellIterator.h:141
vtkBridgeCellIterator::IteratorOnCellList
vtkBridgeCellIteratorOnCellList * IteratorOnCellList
Definition: vtkBridgeCellIterator.h:138
vtkBridgeCellIteratorOnCellList
Iterate over a list of cells defined on a dataset. See InitWithCells().
Definition: vtkBridgeCellIteratorOnCellList.h:36
vtkBridgeCellIterator::InitWithOneCell
void InitWithOneCell(vtkBridgeCell *c)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkBridgeCellIterator::InitWithPoints
void InitWithPoints(vtkPoints *coords, vtkIdList *pts, int dim, vtkIdType cellid)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBridgeCellIterator::InitWithCellBoundaries
void InitWithCellBoundaries(vtkBridgeCell *cell, int dim)
vtkGenericAdaptorCell
defines cell interface
Definition: vtkGenericAdaptorCell.h:95
vtkGenericCellIterator.h
vtkBridgeCellIterator::GetCell
void GetCell(vtkGenericAdaptorCell *c)
vtkBridgeCellIterator::Size
vtkIdType Size
Definition: vtkBridgeCellIterator.h:143
vtkGenericCellIterator
iterator used to traverse cells
Definition: vtkGenericCellIterator.h:44
vtkBridgeCellIterator::Cell
vtkBridgeCell * Cell
Definition: vtkBridgeCellIterator.h:144
vtkBridgeCellIterator::OneCell
int OneCell
Definition: vtkBridgeCellIterator.h:142
vtkBridgeCellIterator::InitWithDataSetBoundaries
void InitWithDataSetBoundaries(vtkBridgeDataSet *ds, int dim, int exterior_only)
vtkgl::coords
GLuint coords
Definition: vtkgl.h:13928
vtkBridgeCellIterator::GetCell
vtkGenericAdaptorCell * GetCell()
vtkBridgeCellIteratorOnCellBoundaries
Iterate over boundary cells of a cell.
Definition: vtkBridgeCellIteratorOnCellBoundaries.h:37
vtkBridgeCellIterator::IsAtEnd
int IsAtEnd()
vtkBridgeCellIterator::DataSet
vtkBridgeDataSet * DataSet
Definition: vtkBridgeCellIterator.h:140
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkBridgeExport.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBridgeCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBridgeCellIterator::IteratorOnDataSet
vtkBridgeCellIteratorOnDataSet * IteratorOnDataSet
Definition: vtkBridgeCellIterator.h:135
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkBridgeCellIterator::InitWithOneCell
void InitWithOneCell(vtkBridgeDataSet *ds, vtkIdType cellid)
vtkBridgeCellIterator::IteratorOneCell
vtkBridgeCellIteratorOne * IteratorOneCell
Definition: vtkBridgeCellIterator.h:136
vtkBridgeCellIterator::NewCell
vtkGenericAdaptorCell * NewCell()
vtkBridgeCell
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:38
vtkBridgeCellIterator::vtkBridgeCellIterator
vtkBridgeCellIterator()
vtkBridgeCellIterator::IteratorOnCellBoundaries
vtkBridgeCellIteratorOnCellBoundaries * IteratorOnCellBoundaries
Definition: vtkBridgeCellIterator.h:137
vtkBridgeCellIteratorOne
Iterate over one cell only of a dataset.
Definition: vtkBridgeCellIteratorOne.h:37
vtkBridgeCellIterator::InitWithDataSet
void InitWithDataSet(vtkBridgeDataSet *ds, int dim)
vtkBridgeDataSet
Implementation of vtkGenericDataSet.
Definition: vtkBridgeDataSet.h:34
vtkBridgeCellIterator::CurrentIterator
vtkBridgeCellIteratorStrategy * CurrentIterator
Definition: vtkBridgeCellIterator.h:134
vtkBridgeCellIterator
Implementation of vtkGenericCellIterator. It is just an example that show how to implement the Generi...
Definition: vtkBridgeCellIterator.h:46
vtkBridgeCellIteratorOnDataSet
Iterate over cells of a dataset.
Definition: vtkBridgeCellIteratorOnDataSet.h:35
vtkBridgeCellIterator::New
static vtkBridgeCellIterator * New()
vtkBridgeCellIteratorStrategy
Interface used by vtkBridgeCellIterator vtkBridgeCellIterator has different behaviors depending on th...
Definition: vtkBridgeCellIteratorStrategy.h:42
vtkBridgeCellIterator::InitWithCells
void InitWithCells(vtkIdList *cells, vtkBridgeDataSet *ds)