⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_plot_spectrogram.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User&apos;s Guide: QwtPlotSpectrogram Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><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><map name="_qwt_plot_spectrogram__inherit__map"><area href="class_qwt_plot_raster_item.html" shape="rect" coords="12,83,145,107" alt=""><area href="class_qwt_plot_item.html" shape="rect" coords="32,8,125,32" alt=""></map><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><map name="_qwt_plot_spectrogram__coll__map"><area href="class_qwt_plot_raster_item.html" shape="rect" coords="12,83,145,107" alt=""><area href="class_qwt_plot_item.html" shape="rect" coords="32,8,125,32" alt=""></map><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>A plot item, which displays a spectrogram. <p>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>In ContourMode contour lines are painted for the contour levels.<p><div align="center"><img src="spectrogram3.png" alt="spectrogram3.png"></div><p><dl 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><p><p>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"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">DisplayMode</a> { <br>&nbsp;&nbsp;<b>ImageMode</b> =  1, <br>&nbsp;&nbsp;<b>ContourMode</b> =  2<br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#e90c0431be329ecbefc7ed9ac77f5ed6">QwtPlotSpectrogram</a> (const QString &amp;title=QString::null)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#e76415d290cf4a512d07a17260b7a84a">~QwtPlotSpectrogram</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</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><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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> &amp;data)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_raster_data.html">QwtRasterData</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#459af4973da43510b27d57494770fb14">data</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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> &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#ad8de9bc57b7e3e7366a67d55ad8e012">colorMap</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QwtDoubleRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#fb7eb7696bacd9235c5aeece2a652659">boundingRect</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#4e59ddce72db5df3d0be3986e74ab1f7">rasterHint</a> (const QwtDoubleRect &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#fa3dea62acc8e5607e84bff8f50804b8">setDefaultContourPen</a> (const QPen &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QPen&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#0b5964a44f4c0ed0139681c6873ada73">defaultContourPen</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QPen&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#9c5c16fcda0422739c5393e42be5af37">contourPen</a> (double level) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#b25b1bf7c653aae8b0b7121c1b5855f0">testConrecAttribute</a> (<a class="el" href="class_qwt_raster_data.html#8be376c4015dcb4adc207316bccf1140">QwtRasterData::ConrecAttribute</a>) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#6703dd9e8806258cd8544f90a735e459">setContourLevels</a> (const QwtValueList &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtValueList&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#235c93eb3ca7e6d4a669330c39fdb0f1">contourLevels</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#01197466f530633759337bbb7b8f7504">rtti</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#b76245f919a08375b1f975d507e2afea">draw</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const QRect &amp;rect) const </td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QImage&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#698a7039b51fa259c39bd93a64743eea">renderImage</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const QwtDoubleRect &amp;rect) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#41e6db9057d6c69f45f0556693e50502">contourRasterSize</a> (const QwtDoubleRect &amp;, const QRect &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#bb0a5d6617c834016c3034e7a4e1396f">renderContourLines</a> (const QwtDoubleRect &amp;rect, const QSize &amp;raster) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_spectrogram.html#ebd2c5ee80b3131138d4a55096962912">drawContourLines</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_raster_data.html#dc6679160a229992f0870a2b784985f3">QwtRasterData::ContourLines</a> &amp;lines) const </td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="7f4904fe68b442d0f93040ea1fa1d062"></a><!-- doxytag: member="QwtPlotSpectrogram::DisplayMode" ref="7f4904fe68b442d0f93040ea1fa1d062" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_plot_spectrogram.html#7f4904fe68b442d0f93040ea1fa1d062">QwtPlotSpectrogram::DisplayMode</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The display mode controls how the raster data will be represented.<ul><li>ImageMode<br> The values are mapped to colors using a color map.</li><li>ContourMode<br> The data is displayed using contour lines</li></ul><p>When both modes are enabled the contour lines are painted on top of the spectrogram. The default setting enables ImageMode.<p><dl 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><p>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>.    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="e90c0431be329ecbefc7ed9ac77f5ed6"></a><!-- doxytag: member="QwtPlotSpectrogram::QwtPlotSpectrogram" ref="e90c0431be329ecbefc7ed9ac77f5ed6" args="(const QString &amp;title=QString::null)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtPlotSpectrogram::QwtPlotSpectrogram           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QString &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>title</em> = <code>QString::null</code>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [explicit]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the following item attributes:<ul><li>QwtPlotItem::AutoScale: true</li><li>QwtPlotItem::Legend: false</li></ul><p>The z value is initialized by 8.0.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>title</em>&nbsp;</td><td>Title</td></tr>  </table></dl><dl 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><p>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>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00184">QwtPlotItem::setItemAttribute()</a>, and <a class="el" href="qwt__plot__item_8cpp-source.html#l00126">QwtPlotItem::setZ()</a>.    </td>  </tr></table><a class="anchor" name="e76415d290cf4a512d07a17260b7a84a"></a><!-- doxytag: member="QwtPlotSpectrogram::~QwtPlotSpectrogram" ref="e76415d290cf4a512d07a17260b7a84a" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtPlotSpectrogram::~QwtPlotSpectrogram           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor. <p><p>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>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="fb7eb7696bacd9235c5aeece2a652659"></a><!-- doxytag: member="QwtPlotSpectrogram::boundingRect" ref="fb7eb7696bacd9235c5aeece2a652659" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtDoubleRect QwtPlotSpectrogram::boundingRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -