VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
vtkImageToImageStencil.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageToImageStencil.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
#ifndef __vtkImageToImageStencil_h
29
#define __vtkImageToImageStencil_h
30
31
32
#include "
vtkImageStencilAlgorithm.h
"
33
34
class
vtkImageData
;
35
36
class
VTK_IMAGING_EXPORT
vtkImageToImageStencil
:
public
vtkImageStencilAlgorithm
37
{
38
public
:
39
static
vtkImageToImageStencil
*
New
();
40
vtkTypeMacro(
vtkImageToImageStencil
,
vtkImageStencilAlgorithm
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent);
42
44
45
void
SetInput(
vtkImageData
*input);
46
vtkImageData
*GetInput();
48
50
void
ThresholdByUpper(
double
thresh);
51
53
void
ThresholdByLower(
double
thresh);
54
56
void
ThresholdBetween(
double
lower,
double
upper);
57
59
60
vtkSetMacro(UpperThreshold,
double
);
61
vtkGetMacro(UpperThreshold,
double
);
62
vtkSetMacro(LowerThreshold,
double
);
63
vtkGetMacro(LowerThreshold,
double
);
65
66
protected
:
67
vtkImageToImageStencil
();
68
~
vtkImageToImageStencil
();
69
70
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
71
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
72
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
73
virtual
int
FillInputPortInformation
(
int
,
vtkInformation
*);
74
75
double
UpperThreshold
;
76
double
LowerThreshold
;
77
double
Threshold
;
78
private
:
79
vtkImageToImageStencil
(
const
vtkImageToImageStencil
&);
// Not implemented.
80
void
operator=(
const
vtkImageToImageStencil
&);
// Not implemented.
81
};
82
83
#endif
Generated on Wed May 30 2012 13:22:14 for VTK by
1.8.1