#include <qwt_compass.h>
Inheritance diagram for QwtCompass:

Public Member Functions | |
| QwtCompass (QWidget *parent=0, const char *name=0) | |
| virtual | ~QwtCompass () |
| void | setRose (QwtCompassRose *rose) |
| const QwtCompassRose * | rose () const |
| QwtCompassRose * | rose () |
| const QMap< double, QString > & | labelMap () const |
| QMap< double, QString > & | labelMap () |
| void | setLabelMap (const QMap< double, QString > &map) |
Protected Member Functions | |
| virtual QString | scaleLabel (double value) const |
| 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 *) |
Private Attributes | |
| QwtCompassRose * | d_rose |
| QMap< double, QString > | d_labelMap |
QwtCompass is a widget to display and enter directions. It consists of a scale and an optional needle and rose. The azimuth is the difference between the direction of the needle and north, where one of them is fixed and the other is rotating.
Definition at line 37 of file qwt_compass.h.
|
||||||||||||
|
Constructor.
Definition at line 32 of file qwt_compass.cpp. References d_labelMap, QwtScaleDraw::options(), QwtDial::scaleDraw(), QwtScaleDraw::setOptions(), QwtDial::setOrigin(), QwtScaleDraw::setTickLength(), and QwtDial::setWrapping(). |
|
|
Destructor.
Definition at line 68 of file qwt_compass.cpp. References d_rose. |
|
||||||||||||||||||||||||
|
Definition at line 93 of file qwt_compass.cpp. References d_rose, and QwtCompassRose::draw(). Referenced by drawScaleContents(). |
|
||||||||||||||||
|
Draw the contents inside the scale
Reimplemented from QwtDial. Definition at line 73 of file qwt_compass.cpp. References drawRose(), QwtDblRange::isValid(), QwtDial::mode(), QwtDial::origin(), QwtDial::RotateScale, and QwtDblRange::value(). |
|
|
Reimplemented from QwtSliderBase. Definition at line 140 of file qwt_compass.cpp. References QwtSliderBase::isReadOnly(), QwtSliderBase::keyPressEvent(), QwtDial::mode(), QwtDial::origin(), QwtDial::RotateNeedle, QwtSliderBase::setValue(), and QwtDblRange::value(). |
|
|
Definition at line 211 of file qwt_compass.cpp. References d_labelMap. |
|
|
Definition at line 201 of file qwt_compass.cpp. References d_labelMap. |
|
|
Definition at line 135 of file qwt_compass.cpp. References d_rose. |
|
|
Definition at line 125 of file qwt_compass.cpp. References d_rose. |
|
|
Map a value to a corresponding label
Reimplemented from QwtDial. Definition at line 244 of file qwt_compass.cpp. References d_labelMap. |
|
|
Set a map, mapping values to labels.
Definition at line 229 of file qwt_compass.cpp. References d_labelMap. |
|
|
Set a rose for the compass
Definition at line 108 of file qwt_compass.cpp. References d_rose. |
|
|
Definition at line 66 of file qwt_compass.h. Referenced by labelMap(), QwtCompass(), scaleLabel(), and setLabelMap(). |
|
|
Definition at line 65 of file qwt_compass.h. Referenced by drawRose(), rose(), setRose(), and ~QwtCompass(). |
1.3.2