|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Base class for needles that can be used in a QwtDial. More...
#include <qwt_dial_needle.h>
Public Member Functions | |
| QwtDialNeedle () | |
| Constructor. | |
| virtual | ~QwtDialNeedle () |
| Destructor. | |
| virtual void | setPalette (const QPalette &) |
| Set the palette for the needle. | |
| const QPalette & | palette () const |
| Return the palette of the needle. | |
| virtual void | draw (QPainter *, const QPointF ¢er, double length, double direction, QPalette::ColorGroup=QPalette::Active) const |
| Draw the needle. | |
Protected Member Functions | |
| virtual void | drawNeedle (QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0 |
| Draw the needle. | |
| virtual void | drawKnob (QPainter *, double width, const QBrush &, bool sunken) const |
| Draw the knob. | |
Base class for needles that can be used in a QwtDial.
| QwtDialNeedle::QwtDialNeedle | ( | ) |
Constructor.
Constructor .
|
virtual |
Destructor.
Destructor .
|
virtual |
Draw the needle.
|
protectedpure virtual |
Draw the needle.
The origin of the needle is at position (0.0, 0.0 ) pointing in direction 0.0 ( = east ).
The painter is already initialized with translation and rotation.
| painter | Painter |
| length | Length of the needle |
| colorGroup | Color group, used for painting |
Implemented in QwtDialSimpleNeedle, QwtCompassMagnetNeedle, and QwtCompassWindArrow.
| const QPalette & QwtDialNeedle::palette | ( | ) | const |
Return the palette of the needle.
|
virtual |
Set the palette for the needle.
Sets the palette for the needle.