|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
用于绘制标记的类 更多...
#include <qwt_polar_marker.h>
类 | |
| class | PrivateData |
Public 成员函数 | |
| QwtPolarMarker () | |
| Constructor | |
| virtual | ~QwtPolarMarker () |
| Destructor | |
| virtual int | rtti () const override |
| Get the runtime type information | |
| void | setPosition (const QwtPointPolar &) |
| Set the position | |
| QwtPointPolar | position () const |
| Get the position | |
| void | setSymbol (const QwtSymbol *s) |
| Set the symbol | |
| const QwtSymbol * | symbol () const |
| Get the symbol | |
| void | setLabel (const QwtText &) |
| Set the label | |
| QwtText | label () const |
| Get the label | |
| void | setLabelAlignment (Qt::Alignment) |
| Set the label alignment | |
| Qt::Alignment | labelAlignment () const |
| Get the label alignment | |
| virtual void | draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override |
| Draw the marker | |
| virtual QwtInterval | boundingInterval (int scaleId) const override |
| Get the bounding interval for a scale | |
Public 成员函数 继承自 QwtPolarItem | |
| QwtPolarItem (const QwtText &title=QwtText()) | |
| Constructor | |
| virtual | ~QwtPolarItem () |
| Destructor | |
| void | attach (QwtPolarPlot *plot) |
| Attach the item to a plot | |
| void | detach () |
| Detach the item from its plot | |
| QwtPolarPlot * | plot () const |
| Get the attached plot | |
| void | setTitle (const QString &title) |
| Set the title from a QString | |
| void | setTitle (const QwtText &title) |
| Set the title from a QwtText | |
| const QwtText & | title () const |
| Get the title | |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| Set an item attribute | |
| bool | testItemAttribute (ItemAttribute) const |
| Test an item attribute | |
| void | setRenderHint (RenderHint, bool on=true) |
| Set a render hint | |
| bool | testRenderHint (RenderHint) const |
| Test a render hint | |
| void | setRenderThreadCount (uint numThreads) |
| Set the number of render threads | |
| uint | renderThreadCount () const |
| Get the number of render threads | |
| double | z () const |
| Get the z value | |
| void | setZ (double z) |
| Set the z value | |
| void | show () |
| Show the item | |
| void | hide () |
| Hide the item | |
| virtual void | setVisible (bool) |
| Set the visibility | |
| bool | isVisible () const |
| Get the visibility | |
| virtual void | itemChanged () |
| Update the item and trigger autoRefresh | |
| virtual void | legendChanged () |
| Update the legend | |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &) |
| Update the scale division | |
| virtual int | marginHint () const |
| Get the margin hint | |
| void | setLegendIconSize (const QSize &) |
| Set the legend icon size | |
| QSize | legendIconSize () const |
| Get the legend icon size | |
| virtual QList< QwtLegendData > | legendData () const |
| Get the legend data | |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const |
| Get the legend icon | |
额外继承的成员函数 | |
Public 类型 继承自 QwtPolarItem | |
| enum | RttiValues { Rtti_PolarItem = 0 , Rtti_PolarGrid , Rtti_PolarMarker , Rtti_PolarCurve , Rtti_PolarSpectrogram , Rtti_PolarUserItem = 1000 } |
| enum | ItemAttribute { Legend = 0x01 , AutoScale = 0x02 } |
| enum | RenderHint { RenderAntialiased = 0x01 } |
用于绘制标记的类
|
explicit |
Constructor
构造函数
|
virtual |
Destructor
析构函数
|
overridevirtual |
|
overridevirtual |
| QwtText QwtPolarMarker::label | ( | ) | const |
Get the label
获取标签文本
| Qt::Alignment QwtPolarMarker::labelAlignment | ( | ) | const |
Get the label alignment
获取标签对齐方式
| QwtPointPolar QwtPolarMarker::position | ( | ) | const |
Get the position
获取标记的位置
|
overridevirtual |
| void QwtPolarMarker::setLabel | ( | const QwtText & | label | ) |
Set the label
设置标签文本
| void QwtPolarMarker::setLabelAlignment | ( | Qt::Alignment | align | ) |
Set the label alignment
设置标签的对齐方式
| void QwtPolarMarker::setPosition | ( | const QwtPointPolar & | pos | ) |
Set the position
设置标记的位置
| void QwtPolarMarker::setSymbol | ( | const QwtSymbol * | symbol | ) |
Set the symbol
分配符号
| const QwtSymbol * QwtPolarMarker::symbol | ( | ) | const |
Get the symbol
获取当前符号