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
qMRMLWindowLevelWidget.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 __qMRMLWindowLevelWidget_h
19
#define __qMRMLWindowLevelWidget_h
20
21
// Qt includes
22
23
// CTK includes
24
#include "
qMRMLVolumeWidget.h
"
25
class
qMRMLWindowLevelWidgetPrivate;
26
27
class
QMRML_WIDGETS_EXPORT
qMRMLWindowLevelWidget
28
:
public
qMRMLVolumeWidget
29
{
30
Q_OBJECT
31
32
Q_PROPERTY(
ControlMode
autoWindowLevel
READ
autoWindowLevel
WRITE
setAutoWindowLevel
)
33
Q_PROPERTY(
double
window
READ
window
WRITE
setWindow
)
34
Q_PROPERTY(
double
level
READ
level
WRITE
setLevel
)
35
Q_PROPERTY(
double
minimumValue
READ
minimumValue
WRITE
setMinimumValue
)
36
Q_PROPERTY(
double
maximumValue
READ
maximumValue
WRITE
setMaximumValue
)
37
Q_PROPERTY(
double
minimumBound
READ
minimumBound
WRITE
setMinimumBound
)
38
Q_PROPERTY(
double
maximumBound
READ
maximumBound
WRITE
setMaximumBound
)
39
Q_ENUMS(
ControlMode
)
40
41
public:
43
typedef
qMRMLVolumeWidget
Superclass
;
44
explicit
qMRMLWindowLevelWidget
(QWidget* parentWidget =
nullptr
);
45
~
qMRMLWindowLevelWidget
() override;
46
47
enum
ControlMode
48
{
49
Auto
= 0,
50
Manual
= 1,
51
ManualMinMax
=2
52
};
47
enum
ControlMode
{
…
};
53
55
void
setAutoWindowLevel
(
ControlMode
autoWindowLevel
);
56
ControlMode
autoWindowLevel
()
const
;
57
60
double
window
()
const
;
61
64
double
level
()
const
;
65
68
double
minimumValue
()
const
;
69
72
double
maximumValue
()
const
;
73
76
double
minimumBound
()
const
;
77
80
double
maximumBound
()
const
;
81
82
signals:
85
void
windowLevelValuesChanged
(
double
window
,
double
level
);
88
void
autoWindowLevelValueChanged
(
ControlMode
value);
89
90
public
slots:
92
void
setAutoWindowLevel
(
int
autoWindowLevel
);
93
96
void
setWindow
(
double
window
);
97
100
void
setLevel
(
double
level
);
101
104
void
setWindowLevel
(
double
window
,
double
level
);
105
108
void
setMinMaxRangeValue
(
double
min,
double
max);
109
void
setMinimumValue
(
double
min);
110
void
setMaximumValue
(
double
max);
111
112
void
setMinimumBound
(
double
min);
113
void
setMaximumBound
(
double
max);
114
void
setMinMaxBounds
(
double
min,
double
max);
115
116
protected
:
118
void
updateWidgetFromMRMLDisplayNode
()
override
;
119
121
void
updateWidgetFromMRMLVolumeNode
()
override
;
122
123
private
:
124
Q_DECLARE_PRIVATE(
qMRMLWindowLevelWidget
);
125
Q_DISABLE_COPY(
qMRMLWindowLevelWidget
);
126
};
27
class
QMRML_WIDGETS_EXPORT
qMRMLWindowLevelWidget
{
…
};
127
128
#endif
qMRMLVolumeWidget::qMRMLVolumeWidget
qMRMLVolumeWidget(QWidget *parentWidget=nullptr)
qMRMLWindowLevelWidget::updateWidgetFromMRMLDisplayNode
void updateWidgetFromMRMLDisplayNode() override
Update the widget from volume display node properties.
qMRMLWindowLevelWidget::minimumValue
double minimumValue() const
Get minimum of the range.
qMRMLWindowLevelWidget::setMinimumBound
void setMinimumBound(double min)
qMRMLWindowLevelWidget::setWindowLevel
void setWindowLevel(double window, double level)
Set window/level in once.
qMRMLWindowLevelWidget::level
double level() const
Get level.
qMRMLWindowLevelWidget::setMaximumValue
void setMaximumValue(double max)
qMRMLWindowLevelWidget::Superclass
qMRMLVolumeWidget Superclass
Constructors.
Definition
qMRMLWindowLevelWidget.h:43
qMRMLWindowLevelWidget::window
double window
Definition
qMRMLWindowLevelWidget.h:33
qMRMLWindowLevelWidget::setMinMaxRangeValue
void setMinMaxRangeValue(double min, double max)
Set min/max range.
qMRMLWindowLevelWidget::setMaximumBound
void setMaximumBound(double max)
qMRMLWindowLevelWidget::autoWindowLevelValueChanged
void autoWindowLevelValueChanged(ControlMode value)
Signal sent if the auto/manual value is updated.
qMRMLWindowLevelWidget::minimumBound
double minimumBound() const
Get minimum of the range.
qMRMLWindowLevelWidget::updateWidgetFromMRMLVolumeNode
void updateWidgetFromMRMLVolumeNode() override
Special initial updates that are done only when switching between volumes.
qMRMLWindowLevelWidget::autoWindowLevel
ControlMode autoWindowLevel
Definition
qMRMLWindowLevelWidget.h:32
qMRMLWindowLevelWidget::setAutoWindowLevel
void setAutoWindowLevel(int autoWindowLevel)
Set Auto/Manual mode.
qMRMLWindowLevelWidget::maximumBound
double maximumBound() const
Get maximum of the range.
qMRMLWindowLevelWidget::maximumBound
double maximumBound
Definition
qMRMLWindowLevelWidget.h:38
qMRMLWindowLevelWidget::minimumValue
double minimumValue
Definition
qMRMLWindowLevelWidget.h:35
qMRMLWindowLevelWidget::setLevel
void setLevel(double level)
Set level.
qMRMLWindowLevelWidget::windowLevelValuesChanged
void windowLevelValuesChanged(double window, double level)
Signal sent if the window/level value is updated.
qMRMLWindowLevelWidget::setWindow
void setWindow(double window)
Set window.
qMRMLWindowLevelWidget::autoWindowLevel
ControlMode autoWindowLevel() const
qMRMLWindowLevelWidget::setMinimumValue
void setMinimumValue(double min)
qMRMLWindowLevelWidget::setAutoWindowLevel
void setAutoWindowLevel(ControlMode autoWindowLevel)
Set Auto/Manual mode.
qMRMLWindowLevelWidget::minimumBound
double minimumBound
Definition
qMRMLWindowLevelWidget.h:37
qMRMLWindowLevelWidget::setMinMaxBounds
void setMinMaxBounds(double min, double max)
qMRMLWindowLevelWidget::maximumValue
double maximumValue() const
Get maximum of the range.
qMRMLWindowLevelWidget::qMRMLWindowLevelWidget
qMRMLWindowLevelWidget(QWidget *parentWidget=nullptr)
qMRMLWindowLevelWidget::window
double window() const
Get window.
qMRMLWindowLevelWidget::maximumValue
double maximumValue
Definition
qMRMLWindowLevelWidget.h:36
qMRMLWindowLevelWidget::level
double level
Definition
qMRMLWindowLevelWidget.h:34
qMRMLWindowLevelWidget::ControlMode
ControlMode
Definition
qMRMLWindowLevelWidget.h:48
qMRMLWindowLevelWidget::ManualMinMax
@ ManualMinMax
Definition
qMRMLWindowLevelWidget.h:51
qMRMLWindowLevelWidget::Manual
@ Manual
Definition
qMRMLWindowLevelWidget.h:50
qMRMLWindowLevelWidget::Auto
@ Auto
Definition
qMRMLWindowLevelWidget.h:49
qMRMLVolumeWidget.h
Generated on Tue Apr 8 2025 04:46:47 for Slicer by
1.13.0