VTK  9.3.20240329
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
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple image iterator
a simple image iterator with progress
vtkImageIterator< DType > Superclass
vtkImageProgressIterator(vtkImageData *imgd, int *ext, vtkAlgorithm *po, int id)
Create a progress iterator for the provided image data and extent to iterate over.
void NextSpan()
Move the iterator to the next span, may call UpdateProgress on the filter (vtkAlgorithm)
vtkTypeBool IsAtEnd()
Overridden from vtkImageIterator to check AbortExecute on the filter (vtkAlgorithm).
int vtkTypeBool
Definition: vtkABI.h:64
vtkExternTemplateMacro(extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator)