1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPlotSpectrogram Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtPlotSpectrogram Class Reference</h1><!-- doxytag: class="QwtPlotSpectrogram" --><!-- doxytag: inherits="QwtPlotRasterItem" -->Inheritance diagram for QwtPlotSpectrogram:<p><center><img src="class_qwt_plot_spectrogram__inherit__graph.png" border="0" usemap="#_qwt_plot_spectrogram__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_spectrogram__inherit__map">
24
<area href="class_qwt_plot_raster_item.html" shape="rect" coords="24,157,157,181" alt="">
25
<area href="class_qwt_plot_item.html" shape="rect" coords="43,83,139,107" alt="">
26
<area href="class_qwt_legend_item_manager.html" shape="rect" coords="7,8,175,32" alt="">
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotSpectrogram:<p><center><img src="class_qwt_plot_spectrogram__coll__graph.png" border="0" usemap="#_qwt_plot_spectrogram__coll__map" alt="Collaboration graph"></center>
29
<map name="_qwt_plot_spectrogram__coll__map">
30
<area href="class_qwt_plot_raster_item.html" shape="rect" coords="24,157,157,181" alt="">
31
<area href="class_qwt_plot_item.html" shape="rect" coords="43,83,139,107" alt="">
32
<area href="class_qwt_legend_item_manager.html" shape="rect" coords="7,8,175,32" alt="">
34
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_spectrogram-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
35
A plot item, which displays a spectrogram.
37
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.<p>
38
In ContourMode contour lines are painted for the contour levels.<p>
40
<img src="spectrogram3.png" alt="spectrogram3.png">
43
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_raster_data.html">QwtRasterData</a>, <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> </dd></dl>
48
Definition at line <a class="el" href="qwt__plot__spectrogram_8h-source.html#l00035">35</a> of file <a class="el" href="qwt__plot__spectrogram_8h-source.html">qwt_plot_spectrogram.h</a>.<table border="0" cellpadding="0" cellspacing="0">
50
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a> { <br>
52
<b>AlwaysOff</b>,
54
<b>AlwaysOn</b>,
56
<b>ActiveOnly</b>,
58
<b>ImageMode</b> = 1,
60
<b>ContourMode</b> = 2
64
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#e90c0431be329ecbefc7ed9ac77f5ed6">QwtPlotSpectrogram</a> (const QString &title=QString::null)</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#e76415d290cf4a512d07a17260b7a84a">~QwtPlotSpectrogram</a> ()</td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#482a82bcf1b9f2a9a75f527063b394a2">setDisplayMode</a> (<a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a>, bool on=true)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#292ec25eb59adaedf90eef45e98f4d38">testDisplayMode</a> (<a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a>) const </td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#72c5c1424b3dd6a391c7944994e30978">setData</a> (const <a class="el" href="class_qwt_raster_data.html">QwtRasterData</a> &data)</td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_raster_data.html">QwtRasterData</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#b995378221dc8e7bafc93db5dc3d33d1">data</a> () const</td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#cafcf790efcc9488acdfb941c1532c59">setColorMap</a> (const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> &)</td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#740884f3c15eed9d20e6e0384f22006d">colorMap</a> () const</td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#063f21a8f29e3064ea8af9815096645a">boundingRect</a> () const</td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#be339f781bc38f23dd1691b869a41a13">rasterHint</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &) const</td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#fa3dea62acc8e5607e84bff8f50804b8">setDefaultContourPen</a> (const QPen &)</td></tr>
87
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPen </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#fd1ebcdd70da66632a996bb57f6102e3">defaultContourPen</a> () const</td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QPen </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#9c5c16fcda0422739c5393e42be5af37">contourPen</a> (double level) const </td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#9cac5e8fbab6e98382e5ec68ac9e4fd8">setConrecAttribute</a> (<a class="el" href="class_qwt_raster_data.html#8be376c4015dcb4adc207316bccf1140">QwtRasterData::ConrecAttribute</a>, bool on)</td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#94d98ffbd53a10f3b2e8703d9f69639b">testConrecAttribute</a> (<a class="el" href="class_qwt_raster_data.html#8be376c4015dcb4adc207316bccf1140">QwtRasterData::ConrecAttribute</a>) const</td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#6703dd9e8806258cd8544f90a735e459">setContourLevels</a> (const QwtValueList &)</td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top">QwtValueList </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#6295a47575db3023b80eb4ad06032aab">contourLevels</a> () const</td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#ee7e71657a0ecfd9b3d02a16d830360c">rtti</a> () const</td></tr>
101
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#e89cede1251d1405e1dd200b68dbc0aa">draw</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const QRect &rect) const</td></tr>
103
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QImage </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#b9a6e8cfe81e5d7621a522b685967429">renderImage</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &rect) const</td></tr>
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#635d011aec42598cdfdf55df23078695">contourRasterSize</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &, const QRect &) const</td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a> (const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> &rect, const QSize &raster) const</td></tr>
110
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#48f1b2133cb7ca8b443bb25a4c9501ff">drawContourLines</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a> &lines) const</td></tr>
113
<hr><h2>Member Enumeration Documentation</h2>
114
<a class="anchor" name="7f4904fe68b442d0f93040ea1fa1d062"></a><!-- doxytag: member="QwtPlotSpectrogram::DisplayMode" ref="7f4904fe68b442d0f93040ea1fa1d062" args="" -->
115
<div class="memitem">
116
<div class="memproto">
117
<table class="memname">
119
<td class="memname">enum <a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">QwtPlotSpectrogram::DisplayMode</a> </td>
126
The display mode controls how the raster data will be represented.<ul>
128
The values are mapped to colors using a color map.</li><li>ContourMode<br>
129
The data is displayed using contour lines</li></ul>
131
When both modes are enabled the contour lines are painted on top of the spectrogram. The default setting enables ImageMode.<p>
132
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#482a82bcf1b9f2a9a75f527063b394a2">setDisplayMode()</a>, <a class="el" href="class_qwt_plot_spectrogram.html#292ec25eb59adaedf90eef45e98f4d38">testDisplayMode()</a> </dd></dl>
135
Definition at line <a class="el" href="qwt__plot__spectrogram_8h-source.html#l00051">51</a> of file <a class="el" href="qwt__plot__spectrogram_8h-source.html">qwt_plot_spectrogram.h</a>.
138
<hr><h2>Constructor & Destructor Documentation</h2>
139
<a class="anchor" name="e90c0431be329ecbefc7ed9ac77f5ed6"></a><!-- doxytag: member="QwtPlotSpectrogram::QwtPlotSpectrogram" ref="e90c0431be329ecbefc7ed9ac77f5ed6" args="(const QString &title=QString::null)" -->
140
<div class="memitem">
141
<div class="memproto">
142
<table class="memname">
144
<td class="memname">QwtPlotSpectrogram::QwtPlotSpectrogram </td>
146
<td class="paramtype">const QString & </td>
147
<td class="paramname"> <em>title</em> = <code>QString::null</code> </td>
148
<td> ) </td>
149
<td width="100%"><code> [explicit]</code></td>
156
Sets the following item attributes:<ul>
157
<li>QwtPlotItem::AutoScale: true</li><li>QwtPlotItem::Legend: false</li></ul>
159
The z value is initialized by 8.0.<p>
160
<dl compact><dt><b>Parameters:</b></dt><dd>
161
<table border="0" cellspacing="2" cellpadding="0">
162
<tr><td valign="top"></td><td valign="top"><em>title</em> </td><td>Title</td></tr>
165
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_item.html#5a335be8ff488809a2cf7f4b734ad1b6">QwtPlotItem::setItemAttribute()</a>, <a class="el" href="class_qwt_plot_item.html#57d90e4146133b59d589c71b3a643e82">QwtPlotItem::setZ()</a> </dd></dl>
168
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00134">134</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
170
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00203">QwtPlotItem::setItemAttribute()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00145">QwtPlotItem::setZ()</a>.
173
<a class="anchor" name="e76415d290cf4a512d07a17260b7a84a"></a><!-- doxytag: member="QwtPlotSpectrogram::~QwtPlotSpectrogram" ref="e76415d290cf4a512d07a17260b7a84a" args="()" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname">QwtPlotSpectrogram::~QwtPlotSpectrogram </td>
180
<td class="paramname"> </td>
181
<td> ) </td>
182
<td width="100%"><code> [virtual]</code></td>
193
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00146">146</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
196
<hr><h2>Member Function Documentation</h2>
197
<a class="anchor" name="482a82bcf1b9f2a9a75f527063b394a2"></a><!-- doxytag: member="QwtPlotSpectrogram::setDisplayMode" ref="482a82bcf1b9f2a9a75f527063b394a2" args="(DisplayMode, bool on=true)" -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname">void QwtPlotSpectrogram::setDisplayMode </td>
204
<td class="paramtype"><a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a> </td>
205
<td class="paramname"> <em>mode</em>, </td>
208
<td class="paramkey"></td>
210
<td class="paramtype">bool </td>
211
<td class="paramname"> <em>on</em> = <code>true</code></td><td> </td>
216
<td></td><td></td><td width="100%"></td>
223
The display mode controls how the raster data will be represented.<p>
224
<dl compact><dt><b>Parameters:</b></dt><dd>
225
<table border="0" cellspacing="2" cellpadding="0">
226
<tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>Display mode </td></tr>
227
<tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr>
230
The default setting enables ImageMode.<p>
231
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a>, displayMode() </dd></dl>
234
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00167">167</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
236
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
239
<a class="anchor" name="292ec25eb59adaedf90eef45e98f4d38"></a><!-- doxytag: member="QwtPlotSpectrogram::testDisplayMode" ref="292ec25eb59adaedf90eef45e98f4d38" args="(DisplayMode) const " -->
240
<div class="memitem">
241
<div class="memproto">
242
<table class="memname">
244
<td class="memname">bool QwtPlotSpectrogram::testDisplayMode </td>
246
<td class="paramtype"><a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a> </td>
247
<td class="paramname"> <em>mode</em> </td>
248
<td> ) </td>
249
<td width="100%"> const</td>
256
The display mode controls how the raster data will be represented.<p>
257
<dl compact><dt><b>Parameters:</b></dt><dd>
258
<table border="0" cellspacing="2" cellpadding="0">
259
<tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>Display mode </td></tr>
262
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if mode is enabled </dd></dl>
265
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00186">186</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
268
<a class="anchor" name="72c5c1424b3dd6a391c7944994e30978"></a><!-- doxytag: member="QwtPlotSpectrogram::setData" ref="72c5c1424b3dd6a391c7944994e30978" args="(const QwtRasterData &data)" -->
269
<div class="memitem">
270
<div class="memproto">
271
<table class="memname">
273
<td class="memname">void QwtPlotSpectrogram::setData </td>
275
<td class="paramtype">const <a class="el" href="class_qwt_raster_data.html">QwtRasterData</a> & </td>
276
<td class="paramname"> <em>data</em> </td>
277
<td> ) </td>
278
<td width="100%"></td>
285
Set the data to be displayed<p>
286
<dl compact><dt><b>Parameters:</b></dt><dd>
287
<table border="0" cellspacing="2" cellpadding="0">
288
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>Spectrogram Data </td></tr>
291
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#b995378221dc8e7bafc93db5dc3d33d1">data()</a> </dd></dl>
294
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00342">342</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
296
References <a class="el" href="class_qwt_raster_data.html#6fb61a7458f7a34f871f765f2b9d4eae">QwtRasterData::copy()</a>, <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00355">data()</a>, <a class="el" href="qwt__plot__rasteritem_8cpp-source.html#l00201">QwtPlotRasterItem::invalidateCache()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
299
<a class="anchor" name="b995378221dc8e7bafc93db5dc3d33d1"></a><!-- doxytag: member="QwtPlotSpectrogram::data" ref="b995378221dc8e7bafc93db5dc3d33d1" args="() const" -->
300
<div class="memitem">
301
<div class="memproto">
302
<table class="memname">
304
<td class="memname">const <a class="el" href="class_qwt_raster_data.html">QwtRasterData</a> & QwtPlotSpectrogram::data </td>
306
<td class="paramname"> </td>
307
<td> ) </td>
308
<td width="100%"> const</td>
315
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Spectrogram data </dd></dl>
316
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#72c5c1424b3dd6a391c7944994e30978">setData()</a> </dd></dl>
319
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00355">355</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
321
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00342">setData()</a>.
324
<a class="anchor" name="cafcf790efcc9488acdfb941c1532c59"></a><!-- doxytag: member="QwtPlotSpectrogram::setColorMap" ref="cafcf790efcc9488acdfb941c1532c59" args="(const QwtColorMap &)" -->
325
<div class="memitem">
326
<div class="memproto">
327
<table class="memname">
329
<td class="memname">void QwtPlotSpectrogram::setColorMap </td>
331
<td class="paramtype">const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> & </td>
332
<td class="paramname"> <em>colorMap</em> </td>
333
<td> ) </td>
334
<td width="100%"></td>
341
Change the color map<p>
342
Often it is useful to display the mapping between intensities and colors as an additional plot axis, showing a color bar.<p>
343
<dl compact><dt><b>Parameters:</b></dt><dd>
344
<table border="0" cellspacing="2" cellpadding="0">
345
<tr><td valign="top"></td><td valign="top"><em>colorMap</em> </td><td>Color Map</td></tr>
348
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#740884f3c15eed9d20e6e0384f22006d">colorMap()</a>, <a class="el" href="class_qwt_scale_widget.html#eb337b8e67fc00ca98bf39a6d70aea61">QwtScaleWidget::setColorBarEnabled()</a>, <a class="el" href="class_qwt_scale_widget.html#345b3ca91545033c0f33cce8d9bdc4f3">QwtScaleWidget::setColorMap()</a> </dd></dl>
351
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00202">202</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
353
References <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00215">colorMap()</a>, <a class="el" href="class_qwt_color_map.html#c21886c4be363557902d24d1224c2a86">QwtColorMap::copy()</a>, <a class="el" href="qwt__plot__rasteritem_8cpp-source.html#l00201">QwtPlotRasterItem::invalidateCache()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
356
<a class="anchor" name="740884f3c15eed9d20e6e0384f22006d"></a><!-- doxytag: member="QwtPlotSpectrogram::colorMap" ref="740884f3c15eed9d20e6e0384f22006d" args="() const" -->
357
<div class="memitem">
358
<div class="memproto">
359
<table class="memname">
361
<td class="memname">const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> & QwtPlotSpectrogram::colorMap </td>
363
<td class="paramname"> </td>
364
<td> ) </td>
365
<td width="100%"> const</td>
372
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Color Map used for mapping the intensity values to colors </dd></dl>
373
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#cafcf790efcc9488acdfb941c1532c59">setColorMap()</a> </dd></dl>
376
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00215">215</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
378
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00202">setColorMap()</a>.
381
<a class="anchor" name="063f21a8f29e3064ea8af9815096645a"></a><!-- doxytag: member="QwtPlotSpectrogram::boundingRect" ref="063f21a8f29e3064ea8af9815096645a" args="() const" -->
382
<div class="memitem">
383
<div class="memproto">
384
<table class="memname">
386
<td class="memname"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> QwtPlotSpectrogram::boundingRect </td>
388
<td class="paramname"> </td>
389
<td> ) </td>
390
<td width="100%"> const<code> [virtual]</code></td>
397
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Bounding rect of the data </dd></dl>
398
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_raster_data.html#bcd512d7fc6b042e21aa20501a4ac12d">QwtRasterData::boundingRect</a> </dd></dl>
401
Reimplemented from <a class="el" href="class_qwt_plot_item.html#aa0d61c721363671e1a1912cd4b8d4a7">QwtPlotItem</a>.
403
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00364">364</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
405
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00615">draw()</a>.
408
<a class="anchor" name="be339f781bc38f23dd1691b869a41a13"></a><!-- doxytag: member="QwtPlotSpectrogram::rasterHint" ref="be339f781bc38f23dd1691b869a41a13" args="(const QwtDoubleRect &) const" -->
409
<div class="memitem">
410
<div class="memproto">
411
<table class="memname">
413
<td class="memname">QSize QwtPlotSpectrogram::rasterHint </td>
415
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
416
<td class="paramname"> <em>rect</em> </td>
417
<td> ) </td>
418
<td width="100%"> const<code> [virtual]</code></td>
425
Returns the recommended raster for a given rect.
427
F.e the raster hint is used to limit the resolution of the image that is rendered.<p>
428
<dl compact><dt><b>Parameters:</b></dt><dd>
429
<table border="0" cellspacing="2" cellpadding="0">
430
<tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rect for the raster hint </td></tr>
433
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#b995378221dc8e7bafc93db5dc3d33d1">data()</a>.rasterHint(rect) </dd></dl>
436
Reimplemented from <a class="el" href="class_qwt_plot_raster_item.html#b608eda9778ea870b07db2209e77cc3d">QwtPlotRasterItem</a>.
438
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00378">378</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
440
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00529">contourRasterSize()</a>.
443
<a class="anchor" name="fa3dea62acc8e5607e84bff8f50804b8"></a><!-- doxytag: member="QwtPlotSpectrogram::setDefaultContourPen" ref="fa3dea62acc8e5607e84bff8f50804b8" args="(const QPen &)" -->
444
<div class="memitem">
445
<div class="memproto">
446
<table class="memname">
448
<td class="memname">void QwtPlotSpectrogram::setDefaultContourPen </td>
450
<td class="paramtype">const QPen & </td>
451
<td class="paramname"> <em>pen</em> </td>
452
<td> ) </td>
453
<td width="100%"></td>
460
Set the default pen for the contour lines.
462
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 <a class="el" href="class_qwt_plot_spectrogram.html#9c5c16fcda0422739c5393e42be5af37">contourPen()</a>.<p>
463
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#fd1ebcdd70da66632a996bb57f6102e3">defaultContourPen</a>, <a class="el" href="class_qwt_plot_spectrogram.html#9c5c16fcda0422739c5393e42be5af37">contourPen</a> </dd></dl>
466
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00230">230</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
468
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
471
<a class="anchor" name="fd1ebcdd70da66632a996bb57f6102e3"></a><!-- doxytag: member="QwtPlotSpectrogram::defaultContourPen" ref="fd1ebcdd70da66632a996bb57f6102e3" args="() const" -->
472
<div class="memitem">
473
<div class="memproto">
474
<table class="memname">
476
<td class="memname">QPen QwtPlotSpectrogram::defaultContourPen </td>
478
<td class="paramname"> </td>
479
<td> ) </td>
480
<td width="100%"> const</td>
487
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Default contour pen </dd></dl>
488
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#fa3dea62acc8e5607e84bff8f50804b8">setDefaultContourPen</a> </dd></dl>
491
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00243">243</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
493
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00566">drawContourLines()</a>.
496
<a class="anchor" name="9c5c16fcda0422739c5393e42be5af37"></a><!-- doxytag: member="QwtPlotSpectrogram::contourPen" ref="9c5c16fcda0422739c5393e42be5af37" args="(double level) const " -->
497
<div class="memitem">
498
<div class="memproto">
499
<table class="memname">
501
<td class="memname">QPen QwtPlotSpectrogram::contourPen </td>
503
<td class="paramtype">double </td>
504
<td class="paramname"> <em>level</em> </td>
505
<td> ) </td>
506
<td width="100%"> const<code> [virtual]</code></td>
513
Calculate the pen for a contour line.
515
The color of the pen is the color for level calculated by the color map<p>
516
<dl compact><dt><b>Parameters:</b></dt><dd>
517
<table border="0" cellspacing="2" cellpadding="0">
518
<tr><td valign="top"></td><td valign="top"><em>level</em> </td><td>Contour level </td></tr>
521
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Pen for the contour line </dd></dl>
522
<dl class="note" compact><dt><b>Note:</b></dt><dd>contourPen is only used if <a class="el" href="class_qwt_plot_spectrogram.html#fd1ebcdd70da66632a996bb57f6102e3">defaultContourPen()</a>.style() == Qt::NoPen</dd></dl>
523
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#fa3dea62acc8e5607e84bff8f50804b8">setDefaultContourPen</a>, <a class="el" href="class_qwt_plot_spectrogram.html#cafcf790efcc9488acdfb941c1532c59">setColorMap</a>, <a class="el" href="class_qwt_plot_spectrogram.html#6703dd9e8806258cd8544f90a735e459">setContourLevels</a> </dd></dl>
526
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00259">259</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
528
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00566">drawContourLines()</a>.
531
<a class="anchor" name="9cac5e8fbab6e98382e5ec68ac9e4fd8"></a><!-- doxytag: member="QwtPlotSpectrogram::setConrecAttribute" ref="9cac5e8fbab6e98382e5ec68ac9e4fd8" args="(QwtRasterData::ConrecAttribute, bool on)" -->
532
<div class="memitem">
533
<div class="memproto">
534
<table class="memname">
536
<td class="memname">void QwtPlotSpectrogram::setConrecAttribute </td>
538
<td class="paramtype"><a class="el" href="class_qwt_raster_data.html#8be376c4015dcb4adc207316bccf1140">QwtRasterData::ConrecAttribute</a> </td>
539
<td class="paramname"> <em>attribute</em>, </td>
542
<td class="paramkey"></td>
544
<td class="paramtype">bool </td>
545
<td class="paramname"> <em>on</em></td><td> </td>
550
<td></td><td></td><td width="100%"></td>
557
Modify an attribute of the CONREC algorithm, used to calculate the contour lines.<p>
558
<dl compact><dt><b>Parameters:</b></dt><dd>
559
<table border="0" cellspacing="2" cellpadding="0">
560
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>CONREC attribute </td></tr>
561
<tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr>
564
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#94d98ffbd53a10f3b2e8703d9f69639b">testConrecAttribute</a>, <a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a> </dd></dl>
567
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00276">276</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
569
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
572
<a class="anchor" name="94d98ffbd53a10f3b2e8703d9f69639b"></a><!-- doxytag: member="QwtPlotSpectrogram::testConrecAttribute" ref="94d98ffbd53a10f3b2e8703d9f69639b" args="(QwtRasterData::ConrecAttribute) const" -->
573
<div class="memitem">
574
<div class="memproto">
575
<table class="memname">
577
<td class="memname">bool QwtPlotSpectrogram::testConrecAttribute </td>
579
<td class="paramtype"><a class="el" href="class_qwt_raster_data.html#8be376c4015dcb4adc207316bccf1140">QwtRasterData::ConrecAttribute</a> </td>
580
<td class="paramname"> <em>attribute</em> </td>
581
<td> ) </td>
582
<td width="100%"> const</td>
589
Test an attribute of the CONREC algorithm, used to calculate the contour lines.<p>
590
<dl compact><dt><b>Parameters:</b></dt><dd>
591
<table border="0" cellspacing="2" cellpadding="0">
592
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>CONREC attribute </td></tr>
595
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true, is enabled</dd></dl>
596
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#9cac5e8fbab6e98382e5ec68ac9e4fd8">setConrecAttribute</a>, <a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a> </dd></dl>
599
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00299">299</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
602
<a class="anchor" name="6703dd9e8806258cd8544f90a735e459"></a><!-- doxytag: member="QwtPlotSpectrogram::setContourLevels" ref="6703dd9e8806258cd8544f90a735e459" args="(const QwtValueList &)" -->
603
<div class="memitem">
604
<div class="memproto">
605
<table class="memname">
607
<td class="memname">void QwtPlotSpectrogram::setContourLevels </td>
609
<td class="paramtype">const QwtValueList & </td>
610
<td class="paramname"> <em>levels</em> </td>
611
<td> ) </td>
612
<td width="100%"></td>
619
Set the levels of the contour lines<p>
620
<dl compact><dt><b>Parameters:</b></dt><dd>
621
<table border="0" cellspacing="2" cellpadding="0">
622
<tr><td valign="top"></td><td valign="top"><em>levels</em> </td><td>Values of the contour levels </td></tr>
625
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#6295a47575db3023b80eb4ad06032aab">contourLevels</a>, <a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a></dd></dl>
626
<dl class="note" compact><dt><b>Note:</b></dt><dd>contourLevels returns the same levels but sorted. </dd></dl>
629
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00313">313</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
631
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
634
<a class="anchor" name="6295a47575db3023b80eb4ad06032aab"></a><!-- doxytag: member="QwtPlotSpectrogram::contourLevels" ref="6295a47575db3023b80eb4ad06032aab" args="() const" -->
635
<div class="memitem">
636
<div class="memproto">
637
<table class="memname">
639
<td class="memname">QwtValueList QwtPlotSpectrogram::contourLevels </td>
641
<td class="paramname"> </td>
642
<td> ) </td>
643
<td width="100%"> const</td>
650
Return the levels of the contour lines.
652
The levels are sorted in increasing order.<p>
653
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#6295a47575db3023b80eb4ad06032aab">contourLevels</a>, <a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a> </dd></dl>
656
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00331">331</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
659
<a class="anchor" name="ee7e71657a0ecfd9b3d02a16d830360c"></a><!-- doxytag: member="QwtPlotSpectrogram::rtti" ref="ee7e71657a0ecfd9b3d02a16d830360c" args="() const" -->
660
<div class="memitem">
661
<div class="memproto">
662
<table class="memname">
664
<td class="memname">int QwtPlotSpectrogram::rtti </td>
666
<td class="paramname"> </td>
667
<td> ) </td>
668
<td width="100%"> const<code> [virtual]</code></td>
675
<dl class="return" compact><dt><b>Returns:</b></dt><dd>QwtPlotItem::Rtti_PlotSpectrogram </dd></dl>
680
Reimplemented from <a class="el" href="class_qwt_plot_item.html#803613b24e745834b2115ee574dda610">QwtPlotItem</a>.
682
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00152">152</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
685
<a class="anchor" name="e89cede1251d1405e1dd200b68dbc0aa"></a><!-- doxytag: member="QwtPlotSpectrogram::draw" ref="e89cede1251d1405e1dd200b68dbc0aa" args="(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const" -->
686
<div class="memitem">
687
<div class="memproto">
688
<table class="memname">
690
<td class="memname">void QwtPlotSpectrogram::draw </td>
692
<td class="paramtype">QPainter * </td>
693
<td class="paramname"> <em>painter</em>, </td>
696
<td class="paramkey"></td>
698
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
699
<td class="paramname"> <em>xMap</em>, </td>
702
<td class="paramkey"></td>
704
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
705
<td class="paramname"> <em>yMap</em>, </td>
708
<td class="paramkey"></td>
710
<td class="paramtype">const QRect & </td>
711
<td class="paramname"> <em>canvasRect</em></td><td> </td>
716
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
723
Draw the spectrogram.
725
<dl compact><dt><b>Parameters:</b></dt><dd>
726
<table border="0" cellspacing="2" cellpadding="0">
727
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
728
<tr><td valign="top"></td><td valign="top"><em>xMap</em> </td><td>Maps x-values into pixel coordinates. </td></tr>
729
<tr><td valign="top"></td><td valign="top"><em>yMap</em> </td><td>Maps y-values into pixel coordinates. </td></tr>
730
<tr><td valign="top"></td><td valign="top"><em>canvasRect</em> </td><td>Contents rect of the canvas in painter coordinates</td></tr>
733
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#482a82bcf1b9f2a9a75f527063b394a2">setDisplayMode</a>, <a class="el" href="class_qwt_plot_spectrogram.html#b9a6e8cfe81e5d7621a522b685967429">renderImage</a>, <a class="el" href="class_qwt_plot_raster_item.html#a8051353a68ab08b5962b0664e2c89d4">QwtPlotRasterItem::draw</a>, <a class="el" href="class_qwt_plot_spectrogram.html#48f1b2133cb7ca8b443bb25a4c9501ff">drawContourLines</a> </dd></dl>
736
Reimplemented from <a class="el" href="class_qwt_plot_raster_item.html#a8051353a68ab08b5962b0664e2c89d4">QwtPlotRasterItem</a>.
738
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00615">615</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
740
References <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00364">boundingRect()</a>, <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00529">contourRasterSize()</a>, <a class="el" href="qwt__plot__rasteritem_8cpp-source.html#l00229">QwtPlotRasterItem::draw()</a>, <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00566">drawContourLines()</a>, <a class="el" href="qwt__plot__item_8cpp-source.html#l00547">QwtPlotItem::invTransform()</a>, <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00549">renderContourLines()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00522">QwtPlotItem::transform()</a>.
743
<a class="anchor" name="b9a6e8cfe81e5d7621a522b685967429"></a><!-- doxytag: member="QwtPlotSpectrogram::renderImage" ref="b9a6e8cfe81e5d7621a522b685967429" args="(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtDoubleRect &rect) const" -->
744
<div class="memitem">
745
<div class="memproto">
746
<table class="memname">
748
<td class="memname">QImage QwtPlotSpectrogram::renderImage </td>
750
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
751
<td class="paramname"> <em>xMap</em>, </td>
754
<td class="paramkey"></td>
756
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
757
<td class="paramname"> <em>yMap</em>, </td>
760
<td class="paramkey"></td>
762
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
763
<td class="paramname"> <em>area</em></td><td> </td>
768
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
775
Render an image from the data and color map.
777
The area is translated into a rect of the paint device. For each pixel of this rect the intensity is mapped into a color.<p>
778
<dl compact><dt><b>Parameters:</b></dt><dd>
779
<table border="0" cellspacing="2" cellpadding="0">
780
<tr><td valign="top"></td><td valign="top"><em>xMap</em> </td><td>X-Scale Map </td></tr>
781
<tr><td valign="top"></td><td valign="top"><em>yMap</em> </td><td>Y-Scale Map </td></tr>
782
<tr><td valign="top"></td><td valign="top"><em>area</em> </td><td>Area that should be rendered in scale coordinates.</td></tr>
785
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A QImage::Format_Indexed8 or QImage::Format_ARGB32 depending on the color map.</dd></dl>
786
<dl class="see" compact><dt><b>See also:</b></dt><dd>QwtRasterData::intensity(), <a class="el" href="class_qwt_color_map.html#6f8cae09331c9c6dbc11d7cc023e6665">QwtColorMap::rgb()</a>, <a class="el" href="class_qwt_color_map.html#87086a55e99e56bd7f42677826801815">QwtColorMap::colorIndex()</a> </dd></dl>
789
Implements <a class="el" href="class_qwt_plot_raster_item.html#934080bd84c334df24eb50ddfcc1e8db">QwtPlotRasterItem</a>.
791
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00400">400</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
793
References <a class="el" href="qwt__scale__map_8h-source.html#l00163">QwtScaleMap::invTransform()</a>, <a class="el" href="qwt__scale__map_8h-source.html#l00119">QwtScaleMap::p1()</a>, <a class="el" href="qwt__scale__map_8h-source.html#l00127">QwtScaleMap::p2()</a>, <a class="el" href="qwt__scale__map_8h-source.html#l00103">QwtScaleMap::s1()</a>, <a class="el" href="qwt__scale__map_8h-source.html#l00111">QwtScaleMap::s2()</a>, <a class="el" href="qwt__scale__map_8cpp-source.html#l00180">QwtScaleMap::setPaintInterval()</a>, <a class="el" href="qwt__scale__map_8cpp-source.html#l00153">QwtScaleMap::setScaleInterval()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00522">QwtPlotItem::transform()</a>.
796
<a class="anchor" name="635d011aec42598cdfdf55df23078695"></a><!-- doxytag: member="QwtPlotSpectrogram::contourRasterSize" ref="635d011aec42598cdfdf55df23078695" args="(const QwtDoubleRect &, const QRect &) const" -->
797
<div class="memitem">
798
<div class="memproto">
799
<table class="memname">
801
<td class="memname">QSize QwtPlotSpectrogram::contourRasterSize </td>
803
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
804
<td class="paramname"> <em>area</em>, </td>
807
<td class="paramkey"></td>
809
<td class="paramtype">const QRect & </td>
810
<td class="paramname"> <em>rect</em></td><td> </td>
815
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
822
Return the raster to be used by the CONREC contour algorithm.
824
A larger size will improve the precisision of the CONREC algorithm, but will slow down the time that is needed to calculate the lines.<p>
825
The default implementation returns rect.size() / 2 bounded to <a class="el" href="class_qwt_plot_spectrogram.html#b995378221dc8e7bafc93db5dc3d33d1">data()</a>.<a class="el" href="class_qwt_plot_spectrogram.html#be339f781bc38f23dd1691b869a41a13">rasterHint()</a>.<p>
826
<dl compact><dt><b>Parameters:</b></dt><dd>
827
<table border="0" cellspacing="2" cellpadding="0">
828
<tr><td valign="top"></td><td valign="top"><em>area</em> </td><td>Rect, where to calculate the contour lines </td></tr>
829
<tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rect in pixel coordinates, where to paint the contour lines </td></tr>
832
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Raster to be used by the CONREC contour algorithm.</dd></dl>
833
<dl class="note" compact><dt><b>Note:</b></dt><dd>The size will be bounded to rect.size().</dd></dl>
834
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#48f1b2133cb7ca8b443bb25a4c9501ff">drawContourLines</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a> </dd></dl>
837
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00529">529</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
839
References <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00378">rasterHint()</a>.
841
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00615">draw()</a>.
844
<a class="anchor" name="07d413080f75a7d6206785fecca94a2b"></a><!-- doxytag: member="QwtPlotSpectrogram::renderContourLines" ref="07d413080f75a7d6206785fecca94a2b" args="(const QwtDoubleRect &rect, const QSize &raster) const" -->
845
<div class="memitem">
846
<div class="memproto">
847
<table class="memname">
849
<td class="memname"><a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a> QwtPlotSpectrogram::renderContourLines </td>
851
<td class="paramtype">const <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> & </td>
852
<td class="paramname"> <em>rect</em>, </td>
855
<td class="paramkey"></td>
857
<td class="paramtype">const QSize & </td>
858
<td class="paramname"> <em>raster</em></td><td> </td>
863
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
870
Calculate contour lines<p>
871
<dl compact><dt><b>Parameters:</b></dt><dd>
872
<table border="0" cellspacing="2" cellpadding="0">
873
<tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rectangle, where to calculate the contour lines </td></tr>
874
<tr><td valign="top"></td><td valign="top"><em>raster</em> </td><td>Raster, used by the CONREC algorithm</td></tr>
877
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#6295a47575db3023b80eb4ad06032aab">contourLevels</a>, <a class="el" href="class_qwt_plot_spectrogram.html#9cac5e8fbab6e98382e5ec68ac9e4fd8">setConrecAttribute</a>, <a class="el" href="class_qwt_raster_data.html#aa736252a4fa41dec93599a6207124d5">QwtRasterData::contourLines</a> </dd></dl>
880
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00549">549</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
882
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00615">draw()</a>.
885
<a class="anchor" name="48f1b2133cb7ca8b443bb25a4c9501ff"></a><!-- doxytag: member="QwtPlotSpectrogram::drawContourLines" ref="48f1b2133cb7ca8b443bb25a4c9501ff" args="(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtRasterData::ContourLines &lines) const" -->
886
<div class="memitem">
887
<div class="memproto">
888
<table class="memname">
890
<td class="memname">void QwtPlotSpectrogram::drawContourLines </td>
892
<td class="paramtype">QPainter * </td>
893
<td class="paramname"> <em>painter</em>, </td>
896
<td class="paramkey"></td>
898
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
899
<td class="paramname"> <em>xMap</em>, </td>
902
<td class="paramkey"></td>
904
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
905
<td class="paramname"> <em>yMap</em>, </td>
908
<td class="paramkey"></td>
910
<td class="paramtype">const <a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a> & </td>
911
<td class="paramname"> <em>contourLines</em></td><td> </td>
916
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
923
Paint the contour lines<p>
924
<dl compact><dt><b>Parameters:</b></dt><dd>
925
<table border="0" cellspacing="2" cellpadding="0">
926
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
927
<tr><td valign="top"></td><td valign="top"><em>xMap</em> </td><td>Maps x-values into pixel coordinates. </td></tr>
928
<tr><td valign="top"></td><td valign="top"><em>yMap</em> </td><td>Maps y-values into pixel coordinates. </td></tr>
929
<tr><td valign="top"></td><td valign="top"><em>contourLines</em> </td><td>Contour lines</td></tr>
932
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_spectrogram.html#07d413080f75a7d6206785fecca94a2b">renderContourLines</a>, <a class="el" href="class_qwt_plot_spectrogram.html#fd1ebcdd70da66632a996bb57f6102e3">defaultContourPen</a>, <a class="el" href="class_qwt_plot_spectrogram.html#9c5c16fcda0422739c5393e42be5af37">contourPen</a> </dd></dl>
935
Definition at line <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00566">566</a> of file <a class="el" href="qwt__plot__spectrogram_8cpp-source.html">qwt_plot_spectrogram.cpp</a>.
937
References <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00259">contourPen()</a>, <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00243">defaultContourPen()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00424">QwtPainter::drawLine()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.
939
Referenced by <a class="el" href="qwt__plot__spectrogram_8cpp-source.html#l00615">draw()</a>.
942
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:54 2008 for Qwt User's Guide by
943
<a href="http://www.doxygen.org/index.html">
944
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>