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