VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
vtkImageIterateFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageIterateFilter.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
=========================================================================*/
26
#ifndef __vtkImageIterateFilter_h
27
#define __vtkImageIterateFilter_h
28
29
#include "
vtkThreadedImageAlgorithm.h
"
30
31
class
VTK_IMAGING_EXPORT
vtkImageIterateFilter
:
public
vtkThreadedImageAlgorithm
32
{
33
public
:
34
vtkTypeMacro(
vtkImageIterateFilter
,
vtkThreadedImageAlgorithm
);
35
void
PrintSelf
(ostream& os,
vtkIndent
indent);
36
38
40
vtkGetMacro(Iteration,
int
);
41
vtkGetMacro(NumberOfIterations,
int
);
43
44
protected
:
45
vtkImageIterateFilter
();
46
~
vtkImageIterateFilter
();
47
48
// Implement standard requests by calling iterative versions the
49
// specified number of times.
50
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
51
vtkInformationVector
**,
52
vtkInformationVector
*);
53
virtual
int
RequestInformation
(
vtkInformation
*,
54
vtkInformationVector
**,
55
vtkInformationVector
*);
56
virtual
int
RequestData
(
vtkInformation
* request,
57
vtkInformationVector
** inputVector,
58
vtkInformationVector
* outputVector);
59
60
// Iterative versions of standard requests. These are given the
61
// pipeline information object for the in/out pair at each
62
// iteration.
63
virtual
int
IterativeRequestInformation(
vtkInformation
* in,
64
vtkInformation
* out);
65
virtual
int
IterativeRequestUpdateExtent(
vtkInformation
* in,
66
vtkInformation
* out);
67
virtual
int
IterativeRequestData(
vtkInformation
*,
68
vtkInformationVector
**,
69
vtkInformationVector
*);
70
71
virtual
void
SetNumberOfIterations(
int
num);
72
73
// for filters that execute multiple times.
74
int
NumberOfIterations
;
75
int
Iteration
;
76
// A list of intermediate caches that is created when
77
// is called SetNumberOfIterations()
78
vtkImageData
**
IterationData
;
79
80
// returns correct vtkImageDatas based on current iteration.
81
vtkImageData
*GetIterationInput();
82
vtkImageData
*GetIterationOutput();
83
84
vtkInformationVector
*
InputVector
;
85
vtkInformationVector
*
OutputVector
;
86
private
:
87
vtkImageIterateFilter
(
const
vtkImageIterateFilter
&);
// Not implemented.
88
void
operator=(
const
vtkImageIterateFilter
&);
// Not implemented.
89
};
90
91
#endif
92
93
94
95
96
97
98
Generated on Wed Nov 21 2012 21:33:57 for VTK by
1.8.2