|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
#include <qwt_dial_needle.h>
Public 成员函数 | |
| 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 成员函数 | |
| 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 | |
可用于 QwtDial 的指针基类
| QwtDialNeedle::QwtDialNeedle | ( | ) |
Constructor
构造函数
|
virtual |
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 |
在 QwtDialSimpleNeedle, QwtCompassMagnetNeedle , 以及 QwtCompassWindArrow 内被实现.
| const QPalette & QwtDialNeedle::palette | ( | ) | const |
Return the palette of the needle
返回指针的调色板
|
virtual |
Set the palette for the needle
设置指针的调色板