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