VTK
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 =========================================================================*/
29 #ifndef vtkImageProgressIterator_h
30 #define vtkImageProgressIterator_h
31 
32 #include "vtkCommonExecutionModelModule.h" // For export macro
33 #include "vtkImageIterator.h"
34 class vtkAlgorithm;
35 
36 template<class DType>
37 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator : public vtkImageIterator<DType>
38 {
39 public:
41 
48  vtkAlgorithm *po, int id);
49 
54  void NextSpan();
55 
60  int IsAtEnd();
61 
62 protected:
64  unsigned long Count;
65  unsigned long Count2;
66  unsigned long Target;
67  int ID;
68 };
69 
70 #ifndef vtkImageProgressIterator_cxx
72  extern template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator
73 )
74 #endif
75 
76 #endif
77 // VTK-HeaderTest-Exclude: vtkImageProgressIterator.h
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkImageProgressIterator::Target
unsigned long Target
Definition: vtkImageProgressIterator.h:66
vtkImageProgressIterator::Superclass
vtkImageIterator< DType > Superclass
Definition: vtkImageProgressIterator.h:40
vtkImageProgressIterator
a simple image iterator with progress
Definition: vtkImageProgressIterator.h:38
vtkImageProgressIterator::Count
unsigned long Count
Definition: vtkImageProgressIterator.h:64
vtkExternTemplateMacro
#define vtkExternTemplateMacro(decl)
A macro to declare extern templates for all numerical types.
Definition: vtkType.h:345
vtkImageProgressIterator::IsAtEnd
int IsAtEnd()
Overridden from vtkImageIterator to check AbortExecute on the filter (vtkAlgorithm).
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkImageProgressIterator::NextSpan
void NextSpan()
Move the iterator to the next span, may call UpdateProgress on the filter (vtkAlgorithm)
vtkImageProgressIterator::vtkImageProgressIterator
vtkImageProgressIterator(vtkImageData *imgd, int *ext, vtkAlgorithm *po, int id)
Create a progress iterator for the provided image data and extent to iterate over.
vtkImageIterator.h
vtkImageIterator
a simple image iterator
Definition: vtkImageIterator.h:38
vtkImageProgressIterator::Algorithm
vtkAlgorithm * Algorithm
Definition: vtkImageProgressIterator.h:63
vtkImageProgressIterator::Count2
unsigned long Count2
Definition: vtkImageProgressIterator.h:65
vtkImageProgressIterator::ID
int ID
Definition: vtkImageProgressIterator.h:67