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: QwtLinearColorMap 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>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>
23
<map name="_qwt_linear_color_map__inherit__map">
24
<area href="class_qwt_color_map.html" shape="rect" coords="26,8,130,32" alt="">
26
<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>
27
<map name="_qwt_linear_color_map__coll__map">
28
<area href="class_qwt_color_map.html" shape="rect" coords="26,8,130,32" alt="">
30
<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>
31
<a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> builds a color map from color stops.
33
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#0f1252586f1a4eac8241b89f0764abba">mode()</a> == FixedColors the color is calculated from the next lower color stop. If <a class="el" href="class_qwt_linear_color_map.html#0f1252586f1a4eac8241b89f0764abba">mode()</a> == ScaledColors the color is calculated by interpolating the colors of the adjacent stops.
37
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">
39
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> { <br>
41
<b>FixedColors</b>,
43
<b>ScaledColors</b>,
45
<b>RotateNeedle</b>,
47
<b>RotateScale</b>
51
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#e591cf441db15a021c25d0b58bfa7a5e">QwtLinearColorMap</a> (const QColor &from, const QColor &to, <a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>=QwtColorMap::RGB)</td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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> &)</td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#82caa759e44d439aa9866bd03e2e3696">~QwtLinearColorMap</a> ()</td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> & </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> &)</td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#9e6effbfb292375a65dddcd654da6006">copy</a> () const</td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </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>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#0f1252586f1a4eac8241b89f0764abba">mode</a> () const</td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval</a> (const QColor &color1, const QColor &color2)</td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#a7162a034e882e752c15051439bb2c99">addColorStop</a> (double value, const QColor &)</td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">QwtArray< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#f7d51a89c66c4d2a9d1c1a700158da82">colorStops</a> () const</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#fc26d903d0bc7a9ff3059eab9bc41c50">color1</a> () const</td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#edf72ce7e3d0059b5a8e6b197a67f796">color2</a> () const</td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QRgb </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#9206d7f75ed0d038d726d2b086e58ed8">rgb</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double value) const</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_linear_color_map.html#70ac8a43518c7f2078ddfbf53e947294">colorIndex</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double value) const</td></tr>
83
<hr><h2>Member Enumeration Documentation</h2>
84
<a class="anchor" name="c8c5f1991f533b1d25a9a0a0874b7d54"></a><!-- doxytag: member="QwtLinearColorMap::Mode" ref="c8c5f1991f533b1d25a9a0a0874b7d54" args="" -->
86
<div class="memproto">
87
<table class="memname">
89
<td class="memname">enum <a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a> </td>
96
Mode of color map <dl class="see" 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#0f1252586f1a4eac8241b89f0764abba">mode()</a> </dd></dl>
99
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>.
102
<hr><h2>Constructor & Destructor Documentation</h2>
103
<a class="anchor" name="0ef6a29bb027017aad89a4c4a4b07019"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="0ef6a29bb027017aad89a4c4a4b07019" args="(QwtColorMap::Format=QwtColorMap::RGB)" -->
104
<div class="memitem">
105
<div class="memproto">
106
<table class="memname">
108
<td class="memname">QwtLinearColorMap::QwtLinearColorMap </td>
110
<td class="paramtype"><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a> </td>
111
<td class="paramname"> <em>format</em> = <code>QwtColorMap::RGB</code> </td>
112
<td> ) </td>
113
<td width="100%"></td>
120
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>
121
<dl compact><dt><b>Parameters:</b></dt><dd>
122
<table border="0" cellspacing="2" cellpadding="0">
123
<tr><td valign="top"></td><td valign="top"><em>format</em> </td><td>Preferred format of the color map </td></tr>
128
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>.
130
References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.
132
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00260">copy()</a>.
135
<a class="anchor" name="e591cf441db15a021c25d0b58bfa7a5e"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="e591cf441db15a021c25d0b58bfa7a5e" args="(const QColor &from, const QColor &to, QwtColorMap::Format=QwtColorMap::RGB)" -->
136
<div class="memitem">
137
<div class="memproto">
138
<table class="memname">
140
<td class="memname">QwtLinearColorMap::QwtLinearColorMap </td>
142
<td class="paramtype">const QColor & </td>
143
<td class="paramname"> <em>color1</em>, </td>
146
<td class="paramkey"></td>
148
<td class="paramtype">const QColor & </td>
149
<td class="paramname"> <em>color2</em>, </td>
152
<td class="paramkey"></td>
154
<td class="paramtype"><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a> </td>
155
<td class="paramname"> <em>format</em> = <code>QwtColorMap::RGB</code></td><td> </td>
160
<td></td><td></td><td width="100%"></td>
167
Build a color map with two stops at 0.0 and 1.0.<p>
168
<dl compact><dt><b>Parameters:</b></dt><dd>
169
<table border="0" cellspacing="2" cellpadding="0">
170
<tr><td valign="top"></td><td valign="top"><em>color1</em> </td><td>Color used for the minimum value of the value interval </td></tr>
171
<tr><td valign="top"></td><td valign="top"><em>color2</em> </td><td>Color used for the maximum value of the value interval </td></tr>
172
<tr><td valign="top"></td><td valign="top"><em>format</em> </td><td>Preferred format of the coor map </td></tr>
177
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>.
179
References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.
182
<a class="anchor" name="bf6693327112639be15c172458c0c653"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="bf6693327112639be15c172458c0c653" args="(const QwtLinearColorMap &)" -->
183
<div class="memitem">
184
<div class="memproto">
185
<table class="memname">
187
<td class="memname">QwtLinearColorMap::QwtLinearColorMap </td>
189
<td class="paramtype">const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> & </td>
190
<td class="paramname"> </td>
191
<td> ) </td>
192
<td width="100%"></td>
203
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>.
206
<a class="anchor" name="82caa759e44d439aa9866bd03e2e3696"></a><!-- doxytag: member="QwtLinearColorMap::~QwtLinearColorMap" ref="82caa759e44d439aa9866bd03e2e3696" args="()" -->
207
<div class="memitem">
208
<div class="memproto">
209
<table class="memname">
211
<td class="memname">QwtLinearColorMap::~QwtLinearColorMap </td>
213
<td class="paramname"> </td>
214
<td> ) </td>
215
<td width="100%"><code> [virtual]</code></td>
226
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>.
229
<hr><h2>Member Function Documentation</h2>
230
<a class="anchor" name="331029567a42610143ec41b22e882143"></a><!-- doxytag: member="QwtLinearColorMap::operator=" ref="331029567a42610143ec41b22e882143" args="(const QwtLinearColorMap &)" -->
231
<div class="memitem">
232
<div class="memproto">
233
<table class="memname">
235
<td class="memname"><a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> & QwtLinearColorMap::operator= </td>
237
<td class="paramtype">const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> & </td>
238
<td class="paramname"> </td>
239
<td> ) </td>
240
<td width="100%"></td>
251
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00251">251</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
253
References <a class="el" href="qwt__color__map_8h-source.html#l00153">d_data</a>.
256
<a class="anchor" name="9e6effbfb292375a65dddcd654da6006"></a><!-- doxytag: member="QwtLinearColorMap::copy" ref="9e6effbfb292375a65dddcd654da6006" args="() const" -->
257
<div class="memitem">
258
<div class="memproto">
259
<table class="memname">
261
<td class="memname"><a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * QwtLinearColorMap::copy </td>
263
<td class="paramname"> </td>
264
<td> ) </td>
265
<td width="100%"> const<code> [virtual]</code></td>
276
Implements <a class="el" href="class_qwt_color_map.html#c21886c4be363557902d24d1224c2a86">QwtColorMap</a>.
278
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00260">260</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
280
References <a class="el" href="qwt__color__map_8cpp-source.html#l00211">QwtLinearColorMap()</a>.
283
<a class="anchor" name="fca7397fb6d07d05bab83e83e274a9c2"></a><!-- doxytag: member="QwtLinearColorMap::setMode" ref="fca7397fb6d07d05bab83e83e274a9c2" args="(Mode)" -->
284
<div class="memitem">
285
<div class="memproto">
286
<table class="memname">
288
<td class="memname">void QwtLinearColorMap::setMode </td>
290
<td class="paramtype"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a> </td>
291
<td class="paramname"> <em>mode</em> </td>
292
<td> ) </td>
293
<td width="100%"></td>
300
Set the mode of the color map.
302
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>
303
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#0f1252586f1a4eac8241b89f0764abba">mode()</a> </dd></dl>
306
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00277">277</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
309
<a class="anchor" name="0f1252586f1a4eac8241b89f0764abba"></a><!-- doxytag: member="QwtLinearColorMap::mode" ref="0f1252586f1a4eac8241b89f0764abba" args="() const" -->
310
<div class="memitem">
311
<div class="memproto">
312
<table class="memname">
314
<td class="memname"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a> QwtLinearColorMap::mode </td>
316
<td class="paramname"> </td>
317
<td> ) </td>
318
<td width="100%"> const</td>
325
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Mode of the color map </dd></dl>
326
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#fca7397fb6d07d05bab83e83e274a9c2">setMode()</a> </dd></dl>
329
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00286">286</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
332
<a class="anchor" name="bfae35c30755c0bbd1447342055e9a13"></a><!-- doxytag: member="QwtLinearColorMap::setColorInterval" ref="bfae35c30755c0bbd1447342055e9a13" args="(const QColor &color1, const QColor &color2)" -->
333
<div class="memitem">
334
<div class="memproto">
335
<table class="memname">
337
<td class="memname">void QwtLinearColorMap::setColorInterval </td>
339
<td class="paramtype">const QColor & </td>
340
<td class="paramname"> <em>color1</em>, </td>
343
<td class="paramkey"></td>
345
<td class="paramtype">const QColor & </td>
346
<td class="paramname"> <em>color2</em></td><td> </td>
351
<td></td><td></td><td width="100%"></td>
358
Set the color range<p>
359
Add stops at 0.0 and 1.0.<p>
360
<dl compact><dt><b>Parameters:</b></dt><dd>
361
<table border="0" cellspacing="2" cellpadding="0">
362
<tr><td valign="top"></td><td valign="top"><em>color1</em> </td><td>Color used for the minimum value of the value interval </td></tr>
363
<tr><td valign="top"></td><td valign="top"><em>color2</em> </td><td>Color used for the maximum value of the value interval</td></tr>
366
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#fc26d903d0bc7a9ff3059eab9bc41c50">color1()</a>, <a class="el" href="class_qwt_linear_color_map.html#edf72ce7e3d0059b5a8e6b197a67f796">color2()</a> </dd></dl>
369
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00301">301</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
371
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00211">QwtLinearColorMap()</a>.
374
<a class="anchor" name="a7162a034e882e752c15051439bb2c99"></a><!-- doxytag: member="QwtLinearColorMap::addColorStop" ref="a7162a034e882e752c15051439bb2c99" args="(double value, const QColor &)" -->
375
<div class="memitem">
376
<div class="memproto">
377
<table class="memname">
379
<td class="memname">void QwtLinearColorMap::addColorStop </td>
381
<td class="paramtype">double </td>
382
<td class="paramname"> <em>value</em>, </td>
385
<td class="paramkey"></td>
387
<td class="paramtype">const QColor & </td>
388
<td class="paramname"> <em>color</em></td><td> </td>
393
<td></td><td></td><td width="100%"></td>
401
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>
402
<dl compact><dt><b>Parameters:</b></dt><dd>
403
<table border="0" cellspacing="2" cellpadding="0">
404
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value between [0.0, 1.0] </td></tr>
405
<tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>Color stop </td></tr>
410
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>.
413
<a class="anchor" name="f7d51a89c66c4d2a9d1c1a700158da82"></a><!-- doxytag: member="QwtLinearColorMap::colorStops" ref="f7d51a89c66c4d2a9d1c1a700158da82" args="() const" -->
414
<div class="memitem">
415
<div class="memproto">
416
<table class="memname">
418
<td class="memname">QwtArray< double > QwtLinearColorMap::colorStops </td>
420
<td class="paramname"> </td>
421
<td> ) </td>
422
<td width="100%"> const</td>
429
Return all positions of color stops in increasing order
431
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>.
434
<a class="anchor" name="fc26d903d0bc7a9ff3059eab9bc41c50"></a><!-- doxytag: member="QwtLinearColorMap::color1" ref="fc26d903d0bc7a9ff3059eab9bc41c50" args="() const" -->
435
<div class="memitem">
436
<div class="memproto">
437
<table class="memname">
439
<td class="memname">QColor QwtLinearColorMap::color1 </td>
441
<td class="paramname"> </td>
442
<td> ) </td>
443
<td width="100%"> const</td>
450
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the first color of the color range </dd></dl>
451
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl>
454
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>.
457
<a class="anchor" name="edf72ce7e3d0059b5a8e6b197a67f796"></a><!-- doxytag: member="QwtLinearColorMap::color2" ref="edf72ce7e3d0059b5a8e6b197a67f796" args="() const" -->
458
<div class="memitem">
459
<div class="memproto">
460
<table class="memname">
462
<td class="memname">QColor QwtLinearColorMap::color2 </td>
464
<td class="paramname"> </td>
465
<td> ) </td>
466
<td width="100%"> const</td>
473
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the second color of the color range </dd></dl>
474
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_linear_color_map.html#bfae35c30755c0bbd1447342055e9a13">setColorInterval()</a> </dd></dl>
477
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>.
480
<a class="anchor" name="9206d7f75ed0d038d726d2b086e58ed8"></a><!-- doxytag: member="QwtLinearColorMap::rgb" ref="9206d7f75ed0d038d726d2b086e58ed8" args="(const QwtDoubleInterval &, double value) const" -->
481
<div class="memitem">
482
<div class="memproto">
483
<table class="memname">
485
<td class="memname">QRgb QwtLinearColorMap::rgb </td>
487
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
488
<td class="paramname"> <em>interval</em>, </td>
491
<td class="paramkey"></td>
493
<td class="paramtype">double </td>
494
<td class="paramname"> <em>value</em></td><td> </td>
499
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
506
Map a value of a given interval into a rgb value<p>
507
<dl compact><dt><b>Parameters:</b></dt><dd>
508
<table border="0" cellspacing="2" cellpadding="0">
509
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Range for all values </td></tr>
510
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value to map into a rgb value </td></tr>
515
Implements <a class="el" href="class_qwt_color_map.html#6f8cae09331c9c6dbc11d7cc023e6665">QwtColorMap</a>.
517
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00357">357</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
519
References <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>.
522
<a class="anchor" name="70ac8a43518c7f2078ddfbf53e947294"></a><!-- doxytag: member="QwtLinearColorMap::colorIndex" ref="70ac8a43518c7f2078ddfbf53e947294" args="(const QwtDoubleInterval &, double value) const" -->
523
<div class="memitem">
524
<div class="memproto">
525
<table class="memname">
527
<td class="memname">unsigned char QwtLinearColorMap::colorIndex </td>
529
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
530
<td class="paramname"> <em>interval</em>, </td>
533
<td class="paramkey"></td>
535
<td class="paramtype">double </td>
536
<td class="paramname"> <em>value</em></td><td> </td>
541
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
548
Map a value of a given interval into a color index, between 0 and 255<p>
549
<dl compact><dt><b>Parameters:</b></dt><dd>
550
<table border="0" cellspacing="2" cellpadding="0">
551
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Range for all values </td></tr>
552
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value to map into a color index </td></tr>
557
Implements <a class="el" href="class_qwt_color_map.html#87086a55e99e56bd7f42677826801815">QwtColorMap</a>.
559
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00375">375</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
561
References <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>.
564
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:38 2009 for Qwt User's Guide by
565
<a href="http://www.doxygen.org/index.html">
566
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>