VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
Stencil
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 "vtkImagingStencilModule.h"
// For export macro
33
#include "
vtkImageStencilAlgorithm.h
"
34
35
class
vtkImageData
;
36
37
class
VTKIMAGINGSTENCIL_EXPORT
vtkImageToImageStencil
:
public
vtkImageStencilAlgorithm
38
{
39
public
:
40
static
vtkImageToImageStencil
*
New
();
41
vtkTypeMacro(
vtkImageToImageStencil
,
vtkImageStencilAlgorithm
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
45
46
void
SetInputData(
vtkImageData
*input);
47
vtkImageData
*GetInput();
49
51
void
ThresholdByUpper(
double
thresh);
52
54
void
ThresholdByLower(
double
thresh);
55
57
void
ThresholdBetween(
double
lower,
double
upper);
58
60
61
vtkSetMacro(UpperThreshold,
double
);
62
vtkGetMacro(UpperThreshold,
double
);
63
vtkSetMacro(LowerThreshold,
double
);
64
vtkGetMacro(LowerThreshold,
double
);
66
67
protected
:
68
vtkImageToImageStencil
();
69
~
vtkImageToImageStencil
();
70
71
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
72
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
73
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
74
virtual
int
FillInputPortInformation
(
int
,
vtkInformation
*);
75
76
double
UpperThreshold
;
77
double
LowerThreshold
;
78
double
Threshold
;
79
private
:
80
vtkImageToImageStencil
(
const
vtkImageToImageStencil
&);
// Not implemented.
81
void
operator=(
const
vtkImageToImageStencil
&);
// Not implemented.
82
};
83
84
#endif
Generated on Thu May 24 2012 22:22:25 for VTK by
1.8.1