QwtPlotSpectrogram(3) | Qwt User's Guide | QwtPlotSpectrogram(3) |
QwtPlotSpectrogram -
#include <qwt_plot_spectrogram.h>
Inherits QwtPlotRasterItem.
enum DisplayMode { ImageMode = 1, ContourMode
= 2 }
QwtPlotSpectrogram (const QString
&title=QString::null)
virtual ~QwtPlotSpectrogram ()
virtual QwtDoubleRect boundingRect () const
const QwtColorMap & colorMap () const
QwtValueList contourLevels () const
virtual QPen contourPen (double level) const
const QwtRasterData & data () const
QPen defaultContourPen () const
virtual void draw (QPainter *p, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QRect &rect) const
virtual QSize rasterHint (const QwtDoubleRect &) const
virtual int rtti () const
void setColorMap (const QwtColorMap &)
void setConrecAttribute (QwtRasterData::ConrecAttribute, bool
on)
void setContourLevels (const QwtValueList &)
void setData (const QwtRasterData &data)
void setDefaultContourPen (const QPen &)
void setDisplayMode (DisplayMode, bool on=true)
bool testConrecAttribute (QwtRasterData::ConrecAttribute) const
bool testDisplayMode (DisplayMode) const
virtual QSize contourRasterSize (const QwtDoubleRect &,
const QRect &) const
virtual void drawContourLines (QPainter *p, const QwtScaleMap
&xMap, const QwtScaleMap &yMap, const
QwtRasterData::ContourLines &lines) const
virtual QwtRasterData::ContourLines renderContourLines (const
QwtDoubleRect &rect, const QSize &raster) const
virtual QImage renderImage (const QwtScaleMap &xMap, const
QwtScaleMap &yMap, const QwtDoubleRect &rect) const
A plot 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.
In ContourMode contour lines are painted for the contour levels.
See also:
The display mode controls how the raster data will be represented.
When both modes are enabled the contour lines are painted on top of the spectrogram. The default setting enables ImageMode.
See also:
Sets the following item attributes:
The z value is initialized by 8.0.
Parameters:
See also:
Returns:
See also:
Reimplemented from QwtPlotItem.
Returns:
See also:
Return the levels of the contour lines. The levels are sorted in increasing order.
See also:
Calculate the pen for a contour line. The color of the pen is the color for level calculated by the color map
Parameters:
Returns:
Note:
See also:
Return the raster to be used by the CONREC contour algorithm. A larger size will improve the precisision of the CONREC algorithm, but will slow down the time that is needed to calculate the lines.
The default implementation returns rect.size() / 2 bounded to data().rasterHint().
Parameters:
Returns:
Note:
See also:
Returns:
See also:
Returns:
See also:
Draw the spectrogram. Parameters:
See also:
Reimplemented from QwtPlotRasterItem.
Paint the contour lines
Parameters:
See also:
Returns the recommended raster for a given rect. F.e the raster hint is used to limit the resolution of the image that is rendered.
Parameters:
Returns:
Reimplemented from QwtPlotRasterItem.
Calculate contour lines
Parameters:
See also:
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.
Parameters:
Returns:
See also:
Implements QwtPlotRasterItem.
Returns:
Reimplemented from QwtPlotItem.
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.
Parameters:
See also:
Modify an attribute of the CONREC algorithm, used to calculate the contour lines.
Parameters:
See also:
Set the levels of the contour lines
Parameters:
See also:
Note:
Set the data to be displayed
Parameters:
See also:
Set the default pen for the contour lines. If the spectrogram has a valid default contour pen a contour line is painted using the default contour pen. Otherwise (pen.style() == Qt::NoPen) the pen is calculated for each contour level using contourPen().
See also:
The display mode controls how the raster data will be represented.
Parameters:
The default setting enables ImageMode.
See also:
Test an attribute of the CONREC algorithm, used to calculate the contour lines.
Parameters:
Returns:
See also:
The display mode controls how the raster data will be represented.
Parameters:
Returns:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |