|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
显示光谱图的绘图项 更多...
#include <qwt_polar_spectrogram.h>
类 | |
| class | PrivateData |
| class | TileInfo |
Public 类型 | |
| enum | PaintAttribute { ApproximatedAtan = 0x01 } |
| 修改绘制算法的属性 更多... | |
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 } |
Public 成员函数 | |
| QwtPolarSpectrogram () | |
| Constructor | |
| virtual | ~QwtPolarSpectrogram () |
| Destructor | |
| void | setData (QwtRasterData *data) |
| Set the data | |
| const QwtRasterData * | data () const |
| Get the data | |
| void | setColorMap (QwtColorMap *) |
| Set the color map | |
| const QwtColorMap * | colorMap () const |
| Get the color map | |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| Set a paint attribute | |
| bool | testPaintAttribute (PaintAttribute) const |
| Test a paint attribute | |
| virtual int | rtti () const override |
| Get the runtime type information | |
| virtual void | draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override |
| Draw the spectrogram | |
| 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 | |
Protected 成员函数 | |
| virtual QImage | renderImage (const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, const QRect &rect) const |
| Render an image | |
| virtual void | renderTile (const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, const QPoint &imagePos, const QRect &tile, QImage *image) const |
| Render a tile | |
显示光谱图的绘图项
|
explicit |
Constructor
构造函数
|
virtual |
Destructor
析构函数
|
overridevirtual |
| const QwtColorMap * QwtPolarSpectrogram::colorMap | ( | ) | const |
Get the color map
获取用于将强度值映射到颜色的颜色映射
| const QwtRasterData * QwtPolarSpectrogram::data | ( | ) | const |
Get the data
获取光谱图数据
|
overridevirtual |
|
protectedvirtual |
Render an image
Render an image from the data and color map.
The area is translated into a rect of the paint device. For each pixel of this rect the intensity is mapped into a color.
| azimuthMap | Maps azimuth values to values related to 0.0, M_2PI |
| radialMap | Maps radius values into painter coordinates. |
| pole | Position of the pole in painter coordinates |
| rect | Target rectangle of the image in painter coordinates |
|
protectedvirtual |
Render a tile
Render a sub-rectangle of an image
renderTile() is called by renderImage() to render different parts of the image by concurrent threads.
| azimuthMap | Maps azimuth values to values related to 0.0, M_2PI |
| radialMap | Maps radius values into painter coordinates. |
| pole | Position of the pole in painter coordinates |
| imagePos | Top/left position of the image in painter coordinates |
| tile | Sub-rectangle of the tile in painter coordinates |
| image | Image to be rendered |
|
overridevirtual |
| void QwtPolarSpectrogram::setColorMap | ( | QwtColorMap * | colorMap | ) |
Set the color map
更改颜色映射
| void QwtPolarSpectrogram::setData | ( | QwtRasterData * | data | ) |
Set the data
设置要显示的数据
| void QwtPolarSpectrogram::setPaintAttribute | ( | PaintAttribute | attribute, |
| bool | on = true |
||
| ) |
Set a paint attribute
指定绘制曲线的属性
| bool QwtPolarSpectrogram::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test a paint attribute
测试绘制属性