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

Painter for plotting vertical speed. More...

#include <plotpainters.h>

Inheritance diagram for Updraft::IgcViewer::VerticalSpeedPlotPainter:
Collaboration diagram for Updraft::IgcViewer::VerticalSpeedPlotPainter:

List of all members.

Protected Member Functions

void flushBuffer ()
 Draw points from the buffer.
void computeDrawingData ()

Private Attributes

QVector< QPolygon > positivePolygons
QVector< QPolygon > negativePolygons

Static Private Attributes

static const QBrush POSITIVE_BRUSH
static const QBrush NEGATIVE_BRUSH = QBrush(Qt::red)
static const QPen POSITIVE_PEN = QPen(QColor(100, 100, 255))
static const QPen NEGATIVE_PEN = QPen(Qt::red)

Detailed Description

Painter for plotting vertical speed.

Plots positive values as red solid areas and negative values as blue solid values.


Member Function Documentation

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.

Implements Updraft::IgcViewer::PlotPainter.


Member Data Documentation

const QBrush Updraft::IgcViewer::VerticalSpeedPlotPainter::NEGATIVE_BRUSH = QBrush(Qt::red) [static, private]
const QPen Updraft::IgcViewer::VerticalSpeedPlotPainter::NEGATIVE_PEN = QPen(Qt::red) [static, private]
Initial value:
  QBrush(QColor(100, 100, 255))
const QPen Updraft::IgcViewer::VerticalSpeedPlotPainter::POSITIVE_PEN = QPen(QColor(100, 100, 255)) [static, private]

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