VTK  9.7.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 
37  vtkImageData* imgd, VTK_FUTURE_CONST int ext[6], vtkAlgorithm* po, int id);
38 
43  void NextSpan();
44 
50 
51 protected:
53  unsigned long Count;
54  unsigned long Count2;
55  unsigned long Target;
56  int ID;
57 };
58 
59 #ifndef vtkImageProgressIterator_cxx
61  extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator);
62 #endif
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
66 // 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:53
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
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