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

📄 class_qwt_linear_color_map.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  </tr></table><a class="anchor" name="82caa759e44d439aa9866bd03e2e3696"></a><!-- doxytag: member="QwtLinearColorMap::~QwtLinearColorMap" ref="82caa759e44d439aa9866bd03e2e3696" 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">QwtLinearColorMap::~QwtLinearColorMap           </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__color__map_8cpp-source.html#l00245">245</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a7162a034e882e752c15051439bb2c99"></a><!-- doxytag: member="QwtLinearColorMap::addColorStop" ref="a7162a034e882e752c15051439bb2c99" args="(double value, const QColor &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">void QwtLinearColorMap::addColorStop           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>value</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>color</em></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>Add a color stop<p>The value has to be in the range [0.0, 1.0]. F.e. a stop at position 17.0 for a range [10.0,20.0] must be passed as: (17.0 - 10.0) / (20.0 - 10.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>value</em>&nbsp;</td><td>Value between [0.0, 1.0] </td></tr>    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>Color stop </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00319">319</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>  </tr></table><a class="anchor" name="3ab5066b01409f58e4ad0425474b1530"></a><!-- doxytag: member="QwtLinearColorMap::color1" ref="3ab5066b01409f58e4ad0425474b1530" 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">QColor QwtLinearColorMap::color1           </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</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>the first color of the color range </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00337">337</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>  </tr></table><a class="anchor" name="9fa696fff9ec599f0c305f73345ecab3"></a><!-- doxytag: member="QwtLinearColorMap::color2" ref="9fa696fff9ec599f0c305f73345ecab3" 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">QColor QwtLinearColorMap::color2           </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</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>the second color of the color range </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00346">346</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>  </tr></table><a class="anchor" name="cdd4288a6187348cba916fc7dd1d750b"></a><!-- doxytag: member="QwtLinearColorMap::colorIndex" ref="cdd4288a6187348cba916fc7dd1d750b" args="(const QwtDoubleInterval &amp;, double value) 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">unsigned char QwtLinearColorMap::colorIndex           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>interval</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>value</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Map a value of a given interval into a color index, between 0 and 255<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>interval</em>&nbsp;</td><td>Range for all values </td></tr>    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value to map into a color index </td></tr>  </table></dl><p>Implements <a class="el" href="class_qwt_color_map.html#3b5be7f953330d308eef24351dfa789b">QwtColorMap</a>.<p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00370">370</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__double__interval_8h-source.html#l00200">QwtDoubleInterval::isValid()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00134">QwtDoubleInterval::maxValue()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00128">QwtDoubleInterval::minValue()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>.    </td>  </tr></table><a class="anchor" name="af8dce1941b5792146faa92db34d2592"></a><!-- doxytag: member="QwtLinearColorMap::colorStops" ref="af8dce1941b5792146faa92db34d2592" 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">QwtArray&lt; double &gt; QwtLinearColorMap::colorStops           </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</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return all positions of color stops in increasing order <p>Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00328">328</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.    </td>  </tr></table><a class="anchor" name="ce66f2146c718e450878e164a727c7a8"></a><!-- doxytag: member="QwtLinearColorMap::copy" ref="ce66f2146c718e450878e164a727c7a8" 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"><a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * QwtLinearColorMap::copy           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>

⌨️ 快捷键说明

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