A magnet needle points to two opposite directions indicating north and south.
The following colors are used:
Definition at line 125 of file qwt_dial_needle.h.
Public Types | |
enum | Style { TriangleStyle, ThinStyle } |
Public Member Functions | |
QwtCompassMagnetNeedle (Style=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red) | |
virtual void | draw (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const |
Static Public Member Functions | |
static void | drawTriangleNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction) |
static void | drawThinNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction) |
Static Protected Member Functions | |
static void | drawPointer (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint ¢er, int length, int width, double direction) |
|
Style of the needle.
Definition at line 129 of file qwt_dial_needle.h. |
|
Constructor.
Definition at line 265 of file qwt_dial_needle.cpp. References QwtDialNeedle::palette(). |
|
Draw the needle
Implements QwtDialNeedle. Definition at line 292 of file qwt_dial_needle.cpp. References drawThinNeedle(), drawTriangleNeedle(), and QwtDialNeedle::palette(). |
|
Draw a compass needle
Definition at line 419 of file qwt_dial_needle.cpp. Referenced by drawThinNeedle(). |
|
Draw a compass needle
Definition at line 383 of file qwt_dial_needle.cpp. References QwtDialNeedle::drawKnob(), and drawPointer(). Referenced by draw(). |
|
Draw a compass needle
Definition at line 317 of file qwt_dial_needle.cpp. Referenced by draw(). |