QwtDialNeedle is a pointer that indicates a value by pointing to a specific direction.
Qwt is missing a set of good looking needles. Contributions are very welcome.
Definition at line 31 of file qwt_dial_needle.h.
Public Member Functions | |
QwtDialNeedle () | |
virtual | ~QwtDialNeedle () |
virtual void | draw (QPainter *painter, const QPoint ¢er, int length, double direction, QPalette::ColorGroup cg=QPalette::Active) const=0 |
virtual void | setPalette (const QPalette &) |
const QPalette & | palette () const |
Protected Member Functions | |
const QColorGroup & | colorGroup (QPalette::ColorGroup) const |
Static Protected Member Functions | |
void | drawKnob (QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken) |
|
Constructor.
Definition at line 18 of file qwt_dial_needle.cpp. |
|
Destructor.
Definition at line 24 of file qwt_dial_needle.cpp. |
|
Definition at line 85 of file qwt_dial_needle.cpp. Referenced by QwtCompassWindArrow::draw(), QwtCompassMagnetNeedle::draw(), and QwtDialSimpleNeedle::draw(). |
|
Draw the needle
Implemented in QwtDialSimpleNeedle, QwtCompassMagnetNeedle, and QwtCompassWindArrow. Referenced by QwtAnalogClock::drawHand(), and QwtDial::drawNeedle(). |
|
Draw the knob.
Definition at line 47 of file qwt_dial_needle.cpp. Referenced by QwtDialSimpleNeedle::drawArrowNeedle(), QwtDialSimpleNeedle::drawRayNeedle(), and QwtCompassMagnetNeedle::drawThinNeedle(). |
|
Definition at line 41 of file qwt_dial_needle.cpp. |
|
Sets the palette for the needle.
Definition at line 33 of file qwt_dial_needle.cpp. Referenced by QwtCompassMagnetNeedle::QwtCompassMagnetNeedle(), QwtCompassWindArrow::QwtCompassWindArrow(), and QwtDialSimpleNeedle::QwtDialSimpleNeedle(). |