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 "vtkCommonExecutionModelModule.h" // For export macro
32 #include "vtkImageIterator.h"
33 class vtkAlgorithm;
34 
35 template<class DType>
37 {
38 public:
40 
42 
45  vtkImageProgressIterator(vtkImageData *imgd, int *ext,
46  vtkAlgorithm *po, int id);
48 
51  void NextSpan();
52 
55  int IsAtEnd();
56 
57 protected:
59  unsigned long Count;
60  unsigned long Count2;
61  unsigned long Target;
62  int ID;
63 };
64 
65 #ifdef VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION
66 #include "vtkImageProgressIterator.txx"
67 #endif
68 
69 #endif
70 // VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
#define VTKCOMMONEXECUTIONMODEL_EXPORT
vtkImageIterator< DType > Superclass
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
a simple image iterator with progress
a simple image iterator