|
Qwt Polar User's Guide
1.0.1
|
#include <qwt_polar_spectrogram.h>

Public Types | |
| enum | PaintAttribute { ApproximatedAtan = 0x01 } |
| typedef QFlags< PaintAttribute > | PaintAttributes |
Public Member Functions | |
| QwtPolarSpectrogram () | |
| virtual | ~QwtPolarSpectrogram () |
| void | setData (QwtRasterData *data) |
| const QwtRasterData * | data () const |
| void | setColorMap (QwtColorMap *) |
| const QwtColorMap * | colorMap () const |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| bool | testPaintAttribute (PaintAttribute) const |
| void | setRenderThreadCount (uint numThreads) |
| uint | renderThreadCount () const |
| virtual int | rtti () const |
| virtual void | draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const |
| virtual QwtInterval | boundingInterval (int scaleId) const |
Protected Member Functions | |
| virtual QImage | renderImage (const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, const QRect &rect) const |
| virtual void | renderTile (const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, const QPoint &imagePos, const QRect &tile, QImage *image) const |
An item, which displays a spectrogram.
A spectrogram displays threedimenional data, where the 3rd dimension ( the intensity ) is displayed using colors. The colors are calculated from the values using a color map.
| typedef QFlags<PaintAttribute> QwtPolarSpectrogram::PaintAttributes |
Paint attributes.
Attributes to modify the drawing algorithm. The default setting disables ApproximatedAtan
| QwtPolarSpectrogram::QwtPolarSpectrogram | ( | ) | [explicit] |
Constructor.
| QwtPolarSpectrogram::~QwtPolarSpectrogram | ( | ) | [virtual] |
Destructor.
| QwtInterval QwtPolarSpectrogram::boundingInterval | ( | int | scaleId | ) | const [virtual] |
Interval, that is necessary to display the item This interval can be useful for operations like clipping or autoscaling
| scaleId | Scale index |
Reimplemented from QwtPolarItem.
| const QwtColorMap * QwtPolarSpectrogram::colorMap | ( | ) | const |
| const QwtRasterData * QwtPolarSpectrogram::data | ( | ) | const |
| void QwtPolarSpectrogram::draw | ( | QPainter * | painter, |
| const QwtScaleMap & | azimuthMap, | ||
| const QwtScaleMap & | radialMap, | ||
| const QPointF & | pole, | ||
| double | radius, | ||
| const QRectF & | canvasRect | ||
| ) | const [virtual] |
Draw the spectrogram
| painter | Painter |
| 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 |
| radius | Radius of the complete plot area in painter coordinates |
| canvasRect | Contents rect of the canvas in painter coordinates |
Implements QwtPolarItem.
| QImage QwtPolarSpectrogram::renderImage | ( | const QwtScaleMap & | azimuthMap, |
| const QwtScaleMap & | radialMap, | ||
| const QPointF & | pole, | ||
| const QRect & | rect | ||
| ) | const [protected, virtual] |
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 |
| uint QwtPolarSpectrogram::renderThreadCount | ( | ) | const |
| void QwtPolarSpectrogram::renderTile | ( | const QwtScaleMap & | azimuthMap, |
| const QwtScaleMap & | radialMap, | ||
| const QPointF & | pole, | ||
| const QPoint & | imagePos, | ||
| const QRect & | tile, | ||
| QImage * | image | ||
| ) | const [protected, virtual] |
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 |
| int QwtPolarSpectrogram::rtti | ( | ) | const [virtual] |
Reimplemented from QwtPolarItem.
| void QwtPolarSpectrogram::setColorMap | ( | QwtColorMap * | colorMap | ) |
Change the color map
Often it is useful to display the mapping between intensities and colors as an additional plot axis, showing a color bar.
| colorMap | Color Map |
| void QwtPolarSpectrogram::setData | ( | QwtRasterData * | data | ) |
Set the data to be displayed
| data | Spectrogram Data |
| void QwtPolarSpectrogram::setPaintAttribute | ( | PaintAttribute | attribute, |
| bool | on = true |
||
| ) |
Specify an attribute how to draw the curve
| attribute | Paint attribute |
| on | On/Off |
| void QwtPolarSpectrogram::setRenderThreadCount | ( | uint | numThreads | ) |
Rendering an image from the raster data can often be done parallel on a multicore system.
| numThreads | Number of threads to be used for rendering. If numThreads is set to 0, the system specific ideal thread count is used. |
The default thread count is 1 ( = no additional threads )
| bool QwtPolarSpectrogram::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
| attribute | Paint attribute |
1.7.5.1