QwtCompass(3) | Qwt User's Guide | QwtCompass(3) |
QwtCompass -
#include <qwt_compass.h>
Inherits QwtDial.
QwtCompass (QWidget *parent=NULL)
virtual ~QwtCompass ()
const QMap< double, QString > & labelMap () const
QMap< double, QString > & labelMap ()
const QwtCompassRose * rose () const
QwtCompassRose * rose ()
void setLabelMap (const QMap< double, QString > &map)
void setRose (QwtCompassRose *rose)
virtual void drawRose (QPainter *, const QPoint
¢er, int radius, double north, QPalette::ColorGroup) const
virtual void drawScaleContents (QPainter *, const QPoint ¢er,
int radius) const
virtual void keyPressEvent (QKeyEvent *)
virtual QwtText scaleLabel (double value) const
A Compass Widget.
QwtCompass is a widget to display and enter directions. It consists of a scale, an optional needle and rose.
Note:
Constructor. Parameters:
Create a compass widget with a scale, no needle and no rose. The default origin is 270.0 with no valid value. It accepts mouse and keyboard inputs and has no step size. The default mode is QwtDial::RotateNeedle.
Draw the compass rose
Parameters:
Draw the contents of the scale
Parameters:
Reimplemented from QwtDial.
Handles key events
Beside the keys described in QwtDial::keyPressEvent numbers from 1-9 (without 5) set the direction according to their position on the num pad.
See also:
Reimplemented from QwtDial.
Returns:
See also:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Map a value to a corresponding label
Parameters:
Returns:
label() looks in a map for a corresponding label for value or return an null text.
See also:
Reimplemented from QwtDial.
Set a map, mapping values to labels. Parameters:
The values of the major ticks are found by looking into this map. The default map consists of the labels N, NE, E, SE, S, SW, W, NW.
Warning:
See also:
Set a rose for the compass
Parameters:
Warning:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |