VTK  9.5.20251215
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
16
17#ifndef vtkImageProgressIterator_h
18#define vtkImageProgressIterator_h
19
20#include "vtkCommonExecutionModelModule.h" // For export macro
21#include "vtkImageIterator.h"
22VTK_ABI_NAMESPACE_BEGIN
23class vtkAlgorithm;
24
25template <class DType>
26class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
27{
28public:
30
36 vtkImageProgressIterator(vtkImageData* imgd, int* ext, vtkAlgorithm* po, int id);
37
42 void NextSpan();
43
49
50protected:
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
63VTK_ABI_NAMESPACE_END
64#endif
65// VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
topologically and geometrically regular array of data
vtkImageIterator()
Default empty constructor, useful only when creating an array of iterators You need to call Initializ...
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
#define vtkExternTemplateMacro(decl)
A macro to declare extern templates for all numerical types.
Definition vtkType.h:493
#define vtkAlgorithm