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
QmitkHistogram.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 QmitkHistogram_h
14
#define QmitkHistogram_h
15
16
#include <QColor>
17
18
#include <qwt_plot_item.h>
19
#include <qwt_series_data.h>
20
#include <qwt_text.h>
21
27
class
QmitkHistogram
:
public
QwtPlotItem
28
{
29
public
:
30
explicit
QmitkHistogram
(
const
QString &title = QString());
31
explicit
QmitkHistogram
(
const
QwtText &title);
32
~QmitkHistogram
()
override
;
33
34
void
setData
(
const
QwtIntervalSeriesData &
data
);
35
const
QwtIntervalSeriesData &
data
()
const
;
36
37
void
setColor
(
const
QColor &);
38
QColor
color
()
const
;
39
40
QRectF
boundingRect
()
const override
;
41
42
void
draw
(QPainter *,
const
QwtScaleMap &xMap,
const
QwtScaleMap &yMap,
const
QRectF &)
const override
;
43
44
void
setBaseline
(
double
reference);
45
double
baseline
()
const
;
46
47
protected
:
48
virtual
void
drawBar
(QPainter *, Qt::Orientation o,
const
QRect &)
const
;
49
50
private
:
51
void
init();
52
53
class
HistogramData;
54
HistogramData *m_Data;
55
};
56
57
#endif
QmitkHistogram::drawBar
virtual void drawBar(QPainter *, Qt::Orientation o, const QRect &) const
QmitkHistogram::setColor
void setColor(const QColor &)
QmitkHistogram
Used to create a histogram that can be shown in a Qwt Plot. See QmitkHistogramWidget for an example o...
Definition:
QmitkHistogram.h:27
QmitkHistogram::QmitkHistogram
QmitkHistogram(const QString &title=QString())
QmitkHistogram::draw
void draw(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const override
QmitkHistogram::color
QColor color() const
QmitkHistogram::~QmitkHistogram
~QmitkHistogram() override
QmitkHistogram::setBaseline
void setBaseline(double reference)
QmitkHistogram::boundingRect
QRectF boundingRect() const override
QmitkHistogram::baseline
double baseline() const
QmitkHistogram::setData
void setData(const QwtIntervalSeriesData &data)
QmitkHistogram::data
const QwtIntervalSeriesData & data() const
src
MITK
Modules
QtWidgetsExt
include
QmitkHistogram.h
Generated on Fri Mar 21 2025 02:14:20 for Medical Imaging Interaction Toolkit by
1.8.17