00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBridgePointIterator.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 =========================================================================*/ 00027 #ifndef __vtkBridgePointIterator_h 00028 #define __vtkBridgePointIterator_h 00029 00030 #include "vtkBridgeExport.h" 00031 #include "vtkGenericPointIterator.h" 00032 00033 class vtkBridgeDataSet; 00034 class vtkBridgeCell; 00035 class vtkBridgePointIteratorOnDataSet; 00036 class vtkBridgePointIteratorOne; 00037 class vtkBridgePointIteratorOnCell; 00038 00039 00040 class VTK_BRIDGE_EXPORT vtkBridgePointIterator : public vtkGenericPointIterator 00041 { 00042 public: 00043 static vtkBridgePointIterator *New(); 00044 vtkTypeMacro(vtkBridgePointIterator,vtkGenericPointIterator); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 void Begin(); 00049 00051 int IsAtEnd(); 00052 00055 void Next(); 00056 00059 double *GetPosition(); 00060 00063 void GetPosition(double x[3]); 00064 00067 vtkIdType GetId(); 00068 00071 void InitWithDataSet(vtkBridgeDataSet *ds); 00072 00074 00078 void InitWithOnePoint(vtkBridgeDataSet *ds, 00079 vtkIdType id); 00081 00084 void InitWithCell(vtkBridgeCell *cell); 00085 00086 protected: 00088 vtkBridgePointIterator(); 00089 00091 virtual ~vtkBridgePointIterator(); 00092 00093 vtkGenericPointIterator *CurrentIterator; 00094 vtkBridgePointIteratorOnDataSet *IteratorOnDataSet; 00095 vtkBridgePointIteratorOne *IteratorOne; 00096 vtkBridgePointIteratorOnCell *IteratorOnCell; 00097 00098 private: 00099 vtkBridgePointIterator(const vtkBridgePointIterator&); // Not implemented 00100 void operator=(const vtkBridgePointIterator&); // Not implemented 00101 }; 00102 00103 #endif