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 =========================================================================*/
26 #ifndef vtkImageProgressIterator_h
27 #define vtkImageProgressIterator_h
28 
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 #include "vtkImageIterator.h"
31 class vtkAlgorithm;
32 
33 template<class DType>
34 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
35 {
36 public:
38 
44  vtkImageProgressIterator(vtkImageData *imgd, int *ext,
45  vtkAlgorithm *po, int id);
46 
51  void NextSpan();
52 
57  int IsAtEnd();
58 
59 protected:
61  unsigned long Count;
62  unsigned long Count2;
63  unsigned long Target;
64  int ID;
65 };
66 
67 #ifndef vtkImageProgressIterator_cxx
69  extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator
70 )
71 #endif
72 
73 #endif
74 // VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
void NextSpan()
Move the iterator to the next span.
vtkImageIterator< DType > Superclass
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
int IsAtEnd()
Test if the end of the extent has been reached.
#define vtkExternTemplateMacro(decl)
A macro to declare extern templates for all numerical types.
Definition: vtkType.h:415
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
a simple image iterator with progress
a simple image iterator