Slicer
5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Toggle main menu visibility
Main Page
Related Pages
Classes
Class Index
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
e
f
i
m
o
p
r
s
w
Namespaces
Namespace List
Namespace Members
All
_
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Functions
Variables
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
c
e
i
l
n
p
q
r
s
t
v
Variables
Typedefs
a
d
g
i
l
m
n
p
q
r
s
t
v
Enumerations
Enumerator
Macros
b
c
d
e
f
g
i
m
o
p
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
Libs
MRML
Widgets
qMRMLVolumeThresholdWidget.h
Go to the documentation of this file.
1
/*==============================================================================
2
3
Program: 3D Slicer
4
5
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
6
7
See COPYRIGHT.txt
8
or http://www.slicer.org/copyright/copyright.txt for details.
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
16
==============================================================================*/
17
18
#ifndef __qMRMLVolumeThresholdWidget_h
19
#define __qMRMLVolumeThresholdWidget_h
20
22
#include "
qMRMLVolumeWidget.h
"
23
class
qMRMLVolumeThresholdWidgetPrivate;
24
25
class
QMRML_WIDGETS_EXPORT
qMRMLVolumeThresholdWidget
26
:
public
qMRMLVolumeWidget
27
{
28
Q_OBJECT
29
Q_PROPERTY(
int
autoThreshold
READ
autoThreshold
WRITE
setAutoThreshold
)
30
Q_PROPERTY(
double
lowerThreshold
READ
lowerThreshold
WRITE
setLowerThreshold
)
31
Q_PROPERTY(
double
upperThreshold
READ
upperThreshold
WRITE
setUpperThreshold
)
32
Q_PROPERTY(
double
lowerThresholdBound
READ
lowerThresholdBound
WRITE
setLowerThresholdBound
)
33
Q_PROPERTY(
double
upperThresholdBound
READ
upperThresholdBound
WRITE
setUpperThresholdBound
)
34
Q_ENUMS(
ControlMode
)
35
36
public:
38
typedef
qMRMLVolumeWidget
Superclass
;
39
explicit
qMRMLVolumeThresholdWidget
(QWidget* parent=
nullptr
);
40
~
qMRMLVolumeThresholdWidget
() override;
41
42
enum
ControlMode
43
{
44
Auto
= 0,
45
Manual
= 1,
46
Off
=2
47
};
42
enum
ControlMode
{
…
};
48
49
ControlMode
autoThreshold
()
const
;
50
void
setAutoThreshold
(
ControlMode
autoWindowLevel);
51
53
bool
isOff
()
const
;
54
57
double
lowerThreshold
()
const
;
58
61
double
upperThreshold
()
const
;
62
65
double
lowerThresholdBound
()
const
;
66
69
double
upperThresholdBound
()
const
;
70
71
signals:
74
void
thresholdValuesChanged
(
double
lowerThreshold
,
double
upperThreshold
);
77
void
autoThresholdValueChanged
(
int
value);
78
79
public
slots:
81
void
setAutoThreshold
(
int
autoThreshold
);
82
85
void
setLowerThreshold
(
double
lowerThreshold
);
86
89
void
setUpperThreshold
(
double
upperThreshold
);
90
93
void
setLowerThresholdBound
(
double
lowerThresholdBound
);
94
97
void
setUpperThresholdBound
(
double
upperThresholdBound
);
98
101
void
setThreshold
(
double
lowerThreshold
,
double
upperThreshold
);
102
105
void
setThresholdBounds
(
double
min,
double
max);
106
107
protected
:
109
void
updateWidgetFromMRMLDisplayNode
()
override
;
110
113
void
setMinimum
(
double
min);
114
void
setMaximum
(
double
max);
115
116
private
:
117
Q_DECLARE_PRIVATE(
qMRMLVolumeThresholdWidget
);
118
Q_DISABLE_COPY(
qMRMLVolumeThresholdWidget
);
119
};
25
class
QMRML_WIDGETS_EXPORT
qMRMLVolumeThresholdWidget
{
…
};
120
121
#endif
qMRMLVolumeThresholdWidget::Superclass
qMRMLVolumeWidget Superclass
Constructors.
Definition
qMRMLVolumeThresholdWidget.h:38
qMRMLVolumeThresholdWidget::setUpperThresholdBound
void setUpperThresholdBound(double upperThresholdBound)
Set upperThreshold.
qMRMLVolumeThresholdWidget::setAutoThreshold
void setAutoThreshold(ControlMode autoWindowLevel)
qMRMLVolumeThresholdWidget::setUpperThreshold
void setUpperThreshold(double upperThreshold)
Set upperThreshold.
qMRMLVolumeThresholdWidget::setLowerThresholdBound
void setLowerThresholdBound(double lowerThresholdBound)
Set lowerThreshold.
qMRMLVolumeThresholdWidget::upperThreshold
double upperThreshold
Definition
qMRMLVolumeThresholdWidget.h:31
qMRMLVolumeThresholdWidget::qMRMLVolumeThresholdWidget
qMRMLVolumeThresholdWidget(QWidget *parent=nullptr)
qMRMLVolumeThresholdWidget::lowerThreshold
double lowerThreshold
Definition
qMRMLVolumeThresholdWidget.h:30
qMRMLVolumeThresholdWidget::upperThreshold
double upperThreshold() const
Get upperThreshold.
qMRMLVolumeThresholdWidget::upperThresholdBound
double upperThresholdBound() const
Get upper threshold bound.
qMRMLVolumeThresholdWidget::setThresholdBounds
void setThresholdBounds(double min, double max)
Set sliders bounds.
qMRMLVolumeThresholdWidget::upperThresholdBound
double upperThresholdBound
Definition
qMRMLVolumeThresholdWidget.h:33
qMRMLVolumeThresholdWidget::autoThreshold
int autoThreshold
Definition
qMRMLVolumeThresholdWidget.h:29
qMRMLVolumeThresholdWidget::lowerThreshold
double lowerThreshold() const
Get lowerThreshold.
qMRMLVolumeThresholdWidget::isOff
bool isOff() const
Is the thresholding activated.
qMRMLVolumeThresholdWidget::thresholdValuesChanged
void thresholdValuesChanged(double lowerThreshold, double upperThreshold)
Signal sent if the lowerThreshold/upperThreshold value is updated.
qMRMLVolumeThresholdWidget::updateWidgetFromMRMLDisplayNode
void updateWidgetFromMRMLDisplayNode() override
Update the widget from volume display node properties.
qMRMLVolumeThresholdWidget::setAutoThreshold
void setAutoThreshold(int autoThreshold)
Set Auto/Manual mode.
qMRMLVolumeThresholdWidget::setMinimum
void setMinimum(double min)
Set sliders range.
qMRMLVolumeThresholdWidget::setLowerThreshold
void setLowerThreshold(double lowerThreshold)
Set lowerThreshold.
qMRMLVolumeThresholdWidget::setMaximum
void setMaximum(double max)
qMRMLVolumeThresholdWidget::lowerThresholdBound
double lowerThresholdBound() const
Get lower threshold bound.
qMRMLVolumeThresholdWidget::autoThreshold
ControlMode autoThreshold() const
qMRMLVolumeThresholdWidget::setThreshold
void setThreshold(double lowerThreshold, double upperThreshold)
Set lowerThreshold/upperThreshold in once.
qMRMLVolumeThresholdWidget::lowerThresholdBound
double lowerThresholdBound
Definition
qMRMLVolumeThresholdWidget.h:32
qMRMLVolumeThresholdWidget::autoThresholdValueChanged
void autoThresholdValueChanged(int value)
Signal sent if the auto/manual value is updated.
qMRMLVolumeThresholdWidget::ControlMode
ControlMode
Definition
qMRMLVolumeThresholdWidget.h:43
qMRMLVolumeThresholdWidget::Off
@ Off
Definition
qMRMLVolumeThresholdWidget.h:46
qMRMLVolumeThresholdWidget::Auto
@ Auto
Definition
qMRMLVolumeThresholdWidget.h:44
qMRMLVolumeThresholdWidget::Manual
@ Manual
Definition
qMRMLVolumeThresholdWidget.h:45
qMRMLVolumeWidget::qMRMLVolumeWidget
qMRMLVolumeWidget(QWidget *parentWidget=nullptr)
qMRMLVolumeWidget.h
Generated on Tue Apr 8 2025 04:46:47 for Slicer by
1.13.0