VTK
vtkImageProgressIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageProgressIterator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkImageProgressIterator_h
29 #define __vtkImageProgressIterator_h
30 
31 #include "vtkImageIterator.h"
32 class vtkAlgorithm;
33 
34 template<class DType>
35 class VTK_FILTERING_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
36 {
37 public:
38  typedef vtkImageIterator<DType> Superclass;
39 
41 
44  vtkImageProgressIterator(vtkImageData *imgd, int *ext,
45  vtkAlgorithm *po, int id);
47 
50  void NextSpan();
51 
54  int IsAtEnd();
55 
56 protected:
58  unsigned long Count;
59  unsigned long Count2;
60  unsigned long Target;
61  int ID;
62 };
63 
64 #ifdef VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION
65 #include "vtkImageProgressIterator.txx"
66 #endif
67 
68 #endif
vtkImageIterator< DType > Superclass
#define VTK_FILTERING_EXPORT
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
a simple image iterator with progress