Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageProgressIterator.h

Go to the documentation of this file.
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 =========================================================================*/
00040 #ifndef __vtkImageProgressIterator_h
00041 #define __vtkImageProgressIterator_h
00042 
00043 #include "vtkImageIterator.h"
00044 class vtkAlgorithm;
00045 
00046 template<class DType>
00047 class vtkImageProgressIterator : public vtkImageIterator<DType> 
00048 {
00049 public:        
00050 
00052 
00055   vtkImageProgressIterator(vtkImageData *imgd, int *ext, 
00056                            vtkAlgorithm *po, int id);
00058 
00061   void NextSpan();
00062   
00063 protected:
00064   vtkAlgorithm     *Algorithm;
00065   unsigned long     Count;
00066   unsigned long     Count2;
00067   unsigned long     Target;
00068   int               ID;
00069 };
00070 
00071 #ifdef VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION
00072 #include "vtkImageProgressIterator.txx"
00073 #endif
00074 
00075 #endif