Eneboo - Documentación para desarrolladores
|
Base class for needles that can be used in a QwtDial. Más...
#include <qwt_dial_needle.h>
Métodos públicos | |
QwtDialNeedle () | |
Constructor. | |
virtual | ~QwtDialNeedle () |
Destructor. | |
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 |
Métodos protegidos estáticos | |
static void | drawKnob (QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken) |
Draw the knob. |
Base class for needles that can be used in a QwtDial.
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.
QwtDialNeedle::QwtDialNeedle | ( | ) |
Constructor.
QwtDialNeedle::~QwtDialNeedle | ( | ) | [virtual] |
Destructor.
virtual void QwtDialNeedle::draw | ( | QPainter * | painter, |
const QPoint & | center, | ||
int | length, | ||
double | direction, | ||
QPalette::ColorGroup | cg = QPalette::Active |
||
) | const [pure virtual] |
Draw the needle
painter | Painter |
center | Center of the dial, start position for the needle |
length | Length of the needle |
direction | Direction of the needle, in degrees counter clockwise |
cg | Color group, used for painting |
Implementado en QwtDialSimpleNeedle, QwtCompassMagnetNeedle y QwtCompassWindArrow.
void QwtDialNeedle::drawKnob | ( | QPainter * | painter, |
const QPoint & | pos, | ||
int | width, | ||
const QBrush & | brush, | ||
bool | sunken | ||
) | [static, protected] |
Draw the knob.
const QPalette & QwtDialNeedle::palette | ( | ) | const |
void QwtDialNeedle::setPalette | ( | const QPalette & | palette | ) | [virtual] |
Sets the palette for the needle.
palette | New Palette |