<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Qwt User's Guide: QwtLinearColorMap Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Qwt User's Guide <span id="projectnumber">6.0.1</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>QwtLinearColorMap Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="QwtLinearColorMap" --><!-- doxytag: inherits="QwtColorMap" --> <p><a class="el" href="class_qwt_linear_color_map.html" title="QwtLinearColorMap builds a color map from color stops.">QwtLinearColorMap</a> builds a color map from color stops. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="qwt__color__map_8h_source.html">qwt_color_map.h</a>></code></p> <div class="dynheader"> Inheritance diagram for QwtLinearColorMap:</div> <div class="dyncontent"> <div class="center"><img src="class_qwt_linear_color_map__inherit__graph.png" border="0" usemap="#_qwt_linear_color_map_inherit__map" alt="Inheritance graph"/></div> <map name="_qwt_linear_color_map_inherit__map" id="_qwt_linear_color_map_inherit__map"> <area shape="rect" id="node2" href="class_qwt_color_map.html" title="QwtColorMap is used to map values into colors." alt="" coords="23,5,121,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="class_qwt_linear_color_map-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">Format</a> { <br/>   <a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670a663473fd836d9a84fe48ae1755de326a">RGB</a>, <br/>   <a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670a304cb055c004223ca77f1a4cbbf27ea2">Indexed</a> <br/> }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> { <br/>   <a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54a564b5243ab2c5e4c972a6b645234c651">FixedColors</a>, <br/>   <a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54a01770189cb40240f2fe7fe2e6c1523f1">ScaledColors</a> <br/> }</td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#aa7162a034e882e752c15051439bb2c99">addColorStop</a> (double value, const QColor &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_color_map.html#a35f74175e963d18e451a9fd4421ede1f">color</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &, double value) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a3ab5066b01409f58e4ad0425474b1530">color1</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a9fa696fff9ec599f0c305f73345ecab3">color2</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#aa69528213eb7d484466f095c8a9a6efe">colorIndex</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &, double value) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">QVector< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#afaafe752db9de97ec6fba163515f51dd">colorStops</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual QVector< QRgb > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_color_map.html#a4ccc23356e058783071b06dee437b6d7">colorTable</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">Format</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_color_map.html#a436802833ae1d4694f376655bc3d75be">format</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a9ec309df6ec88472a63b14ac2c692c96">mode</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a0ef6a29bb027017aad89a4c4a4b07019">QwtLinearColorMap</a> (<a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>=QwtColorMap::RGB)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#ae591cf441db15a021c25d0b58bfa7a5e">QwtLinearColorMap</a> (const QColor &from, const QColor &to, <a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>=QwtColorMap::RGB)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual QRgb </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#ac031babccc90d8c857c707d0841ba1eb">rgb</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &, double value) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#abfae35c30755c0bbd1447342055e9a13">setColorInterval</a> (const QColor &color1, const QColor &color2)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#afca7397fb6d07d05bab83e83e274a9c2">setMode</a> (<a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">Mode</a>)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a82caa759e44d439aa9866bd03e2e3696">~QwtLinearColorMap</a> ()</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="class_qwt_linear_color_map.html" title="QwtLinearColorMap builds a color map from color stops.">QwtLinearColorMap</a> builds a color map from color stops. </p> <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 according to <a class="el" href="class_qwt_linear_color_map.html#a9ec309df6ec88472a63b14ac2c692c96">mode()</a>. </p> </div><hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="a9e5570790910fa3894887bca7dc5a670"></a><!-- doxytag: member="QwtLinearColorMap::Format" ref="a9e5570790910fa3894887bca7dc5a670" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a><code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Format for color mapping </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_color_map.html#aaed0bb47b6379696c588732348438136">rgb()</a>, <a class="el" href="class_qwt_color_map.html#a762baa2edca8773ec09e0c1c5df2cf04">colorIndex()</a>, <a class="el" href="class_qwt_color_map.html#a4ccc23356e058783071b06dee437b6d7">colorTable()</a> </dd></dl> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="a9e5570790910fa3894887bca7dc5a670a663473fd836d9a84fe48ae1755de326a"></a><!-- doxytag: member="RGB" ref="a9e5570790910fa3894887bca7dc5a670a663473fd836d9a84fe48ae1755de326a" args="" -->RGB</em> </td><td> <p>The map is intended to map into QRgb values. </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a9e5570790910fa3894887bca7dc5a670a304cb055c004223ca77f1a4cbbf27ea2"></a><!-- doxytag: member="Indexed" ref="a9e5570790910fa3894887bca7dc5a670a304cb055c004223ca77f1a4cbbf27ea2" args="" -->Indexed</em> </td><td> <p>The map is intended to map into 8 bit values, that are indices into the color table. </p> </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ac8c5f1991f533b1d25a9a0a0874b7d54"></a><!-- doxytag: member="QwtLinearColorMap::Mode" ref="ac8c5f1991f533b1d25a9a0a0874b7d54" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a></td> </tr> </table> </div> <div class="memdoc"> <p>Mode of color map </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#afca7397fb6d07d05bab83e83e274a9c2" title="Set the mode of the color map.">setMode()</a>, <a class="el" href="class_qwt_linear_color_map.html#a9ec309df6ec88472a63b14ac2c692c96">mode()</a> </dd></dl> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="ac8c5f1991f533b1d25a9a0a0874b7d54a564b5243ab2c5e4c972a6b645234c651"></a><!-- doxytag: member="FixedColors" ref="ac8c5f1991f533b1d25a9a0a0874b7d54a564b5243ab2c5e4c972a6b645234c651" args="" -->FixedColors</em> </td><td> <p>Return the color from the next lower color stop. </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ac8c5f1991f533b1d25a9a0a0874b7d54a01770189cb40240f2fe7fe2e6c1523f1"></a><!-- doxytag: member="ScaledColors" ref="ac8c5f1991f533b1d25a9a0a0874b7d54a01770189cb40240f2fe7fe2e6c1523f1" args="" -->ScaledColors</em> </td><td> <p>Interpolating the colors of the adjacent stops. </p> </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a0ef6a29bb027017aad89a4c4a4b07019"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="a0ef6a29bb027017aad89a4c4a4b07019" args="(QwtColorMap::Format=QwtColorMap::RGB)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtLinearColorMap::QwtLinearColorMap </td> <td>(</td> <td class="paramtype"><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a> </td> <td class="paramname"><em>format</em> = <code>QwtColorMap::RGB</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">format</td><td>Preferred format of the color map </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ae591cf441db15a021c25d0b58bfa7a5e"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="ae591cf441db15a021c25d0b58bfa7a5e" args="(const QColor &from, const QColor &to, QwtColorMap::Format=QwtColorMap::RGB)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtLinearColorMap::QwtLinearColorMap </td> <td>(</td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>color1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>color2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a> </td> <td class="paramname"><em>format</em> = <code>QwtColorMap::RGB</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Build a color map with two stops at 0.0 and 1.0.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">color1</td><td>Color used for the minimum value of the value interval </td></tr> <tr><td class="paramname">color2</td><td>Color used for the maximum value of the value interval </td></tr> <tr><td class="paramname">format</td><td>Preferred format of the coor map </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a82caa759e44d439aa9866bd03e2e3696"></a><!-- doxytag: member="QwtLinearColorMap::~QwtLinearColorMap" ref="a82caa759e44d439aa9866bd03e2e3696" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtLinearColorMap::~QwtLinearColorMap </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aa7162a034e882e752c15051439bb2c99"></a><!-- doxytag: member="QwtLinearColorMap::addColorStop" ref="aa7162a034e882e752c15051439bb2c99" args="(double value, const QColor &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtLinearColorMap::addColorStop </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>color</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a color stop</p> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">value</td><td>Value between [0.0, 1.0] </td></tr> <tr><td class="paramname">color</td><td>Color stop </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a35f74175e963d18e451a9fd4421ede1f"></a><!-- doxytag: member="QwtLinearColorMap::color" ref="a35f74175e963d18e451a9fd4421ede1f" args="(const QwtInterval &, double value) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QColor QwtColorMap::color </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td> <td class="paramname"><em>interval</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [inline, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Map a value into a color</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">interval</td><td>Valid interval for values </td></tr> <tr><td class="paramname">value</td><td>Value</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Color corresponding to value</dd></dl> <dl class="warning"><dt><b>Warning:</b></dt><dd>This method is slow for Indexed color maps. If it is necessary to map many values, its better to get the color table once and find the color using <a class="el" href="class_qwt_color_map.html#a762baa2edca8773ec09e0c1c5df2cf04">colorIndex()</a>. </dd></dl> </div> </div> <a class="anchor" id="a3ab5066b01409f58e4ad0425474b1530"></a><!-- doxytag: member="QwtLinearColorMap::color1" ref="a3ab5066b01409f58e4ad0425474b1530" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QColor QwtLinearColorMap::color1 </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the first color of the color range </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#abfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl> </div> </div> <a class="anchor" id="a9fa696fff9ec599f0c305f73345ecab3"></a><!-- doxytag: member="QwtLinearColorMap::color2" ref="a9fa696fff9ec599f0c305f73345ecab3" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QColor QwtLinearColorMap::color2 </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the second color of the color range </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#abfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl> </div> </div> <a class="anchor" id="aa69528213eb7d484466f095c8a9a6efe"></a><!-- doxytag: member="QwtLinearColorMap::colorIndex" ref="aa69528213eb7d484466f095c8a9a6efe" args="(const QwtInterval &, double value) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned char QwtLinearColorMap::colorIndex </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td> <td class="paramname"><em>interval</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Map a value of a given interval into a color index, between 0 and 255</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">interval</td><td>Range for all values </td></tr> <tr><td class="paramname">value</td><td>Value to map into a color index </td></tr> </table> </dd> </dl> <p>Implements <a class="el" href="class_qwt_color_map.html#a762baa2edca8773ec09e0c1c5df2cf04">QwtColorMap</a>.</p> </div> </div> <a class="anchor" id="afaafe752db9de97ec6fba163515f51dd"></a><!-- doxytag: member="QwtLinearColorMap::colorStops" ref="afaafe752db9de97ec6fba163515f51dd" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QVector< double > QwtLinearColorMap::colorStops </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Return all positions of color stops in increasing order </p> </div> </div> <a class="anchor" id="a4ccc23356e058783071b06dee437b6d7"></a><!-- doxytag: member="QwtLinearColorMap::colorTable" ref="a4ccc23356e058783071b06dee437b6d7" args="(const QwtInterval &) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QVector< QRgb > QwtColorMap::colorTable </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td> <td class="paramname"><em>interval</em></td><td>)</td> <td> const<code> [virtual, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Build and return a color map of 256 colors</p> <p>The color table is needed for rendering indexed images in combination with using <a class="el" href="class_qwt_color_map.html#a762baa2edca8773ec09e0c1c5df2cf04">colorIndex()</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">interval</td><td>Range for the values </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A color table, that can be used for a QImage </dd></dl> </div> </div> <a class="anchor" id="a436802833ae1d4694f376655bc3d75be"></a><!-- doxytag: member="QwtLinearColorMap::format" ref="a436802833ae1d4694f376655bc3d75be" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a> QwtColorMap::format </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>Intended format of the color map </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_color_map.html#a9e5570790910fa3894887bca7dc5a670">Format</a> </dd></dl> </div> </div> <a class="anchor" id="a9ec309df6ec88472a63b14ac2c692c96"></a><!-- doxytag: member="QwtLinearColorMap::mode" ref="a9ec309df6ec88472a63b14ac2c692c96" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a> QwtLinearColorMap::mode </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>Mode of the color map </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#afca7397fb6d07d05bab83e83e274a9c2" title="Set the mode of the color map.">setMode()</a> </dd></dl> </div> </div> <a class="anchor" id="ac031babccc90d8c857c707d0841ba1eb"></a><!-- doxytag: member="QwtLinearColorMap::rgb" ref="ac031babccc90d8c857c707d0841ba1eb" args="(const QwtInterval &, double value) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QRgb QwtLinearColorMap::rgb </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td> <td class="paramname"><em>interval</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Map a value of a given interval into a rgb value</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">interval</td><td>Range for all values </td></tr> <tr><td class="paramname">value</td><td>Value to map into a rgb value </td></tr> </table> </dd> </dl> <p>Implements <a class="el" href="class_qwt_color_map.html#aaed0bb47b6379696c588732348438136">QwtColorMap</a>.</p> </div> </div> <a class="anchor" id="abfae35c30755c0bbd1447342055e9a13"></a><!-- doxytag: member="QwtLinearColorMap::setColorInterval" ref="abfae35c30755c0bbd1447342055e9a13" args="(const QColor &color1, const QColor &color2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtLinearColorMap::setColorInterval </td> <td>(</td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>color1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>color2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the color range</p> <p>Add stops at 0.0 and 1.0.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">color1</td><td>Color used for the minimum value of the value interval </td></tr> <tr><td class="paramname">color2</td><td>Color used for the maximum value of the value interval</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#a3ab5066b01409f58e4ad0425474b1530">color1()</a>, <a class="el" href="class_qwt_linear_color_map.html#a9fa696fff9ec599f0c305f73345ecab3">color2()</a> </dd></dl> </div> </div> <a class="anchor" id="afca7397fb6d07d05bab83e83e274a9c2"></a><!-- doxytag: member="QwtLinearColorMap::setMode" ref="afca7397fb6d07d05bab83e83e274a9c2" args="(Mode)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtLinearColorMap::setMode </td> <td>(</td> <td class="paramtype"><a class="el" href="class_qwt_linear_color_map.html#ac8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> </td> <td class="paramname"><em>mode</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the mode of the color map. </p> <p>FixedColors means the color is calculated from the next lower color stop. ScaledColors means the color is calculated by interpolating the colors of the adjacent stops.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#a9ec309df6ec88472a63b14ac2c692c96">mode()</a> </dd></dl> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>