|
Updraft
1.0
Open source glider flight visualisation tool.
|
Abstract class that plots FixInfo to PlotAxes. More...
#include <plotpainters.h>


Public Slots | |
| void | updateBuffer () |
Public Member Functions | |
| virtual | ~PlotPainter () |
| void | init (PlotAxes *axes, FixInfo *info) |
| virtual void | draw (QPainter *painter) |
| virtual void | getRangeAtPixel (int x, int *startIndex, int *endIndex) |
| Returns the index range of the igc info for pixel x. | |
| int | getMinX () |
| int | getMaxX () |
Protected Member Functions | |
| virtual void | flushBuffer ()=0 |
| Draw points from the buffer. | |
| virtual void | computePoints () |
| virtual void | computeDrawingData () |
Protected Attributes | |
| QPainter * | painter |
| PlotAxes * | axes |
| FixInfo * | info |
| QPolygonF | buffer |
| QVector< Data > | dataValues |
| QVector< int > | indexes |
Abstract class that plots FixInfo to PlotAxes.
PlotPainter implements the drawing style.
| virtual Updraft::IgcViewer::PlotPainter::~PlotPainter | ( | ) | [inline, virtual] |
| void Updraft::IgcViewer::PlotPainter::computeDrawingData | ( | ) | [protected, virtual] |
Reimplemented in Updraft::IgcViewer::VerticalSpeedPlotPainter.
| void Updraft::IgcViewer::PlotPainter::computePoints | ( | ) | [protected, virtual] |
| void Updraft::IgcViewer::PlotPainter::draw | ( | QPainter * | painter | ) | [virtual] |
| virtual void Updraft::IgcViewer::PlotPainter::flushBuffer | ( | ) | [protected, pure virtual] |
Draw points from the buffer.
This method is called every time the graph crosses zero, at the end of the plot and maybe sometimes more.
Implemented in Updraft::IgcViewer::GroundSpeedPlotPainter, Updraft::IgcViewer::VerticalSpeedPlotPainter, and Updraft::IgcViewer::AltitudePlotPainter.
| void Updraft::IgcViewer::PlotPainter::getRangeAtPixel | ( | int | x, |
| int * | startIndex, | ||
| int * | endIndex | ||
| ) | [virtual] |
Returns the index range of the igc info for pixel x.
| void Updraft::IgcViewer::PlotPainter::init | ( | PlotAxes * | axes, |
| FixInfo * | info | ||
| ) |
| void Updraft::IgcViewer::PlotPainter::updateBuffer | ( | ) | [slot] |
PlotAxes* Updraft::IgcViewer::PlotPainter::axes [protected] |
QPolygonF Updraft::IgcViewer::PlotPainter::buffer [protected] |
QVector<Data> Updraft::IgcViewer::PlotPainter::dataValues [protected] |
QVector<int> Updraft::IgcViewer::PlotPainter::indexes [protected] |
FixInfo* Updraft::IgcViewer::PlotPainter::info [protected] |
QPainter* Updraft::IgcViewer::PlotPainter::painter [protected] |