VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Testing/GenericBridge/vtkBridgePointIteratorOnCell.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkBridgePointIteratorOnCell.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 vtkBridgePointIteratorOnCell_h
00027 #define vtkBridgePointIteratorOnCell_h
00028 
00029 #include "vtkBridgeExport.h" //for module export macro
00030 #include "vtkGenericPointIterator.h"
00031 
00032 class vtkBridgeDataSet;
00033 class vtkBridgeCell;
00034 class vtkIdList;
00035 
00036 class VTKTESTINGGENERICBRIDGE_EXPORT vtkBridgePointIteratorOnCell : public vtkGenericPointIterator
00037 {
00038 public:
00039   static vtkBridgePointIteratorOnCell *New();
00040   vtkTypeMacro(vtkBridgePointIteratorOnCell,vtkGenericPointIterator);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044   void Begin();
00045 
00047   int IsAtEnd();
00048 
00051   void Next();
00052 
00055   double *GetPosition();
00056 
00059   void GetPosition(double x[3]);
00060 
00063   vtkIdType GetId();
00064 
00067   void InitWithCell(vtkBridgeCell *cell);
00068 
00069 protected:
00071   vtkBridgePointIteratorOnCell();
00072 
00074   virtual ~vtkBridgePointIteratorOnCell();
00075 
00076   vtkBridgeDataSet *DataSet; // the structure on which the objet iterates.
00077   vtkIdType Cursor; // current position
00078 
00079   vtkIdList *PtIds; // list of points of the cell
00080 
00081 private:
00082   vtkBridgePointIteratorOnCell(const vtkBridgePointIteratorOnCell&); // Not implemented
00083   void operator=(const vtkBridgePointIteratorOnCell&); // Not implemented
00084 };
00085 
00086 #endif