VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
vtkImageMask.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageMask.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
=========================================================================*/
32
#ifndef __vtkImageMask_h
33
#define __vtkImageMask_h
34
35
36
#include "
vtkThreadedImageAlgorithm.h
"
37
38
class
VTK_IMAGING_EXPORT
vtkImageMask
:
public
vtkThreadedImageAlgorithm
39
{
40
public
:
41
static
vtkImageMask
*
New
();
42
vtkTypeMacro(
vtkImageMask
,
vtkThreadedImageAlgorithm
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
47
void
SetMaskedOutputValue(
int
num,
double
*v);
48
void
SetMaskedOutputValue
(
double
v) {this->
SetMaskedOutputValue
(1, &v);}
49
void
SetMaskedOutputValue(
double
v1,
double
v2)
50
{
double
v[2]; v[0]=v1; v[1]=v2; this->
SetMaskedOutputValue
(2, v);}
51
void
SetMaskedOutputValue(
double
v1,
double
v2,
double
v3)
52
{
double
v[3]; v[0]=v1; v[1]=v2; v[2]=v3; this->
SetMaskedOutputValue
(3, v);}
53
double
*
GetMaskedOutputValue
() {
return
this->MaskedOutputValue;}
54
int
GetMaskedOutputValueLength
() {
return
this->MaskedOutputValueLength;}
56
58
61
vtkSetClampMacro ( MaskAlpha,
double
, 0.0, 1.0 );
62
vtkGetMacro ( MaskAlpha,
double
);
64
66
void
SetImageInput(
vtkImageData
*in);
67
69
void
SetMaskInput(
vtkImageData
*in);
70
72
76
vtkSetMacro(NotMask,
int
);
77
vtkGetMacro(NotMask,
int
);
78
vtkBooleanMacro(NotMask,
int
);
80
82
83
virtual
void
SetInput1
(
vtkDataObject
*in) { this->
SetInput
(0,in); }
84
virtual
void
SetInput2
(
vtkDataObject
*in) { this->
SetInput
(1,in); }
86
87
protected
:
88
vtkImageMask
();
89
~
vtkImageMask
();
90
91
double
*
MaskedOutputValue
;
92
int
MaskedOutputValueLength
;
93
int
NotMask
;
94
double
MaskAlpha
;
95
96
virtual
int
RequestInformation
(
vtkInformation
*,
97
vtkInformationVector
**,
98
vtkInformationVector
*);
99
100
101
virtual
void
ThreadedRequestData
(
vtkInformation
*request,
102
vtkInformationVector
**inputVector,
103
vtkInformationVector
*outputVector,
104
vtkImageData
***inData,
105
vtkImageData
**outData,
106
int
extent
[6],
int
threadId);
107
108
private
:
109
vtkImageMask
(
const
vtkImageMask
&);
// Not implemented.
110
void
operator=(
const
vtkImageMask
&);
// Not implemented.
111
};
112
113
#endif
114
115
116
Generated on Sun Sep 9 2012 13:03:40 for VTK by
1.8.1.2