VTK
dox/Common/ExecutionModel/vtkImageProgressIterator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageProgressIterator.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 =========================================================================*/
00028 #ifndef __vtkImageProgressIterator_h
00029 #define __vtkImageProgressIterator_h
00030 
00031 #include "vtkCommonExecutionModelModule.h" // For export macro
00032 #include "vtkImageIterator.h"
00033 class vtkAlgorithm;
00034 
00035 template<class DType>
00036 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
00037 {
00038 public:
00039   typedef vtkImageIterator<DType> Superclass;
00040 
00042 
00045   vtkImageProgressIterator(vtkImageData *imgd, int *ext,
00046                            vtkAlgorithm *po, int id);
00048 
00051   void NextSpan();
00052 
00055   int IsAtEnd();
00056 
00057 protected:
00058   vtkAlgorithm     *Algorithm;
00059   unsigned long     Count;
00060   unsigned long     Count2;
00061   unsigned long     Target;
00062   int               ID;
00063 };
00064 
00065 #ifdef VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION
00066 #include "vtkImageProgressIterator.txx"
00067 #endif
00068 
00069 #endif
00070 // VTK-HeaderTest-Exclude: vtkImageProgressIterator.h