GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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:
QwtRasterData, QwtColorMap

The display mode controls how the raster data will be represented.
ImageMode
 

The values are mapped to colors using a color map.
ContourMode
 

The data is displayed using contour lines
When both modes are enabled the contour lines are painted on top of the spectrogram. The default setting enables ImageMode.
See also:
setDisplayMode(), testDisplayMode()

Sets the following item attributes:
QwtPlotItem::AutoScale: true
QwtPlotItem::Legend: false
The z value is initialized by 8.0.
Parameters:
title Title
See also:
QwtPlotItem::setItemAttribute(), QwtPlotItem::setZ()

Returns:
Bounding rect of the data
See also:
QwtRasterData::boundingRect()
Reimplemented from QwtPlotItem.

Returns:
Color Map used for mapping the intensity values to colors
See also:
setColorMap()

Return the levels of the contour lines. The levels are sorted in increasing order.
See also:
contourLevels(), renderContourLines(), QwtRasterData::contourLines()

Calculate the pen for a contour line. The color of the pen is the color for level calculated by the color map
Parameters:
level Contour level
Returns:
Pen for the contour line
Note:
contourPen is only used if defaultContourPen().style() == Qt::NoPen
See also:
setDefaultContourPen(), setColorMap(), setContourLevels()

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:
area Rect, where to calculate the contour lines
 
rect Rect in pixel coordinates, where to paint the contour lines
Returns:
Raster to be used by the CONREC contour algorithm.
Note:
The size will be bounded to rect.size().
See also:
drawContourLines(), QwtRasterData::contourLines()

Returns:
Spectrogram data
See also:
setData()

Returns:
Default contour pen
See also:
setDefaultContourPen()

Draw the spectrogram. Parameters:
painter Painter
 
xMap Maps x-values into pixel coordinates.
 
yMap Maps y-values into pixel coordinates.
 
canvasRect Contents rect of the canvas in painter coordinates
See also:
setDisplayMode(), renderImage(), QwtPlotRasterItem::draw(), drawContourLines()
Reimplemented from QwtPlotRasterItem.

Paint the contour lines
Parameters:
painter Painter
 
xMap Maps x-values into pixel coordinates.
 
yMap Maps y-values into pixel coordinates.
 
contourLines Contour lines
See also:
renderContourLines(), defaultContourPen(), contourPen()

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:
rect Rect for the raster hint
Returns:
data().rasterHint(rect)
Reimplemented from QwtPlotRasterItem.

Calculate contour lines
Parameters:
rect Rectangle, where to calculate the contour lines
 
raster Raster, used by the CONREC algorithm
See also:
contourLevels(), setConrecAttribute(), QwtRasterData::contourLines()

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:
xMap X-Scale Map
 
yMap Y-Scale Map
 
area Area that should be rendered in scale coordinates.
Returns:
A QImage::Format_Indexed8 or QImage::Format_ARGB32 depending on the color map.
See also:
QwtRasterData::intensity(), QwtColorMap::rgb(), QwtColorMap::colorIndex()
Implements QwtPlotRasterItem.

Returns:
QwtPlotItem::Rtti_PlotSpectrogram
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:
colorMap Color Map
See also:
colorMap(), QwtScaleWidget::setColorBarEnabled(), QwtScaleWidget::setColorMap()

Modify an attribute of the CONREC algorithm, used to calculate the contour lines.
Parameters:
attribute CONREC attribute
 
on On/Off
See also:
testConrecAttribute(), renderContourLines(), QwtRasterData::contourLines()

Set the levels of the contour lines
Parameters:
levels Values of the contour levels
See also:
contourLevels(), renderContourLines(), QwtRasterData::contourLines()
Note:
contourLevels returns the same levels but sorted.

Set the data to be displayed
Parameters:
data Spectrogram Data
See also:
data()

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:
defaultContourPen(), contourPen()

The display mode controls how the raster data will be represented.
Parameters:
mode Display mode
 
on On/Off
The default setting enables ImageMode.
See also:
DisplayMode, displayMode()

Test an attribute of the CONREC algorithm, used to calculate the contour lines.
Parameters:
attribute CONREC attribute
Returns:
true, is enabled
See also:
setConrecAttribute(), renderContourLines(), QwtRasterData::contourLines()

The display mode controls how the raster data will be represented.
Parameters:
mode Display mode
Returns:
true if mode is enabled

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.