Qwt Polar User's Guide
0.1.0
|
#include <qwt_polar_spectrogram.h>
Public Member Functions | |
QwtPolarSpectrogram () | |
virtual | ~QwtPolarSpectrogram () |
void | setData (const QwtRasterData &data) |
const QwtRasterData & | data () const |
void | setColorMap (const QwtColorMap &) |
const QwtColorMap & | colorMap () const |
virtual int | rtti () const |
virtual void | draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QwtDoublePoint &pole, double radius, const QwtDoubleRect &canvasRect) const |
virtual QwtDoubleInterval | boundingInterval (int scaleId) const |
![]() | |
QwtPolarItem (const QwtText &title=QwtText()) | |
virtual | ~QwtPolarItem () |
void | attach (QwtPolarPlot *plot) |
void | detach () |
QwtPolarPlot * | plot () const |
void | setTitle (const QString &title) |
void | setTitle (const QwtText &title) |
const QwtText & | title () const |
void | setItemAttribute (ItemAttribute, bool on=true) |
bool | testItemAttribute (ItemAttribute) const |
void | setRenderHint (RenderHint, bool on=true) |
bool | testRenderHint (RenderHint) const |
double | z () const |
void | setZ (double z) |
void | show () |
void | hide () |
virtual void | setVisible (bool) |
bool | isVisible () const |
virtual void | itemChanged () |
virtual QWidget * | legendItem () const |
virtual void | updateLegend (QwtLegend *) const |
virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtDoubleInterval &) |
virtual int | marginHint () const |
Protected Member Functions | |
virtual QImage | renderImage (const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QwtDoublePoint &pole, const QRect &rect) const |
Additional Inherited Members | |
![]() | |
enum | RttiValues { Rtti_PolarItem = 0, Rtti_PolarGrid, Rtti_PolarScale, Rtti_PolarMarker, Rtti_PolarCurve, Rtti_PolarSpectrogram, Rtti_PolarUserItem = 1000 } |
enum | ItemAttribute { Legend = 1, AutoScale = 2 } |
enum | RenderHint { RenderAntialiased = 1 } |
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.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
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 |
|
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.
|
protectedvirtual |
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 |
|
virtual |
Reimplemented from QwtPolarItem.
void QwtPolarSpectrogram::setColorMap | ( | const 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 | ( | const QwtRasterData & | data | ) |
Set the data to be displayed
data | Spectrogram Data |