VTK  9.2.6
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=========================================================================*/
28
29#ifndef vtkImageProgressIterator_h
30#define vtkImageProgressIterator_h
31
32#include "vtkCommonExecutionModelModule.h" // For export macro
33#include "vtkImageIterator.h"
34class vtkAlgorithm;
35
36template <class DType>
37class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
38{
39public:
41
47 vtkImageProgressIterator(vtkImageData* imgd, int* ext, vtkAlgorithm* po, int id);
48
53 void NextSpan();
54
60
61protected:
63 unsigned long Count;
64 unsigned long Count2;
65 unsigned long Target;
66 int ID;
67};
68
69#ifndef vtkImageProgressIterator_cxx
71 extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator);
72#endif
73
74#endif
75// VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
Superclass for all sources, filters, and sinks in VTK.
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:69
#define vtkExternTemplateMacro(decl)
A macro to declare extern templates for all numerical types.
Definition vtkType.h:395