|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
QwtPolarPlot 的画布 更多...
#include <qwt_polar_canvas.h>
类 | |
| class | PrivateData |
Public 类型 | |
| enum | PaintAttribute { BackingStore = 0x01 } |
| 绘制属性 更多... | |
Public 成员函数 | |
| QwtPolarCanvas (QwtPolarPlot *) | |
| Constructor | |
| virtual | ~QwtPolarCanvas () |
| Destructor | |
| QwtPolarPlot * | plot () |
| Get the plot | |
| const QwtPolarPlot * | plot () const |
| Get the plot (const version) | |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| Set a paint attribute | |
| bool | testPaintAttribute (PaintAttribute) const |
| Test a paint attribute | |
| const QPixmap * | backingStore () const |
| Get the backing store | |
| void | invalidateBackingStore () |
| Invalidate the backing store | |
| QwtPointPolar | invTransform (const QPoint &) const |
| Inverse transform from widget coordinates to polar coordinates | |
| QPoint | transform (const QwtPointPolar &) const |
| Transform from polar coordinates to widget coordinates | |
Protected 成员函数 | |
| virtual void | paintEvent (QPaintEvent *) override |
| Handle paint events | |
| virtual void | resizeEvent (QResizeEvent *) override |
| Handle resize events | |
QwtPolarPlot 的画布
|
explicit |
Constructor
构造函数
|
virtual |
Destructor
析构函数
| const QPixmap * QwtPolarCanvas::backingStore | ( | ) | const |
Get the backing store
获取后台存储像素图
| void QwtPolarCanvas::invalidateBackingStore | ( | ) |
Invalidate the backing store
使内部后台存储失效
| QwtPointPolar QwtPolarCanvas::invTransform | ( | const QPoint & | pos | ) | const |
Inverse transform from widget coordinates to polar coordinates
将点从控件坐标转换为极坐标
|
overrideprotectedvirtual |
Handle paint events
Paint event
| event | Paint event |
| QwtPolarPlot * QwtPolarCanvas::plot | ( | ) |
Get the plot
获取父绘图控件
| const QwtPolarPlot * QwtPolarCanvas::plot | ( | ) | const |
Get the plot (const version)
获取父绘图控件(常量版本)
|
overrideprotectedvirtual |
Handle resize events
Resize event
| event | Resize event |
| void QwtPolarCanvas::setPaintAttribute | ( | PaintAttribute | attribute, |
| bool | on = true |
||
| ) |
Set a paint attribute
更改绘制属性
| bool QwtPolarCanvas::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test a paint attribute
测试绘制属性是否启用
| QPoint QwtPolarCanvas::transform | ( | const QwtPointPolar & | polarPos | ) | const |
Transform from polar coordinates to widget coordinates
将点从极坐标转换为控件坐标