00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageProgressIterator.h,v $ 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 =========================================================================*/ 00028 #ifndef __vtkImageProgressIterator_h 00029 #define __vtkImageProgressIterator_h 00030 00031 #include "vtkImageIterator.h" 00032 class vtkProcessObject; 00033 00034 template<class DType> 00035 class vtkImageProgressIterator : public vtkImageIterator<DType> 00036 { 00037 public: 00038 00040 00043 vtkImageProgressIterator(vtkImageData *imgd, int *ext, 00044 vtkProcessObject *po, int id); 00046 00049 void NextSpan(); 00050 00051 protected: 00052 vtkProcessObject *ProcessObject; 00053 unsigned long Count; 00054 unsigned long Count2; 00055 unsigned long Target; 00056 int ID; 00057 }; 00058 00059 #ifdef VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION 00060 #include "vtkImageProgressIterator.txx" 00061 #endif 00062 00063 #endif