Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Used to create a histogram that can be shown in a Qwt Plot. See QmitkHistogramWidget for an example of its usage. More...
#include <QmitkHistogram.h>
Public Member Functions | |
QmitkHistogram (const QString &title=QString::null) | |
QmitkHistogram (const QwtText &title) | |
~QmitkHistogram () override | |
void | setData (const QwtIntervalSeriesData &data) |
const QwtIntervalSeriesData & | data () const |
void | setColor (const QColor &) |
QColor | color () const |
QRectF | boundingRect () const override |
void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const override |
void | setBaseline (double reference) |
double | baseline () const |
Protected Member Functions | |
virtual void | drawBar (QPainter *, Qt::Orientation o, const QRect &) const |
Used to create a histogram that can be shown in a Qwt Plot. See QmitkHistogramWidget for an example of its usage.
Definition at line 27 of file QmitkHistogram.h.
|
explicit |
Definition at line 33 of file QmitkHistogram.cpp.
|
explicit |
Definition at line 28 of file QmitkHistogram.cpp.
|
override |
Definition at line 38 of file QmitkHistogram.cpp.
double QmitkHistogram::baseline | ( | ) | const |
Definition at line 63 of file QmitkHistogram.cpp.
Referenced by draw().
|
override |
Definition at line 93 of file QmitkHistogram.cpp.
QColor QmitkHistogram::color | ( | ) | const |
Definition at line 88 of file QmitkHistogram.cpp.
Referenced by drawBar(), and setColor().
const QwtIntervalSeriesData & QmitkHistogram::data | ( | ) | const |
Definition at line 74 of file QmitkHistogram.cpp.
|
override |
Definition at line 107 of file QmitkHistogram.cpp.
References baseline(), and drawBar().
|
protectedvirtual |
void QmitkHistogram::setBaseline | ( | double | reference | ) |
Definition at line 54 of file QmitkHistogram.cpp.
void QmitkHistogram::setColor | ( | const QColor & | color | ) |
Definition at line 79 of file QmitkHistogram.cpp.
References color().
void QmitkHistogram::setData | ( | const QwtIntervalSeriesData & | data | ) |
Definition at line 68 of file QmitkHistogram.cpp.