Updraft
1.0
Open source glider flight visualisation tool.
|
Label marking Y axes in the plot. More...
#include <graphlabels.h>
Public Member Functions | |
void | draw (QPainter *painter) |
Draw the labels to the painter. | |
AxisLabel (PlotAxes *axis, QString unitsDescription) | |
Qt::Orientations | expandingDirections () const |
Overridden from QLayoutItem. | |
QSize | maximumSize () const |
QSize | minimumSize () const |
QSize | sizeHint () const |
Private Attributes | |
PlotAxes * | axis |
QString | unitsDescription |
Static Private Attributes | |
static const int | MIN_WIDTH = 20 |
static const int | MIN_HEIGHT = 20 |
static const int | OFFSET_X = 3 |
static const int | TEXT_HEIGHT = 10 |
static const QPen | LABEL_PEN = QPen(Qt::white) |
Label marking Y axes in the plot.
Updraft::IgcViewer::AxisLabel::AxisLabel | ( | PlotAxes * | axis, |
QString | unitsDescription | ||
) | [explicit] |
void Updraft::IgcViewer::AxisLabel::draw | ( | QPainter * | painter | ) | [virtual] |
Draw the labels to the painter.
Implements Updraft::IgcViewer::Label.
Qt::Orientations Updraft::IgcViewer::AxisLabel::expandingDirections | ( | ) | const [virtual] |
Overridden from QLayoutItem.
Reimplemented from Updraft::IgcViewer::Label.
QSize Updraft::IgcViewer::AxisLabel::maximumSize | ( | ) | const [virtual] |
Reimplemented from Updraft::IgcViewer::Label.
QSize Updraft::IgcViewer::AxisLabel::minimumSize | ( | ) | const [virtual] |
Reimplemented from Updraft::IgcViewer::Label.
QSize Updraft::IgcViewer::AxisLabel::sizeHint | ( | ) | const [virtual] |
Reimplemented from Updraft::IgcViewer::Label.
PlotAxes* Updraft::IgcViewer::AxisLabel::axis [private] |
const QPen Updraft::IgcViewer::AxisLabel::LABEL_PEN = QPen(Qt::white) [static, private] |
const int Updraft::IgcViewer::AxisLabel::MIN_HEIGHT = 20 [static, private] |
const int Updraft::IgcViewer::AxisLabel::MIN_WIDTH = 20 [static, private] |
const int Updraft::IgcViewer::AxisLabel::OFFSET_X = 3 [static, private] |
const int Updraft::IgcViewer::AxisLabel::TEXT_HEIGHT = 10 [static, private] |
QString Updraft::IgcViewer::AxisLabel::unitsDescription [private] |