Updraft  1.0
Open source glider flight visualisation tool.
Updraft::IgcViewer::PlotPainter Class Reference

Abstract class that plots FixInfo to PlotAxes. More...

#include <plotpainters.h>

Inheritance diagram for Updraft::IgcViewer::PlotPainter:
Collaboration diagram for Updraft::IgcViewer::PlotPainter:

List of all members.

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
PlotAxesaxes
FixInfoinfo
QPolygonF buffer
QVector< DatadataValues
QVector< int > indexes

Detailed Description

Abstract class that plots FixInfo to PlotAxes.

PlotPainter implements the drawing style.


Constructor & Destructor Documentation

virtual Updraft::IgcViewer::PlotPainter::~PlotPainter ( ) [inline, virtual]

Member Function Documentation

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.


Member Data Documentation

QVector<int> Updraft::IgcViewer::PlotPainter::indexes [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines