00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBridgeCellIteratorOnCellBoundaries.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkBridgeCellIteratorOnCellBoundaries_h 00027 #define __vtkBridgeCellIteratorOnCellBoundaries_h 00028 00029 #include "vtkBridgeCellIteratorStrategy.h" 00030 00031 class vtkBridgeCell; 00032 class vtkBridgeDataSet; 00033 class vtkBridgeCell; 00034 class vtkIdList; 00035 00036 class VTK_BRIDGE_EXPORT vtkBridgeCellIteratorOnCellBoundaries : public vtkBridgeCellIteratorStrategy 00037 { 00038 public: 00039 static vtkBridgeCellIteratorOnCellBoundaries *New(); 00040 vtkTypeMacro(vtkBridgeCellIteratorOnCellBoundaries, 00041 vtkBridgeCellIteratorStrategy); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 void Begin(); 00046 00048 int IsAtEnd(); 00049 00052 void GetCell(vtkGenericAdaptorCell *c); 00053 00056 vtkGenericAdaptorCell *GetCell(); 00057 00060 void Next(); 00061 00063 00066 void InitWithCellBoundaries(vtkBridgeCell *cell, 00067 int dim); 00069 00070 protected: 00071 vtkBridgeCellIteratorOnCellBoundaries(); 00072 virtual ~vtkBridgeCellIteratorOnCellBoundaries(); 00073 00074 int Dim; // Dimension of cells over which to iterate (-1 to 3) 00075 00076 vtkBridgeCell *DataSetCell; // the structure on which the objet iterates. 00077 vtkIdType Id; // the id at current position. 00078 vtkBridgeCell *Cell; // cell at current position. 00079 vtkIdType NumberOfFaces; 00080 vtkIdType NumberOfEdges; 00081 vtkIdType NumberOfVertices; 00082 private: 00083 vtkBridgeCellIteratorOnCellBoundaries(const vtkBridgeCellIteratorOnCellBoundaries&); // Not implemented 00084 void operator=(const vtkBridgeCellIteratorOnCellBoundaries&); // Not implemented 00085 }; 00086 00087 #endif