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

📄 class_qwt_linear_color_map.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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: QwtLinearColorMap 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>QwtLinearColorMap Class Reference</h1><!-- doxytag: class="QwtLinearColorMap" --><!-- doxytag: inherits="QwtColorMap" -->Inheritance diagram for QwtLinearColorMap:<p><center><img src="class_qwt_linear_color_map__inherit__graph.png" border="0" usemap="#_qwt_linear_color_map__inherit__map" alt="Inheritance graph"></center><map name="_qwt_linear_color_map__inherit__map"><area href="class_qwt_color_map.html" shape="rect" coords="24,8,128,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtLinearColorMap:<p><center><img src="class_qwt_linear_color_map__coll__graph.png" border="0" usemap="#_qwt_linear_color_map__coll__map" alt="Collaboration graph"></center><map name="_qwt_linear_color_map__coll__map"><area href="class_qwt_color_map.html" shape="rect" coords="24,8,128,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_linear_color_map-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2><a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> builds a color map from color stops. <p>A color stop is a color at a specific position. The valid range for the positions is [0.0, 1.0]. When mapping a value into a color it is translated into this interval. If <a class="el" href="class_qwt_linear_color_map.html#9ec309df6ec88472a63b14ac2c692c96">mode()</a> == FixedColors the color is calculated from the next lower color stop. If <a class="el" href="class_qwt_linear_color_map.html#9ec309df6ec88472a63b14ac2c692c96">mode()</a> == ScaledColors the color is calculated by interpolating the colors of the adjacent stops. <p><p>Definition at line <a class="el" href="qwt__color__map_8h-source.html#l00111">111</a> of file <a class="el" href="qwt__color__map_8h-source.html">qwt_color_map.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_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> { <br>&nbsp;&nbsp;<b>FixedColors</b>, <br>&nbsp;&nbsp;<b>ScaledColors</b><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_linear_color_map.html#0ef6a29bb027017aad89a4c4a4b07019">QwtLinearColorMap</a> (<a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>=QwtColorMap::RGB)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#e591cf441db15a021c25d0b58bfa7a5e">QwtLinearColorMap</a> (const QColor &amp;from, const QColor &amp;to, <a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>=QwtColorMap::RGB)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#bf6693327112639be15c172458c0c653">QwtLinearColorMap</a> (const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;)</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_linear_color_map.html#82caa759e44d439aa9866bd03e2e3696">~QwtLinearColorMap</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#331029567a42610143ec41b22e882143">operator=</a> (const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#ce66f2146c718e450878e164a727c7a8">copy</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_linear_color_map.html#fca7397fb6d07d05bab83e83e274a9c2">setMode</a> (<a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a>)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#9ec309df6ec88472a63b14ac2c692c96">mode</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_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval</a> (const QColor &amp;color1, const QColor &amp;color2)</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_linear_color_map.html#a7162a034e882e752c15051439bb2c99">addColorStop</a> (double value, const QColor &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtArray&lt; double &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#af8dce1941b5792146faa92db34d2592">colorStops</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QColor&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#3ab5066b01409f58e4ad0425474b1530">color1</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QColor&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#9fa696fff9ec599f0c305f73345ecab3">color2</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QRgb&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#db056bd9487fde980a85da8ea5ec6188">rgb</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;, double value) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#cdd4288a6187348cba916fc7dd1d750b">colorIndex</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;, double value) const </td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="c8c5f1991f533b1d25a9a0a0874b7d54"></a><!-- doxytag: member="QwtLinearColorMap::Mode" ref="c8c5f1991f533b1d25a9a0a0874b7d54" 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_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Mode of color map <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#fca7397fb6d07d05bab83e83e274a9c2">setMode()</a>, <a class="el" href="class_qwt_linear_color_map.html#9ec309df6ec88472a63b14ac2c692c96">mode()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__color__map_8h-source.html#l00118">118</a> of file <a class="el" href="qwt__color__map_8h-source.html">qwt_color_map.h</a>.    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="0ef6a29bb027017aad89a4c4a4b07019"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="0ef6a29bb027017aad89a4c4a4b07019" args="(QwtColorMap::Format=QwtColorMap::RGB)" --><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">QwtLinearColorMap::QwtLinearColorMap           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>format</em> = <code>QwtColorMap::RGB</code>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Build a color map with two stops at 0.0 and 1.0. The color at 0.0 is Qt::blue, at 1.0 it is Qt::yellow.<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>format</em>&nbsp;</td><td>Preferred format of the color map </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00211">211</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.<p>References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.<p>Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00260">copy()</a>.    </td>  </tr></table><a class="anchor" name="e591cf441db15a021c25d0b58bfa7a5e"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="e591cf441db15a021c25d0b58bfa7a5e" args="(const QColor &amp;from, const QColor &amp;to, QwtColorMap::Format=QwtColorMap::RGB)" --><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">QwtLinearColorMap::QwtLinearColorMap           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QColor &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>color1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QColor &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>color2</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>&nbsp;</td>          <td class="mdname" nowrap> <em>format</em> = <code>QwtColorMap::RGB</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Build a color map with two stops at 0.0 and 1.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>color1</em>&nbsp;</td><td>Color used for the minimum value of the value interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>color2</em>&nbsp;</td><td>Color used for the maximum value of the value interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>Preferred format of the coor map </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00235">235</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.<p>References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.    </td>  </tr></table><a class="anchor" name="bf6693327112639be15c172458c0c653"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="bf6693327112639be15c172458c0c653" args="(const QwtLinearColorMap &amp;)" --><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">QwtLinearColorMap::QwtLinearColorMap           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Copy constructor. <p><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00221">221</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>

⌨️ 快捷键说明

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