Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Groups
Namespace List
Namespace List
Namespace 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
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
e
f
i
l
m
n
p
r
s
t
Typedefs
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
x
Enumerations
Enumerator
a
b
c
d
e
g
h
i
k
l
n
o
p
r
s
t
v
w
z
Class List
Class List
Class Index
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
c
m
o
r
s
t
Related Functions
File List
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
m
o
p
q
r
s
t
u
v
x
Functions
_
e
h
m
o
q
s
u
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
i
m
o
p
q
r
s
u
v
x
Examples
Download
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
QmitkScalarBar.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef QmitkScalarBar_h
14
#define QmitkScalarBar_h
15
16
#include <
MitkQtOverlaysExports.h
>
17
#include <
mitkCommon.h
>
18
19
#include <QPen>
20
#include <QWidget>
21
22
class
MITKQTOVERLAYS_EXPORT
QmitkScalarBar
:
public
QWidget
23
{
24
Q_OBJECT
25
public
:
26
enum
alignment
27
{
28
vertical = 0,
29
horizontal = 1
30
};
31
35
QmitkScalarBar
(QWidget *parent =
nullptr
);
36
40
~
QmitkScalarBar
()
override
;
41
42
virtual
void
SetScaleFactor(
double
scale);
43
44
virtual
void
SetAlignment(alignment align);
45
46
void
SetPen(
const
QPen &pen);
47
48
void
SetNumberOfSubdivisions(
unsigned
int
subs);
49
50
unsigned
int
GetNumberOfSubdivisions();
51
52
protected
:
53
void
paintEvent(QPaintEvent *event)
override
;
54
55
void
SetupGeometry(alignment align);
56
57
void
CleanUpLines();
58
// void moveEvent(QMoveEvent*);
59
60
alignment
m_Alignment
;
61
62
double
m_ScaleFactor
;
63
64
QLine *
m_MainLine
;
65
66
std::vector<QLine *>
m_SubDivisionLines
;
67
68
QPen
m_Pen
;
69
70
unsigned
int
m_NumberOfSubDivisions
;
71
};
72
73
#endif
MitkQtOverlaysExports.h
QmitkScalarBar::m_Alignment
alignment m_Alignment
Definition:
QmitkScalarBar.h:60
QmitkScalarBar::m_Pen
QPen m_Pen
Definition:
QmitkScalarBar.h:68
QmitkScalarBar::alignment
alignment
Definition:
QmitkScalarBar.h:26
QmitkScalarBar::m_SubDivisionLines
std::vector< QLine * > m_SubDivisionLines
Definition:
QmitkScalarBar.h:66
QmitkScalarBar
Definition:
QmitkScalarBar.h:22
QmitkScalarBar::m_NumberOfSubDivisions
unsigned int m_NumberOfSubDivisions
Definition:
QmitkScalarBar.h:70
QmitkScalarBar::m_ScaleFactor
double m_ScaleFactor
Definition:
QmitkScalarBar.h:62
mitkCommon.h
QmitkScalarBar::m_MainLine
QLine * m_MainLine
Definition:
QmitkScalarBar.h:64
MITKQTOVERLAYS_EXPORT
#define MITKQTOVERLAYS_EXPORT
Definition:
MitkQtOverlaysExports.h:15
src
MITK
Modules
QtOverlays
QmitkScalarBar.h
Generated on Fri Mar 21 2025 02:14:21 for Medical Imaging Interaction Toolkit by
1.8.17