VTK  9.3.1
vtkImageProgressIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkImageProgressIterator_h
18 #define vtkImageProgressIterator_h
19 
20 #include "vtkCommonExecutionModelModule.h" // For export macro
21 #include "vtkImageIterator.h"
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkAlgorithm;
24 
25 template <class DType>
26 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
27 {
28 public:
30 
36  vtkImageProgressIterator(vtkImageData* imgd, int* ext, vtkAlgorithm* po, int id);
37 
42  void NextSpan();
43 
49 
50 protected:
52  unsigned long Count;
53  unsigned long Count2;
54  unsigned long Target;
55  int ID;
56 };
57 
58 #ifndef vtkImageProgressIterator_cxx
60  extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator);
61 #endif
62 
63 VTK_ABI_NAMESPACE_END
64 #endif
65 // VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
void NextSpan()
Move the iterator to the next span.
vtkImageIterator< DType > Superclass
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple image iterator with progress
vtkTypeBool IsAtEnd()
Test if the end of the extent has been reached.
vtkExternTemplateMacro(extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator)
a simple image iterator