VTK
dox/Testing/GenericBridge/vtkBridgePointIteratorOnDataSet.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkBridgePointIteratorOnDataSet.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 __vtkBridgePointIteratorOnDataSet_h
00028 #define __vtkBridgePointIteratorOnDataSet_h
00029 
00030 #include "vtkBridgeExport.h" //for module export macro
00031 #include "vtkGenericPointIterator.h"
00032 
00033 class vtkBridgeDataSet;
00034 
00035 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgePointIteratorOnDataSet : public vtkGenericPointIterator
00036 {
00037 public:
00038   static vtkBridgePointIteratorOnDataSet *New();
00039   vtkTypeMacro(vtkBridgePointIteratorOnDataSet,vtkGenericPointIterator);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043   void Begin();
00044 
00046   int IsAtEnd();
00047 
00050   void Next();
00051 
00054   double *GetPosition();
00055 
00058   void GetPosition(double x[3]);
00059 
00062   vtkIdType GetId();
00063 
00066   void InitWithDataSet(vtkBridgeDataSet *ds);
00067 
00068 protected:
00070   vtkBridgePointIteratorOnDataSet();
00071 
00073   virtual ~vtkBridgePointIteratorOnDataSet();
00074 
00075   vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
00076   vtkIdType Id; // the id at current position.
00077   int Size; // size of the structure.
00078 
00079 private:
00080   vtkBridgePointIteratorOnDataSet(const vtkBridgePointIteratorOnDataSet&); // Not implemented
00081   void operator=(const vtkBridgePointIteratorOnDataSet&); // Not implemented
00082 };
00083 
00084 #endif