~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.1/doc/html/class_qwt_linear_color_map.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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&apos;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">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.5.0 -->
8
 
<div class="tabs">
9
 
  <ul>
10
 
    <li><a href="index.html"><span>Main&nbsp;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&nbsp;Pages</span></a></li>
14
 
  </ul></div>
15
 
<div class="tabs">
16
 
  <ul>
17
 
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
18
 
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
19
 
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
20
 
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
21
 
  </ul></div>
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="">
25
 
</map>
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="">
29
 
</map>
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. 
32
 
<p>
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. 
34
 
<p>
35
 
 
36
 
<p>
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">
38
 
<tr><td></td></tr>
39
 
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
40
 
<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>
41
 
&nbsp;&nbsp;<b>FixedColors</b>, 
42
 
<br>
43
 
&nbsp;&nbsp;<b>ScaledColors</b>, 
44
 
<br>
45
 
&nbsp;&nbsp;<b>RotateNeedle</b>, 
46
 
<br>
47
 
&nbsp;&nbsp;<b>RotateScale</b>
48
 
<br>
49
 
 }</td></tr>
50
 
 
51
 
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
52
 
<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>
53
 
 
54
 
<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>
55
 
 
56
 
<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>
57
 
 
58
 
<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>
59
 
 
60
 
<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>
61
 
 
62
 
<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#9e6effbfb292375a65dddcd654da6006">copy</a> () const</td></tr>
63
 
 
64
 
<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>
65
 
 
66
 
<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#0f1252586f1a4eac8241b89f0764abba">mode</a> () const</td></tr>
67
 
 
68
 
<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>
69
 
 
70
 
<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>
71
 
 
72
 
<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#f7d51a89c66c4d2a9d1c1a700158da82">colorStops</a> () const</td></tr>
73
 
 
74
 
<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#fc26d903d0bc7a9ff3059eab9bc41c50">color1</a> () const</td></tr>
75
 
 
76
 
<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#edf72ce7e3d0059b5a8e6b197a67f796">color2</a> () const</td></tr>
77
 
 
78
 
<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#9206d7f75ed0d038d726d2b086e58ed8">rgb</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;, double value) const</td></tr>
79
 
 
80
 
<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#70ac8a43518c7f2078ddfbf53e947294">colorIndex</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;, double value) const</td></tr>
81
 
 
82
 
</table>
83
 
<hr><h2>Member Enumeration Documentation</h2>
84
 
<a class="anchor" name="c8c5f1991f533b1d25a9a0a0874b7d54"></a><!-- doxytag: member="QwtLinearColorMap::Mode" ref="c8c5f1991f533b1d25a9a0a0874b7d54" args="" -->
85
 
<div class="memitem">
86
 
<div class="memproto">
87
 
      <table class="memname">
88
 
        <tr>
89
 
          <td class="memname">enum <a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a>          </td>
90
 
        </tr>
91
 
      </table>
92
 
</div>
93
 
<div class="memdoc">
94
 
 
95
 
<p>
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>
97
 
 
98
 
<p>
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>.
100
 
</div>
101
 
</div><p>
102
 
<hr><h2>Constructor &amp; 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">
107
 
        <tr>
108
 
          <td class="memname">QwtLinearColorMap::QwtLinearColorMap           </td>
109
 
          <td>(</td>
110
 
          <td class="paramtype"><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>&nbsp;</td>
111
 
          <td class="paramname"> <em>format</em> = <code>QwtColorMap::RGB</code>          </td>
112
 
          <td>&nbsp;)&nbsp;</td>
113
 
          <td width="100%"></td>
114
 
        </tr>
115
 
      </table>
116
 
</div>
117
 
<div class="memdoc">
118
 
 
119
 
<p>
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>&nbsp;</td><td>Preferred format of the color map </td></tr>
124
 
  </table>
125
 
</dl>
126
 
 
127
 
<p>
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>.
129
 
<p>
130
 
References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.
131
 
<p>
132
 
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00260">copy()</a>.
133
 
</div>
134
 
</div><p>
135
 
<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)" -->
136
 
<div class="memitem">
137
 
<div class="memproto">
138
 
      <table class="memname">
139
 
        <tr>
140
 
          <td class="memname">QwtLinearColorMap::QwtLinearColorMap           </td>
141
 
          <td>(</td>
142
 
          <td class="paramtype">const QColor &amp;&nbsp;</td>
143
 
          <td class="paramname"> <em>color1</em>, </td>
144
 
        </tr>
145
 
        <tr>
146
 
          <td class="paramkey"></td>
147
 
          <td></td>
148
 
          <td class="paramtype">const QColor &amp;&nbsp;</td>
149
 
          <td class="paramname"> <em>color2</em>, </td>
150
 
        </tr>
151
 
        <tr>
152
 
          <td class="paramkey"></td>
153
 
          <td></td>
154
 
          <td class="paramtype"><a class="el" href="class_qwt_color_map.html#9e5570790910fa3894887bca7dc5a670">QwtColorMap::Format</a>&nbsp;</td>
155
 
          <td class="paramname"> <em>format</em> = <code>QwtColorMap::RGB</code></td><td>&nbsp;</td>
156
 
        </tr>
157
 
        <tr>
158
 
          <td></td>
159
 
          <td>)</td>
160
 
          <td></td><td></td><td width="100%"></td>
161
 
        </tr>
162
 
      </table>
163
 
</div>
164
 
<div class="memdoc">
165
 
 
166
 
<p>
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>&nbsp;</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>&nbsp;</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>&nbsp;</td><td>Preferred format of the coor map </td></tr>
173
 
  </table>
174
 
</dl>
175
 
 
176
 
<p>
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>.
178
 
<p>
179
 
References <a class="el" href="qwt__color__map_8cpp-source.html#l00301">setColorInterval()</a>.
180
 
</div>
181
 
</div><p>
182
 
<a class="anchor" name="bf6693327112639be15c172458c0c653"></a><!-- doxytag: member="QwtLinearColorMap::QwtLinearColorMap" ref="bf6693327112639be15c172458c0c653" args="(const QwtLinearColorMap &amp;)" -->
183
 
<div class="memitem">
184
 
<div class="memproto">
185
 
      <table class="memname">
186
 
        <tr>
187
 
          <td class="memname">QwtLinearColorMap::QwtLinearColorMap           </td>
188
 
          <td>(</td>
189
 
          <td class="paramtype">const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;&nbsp;</td>
190
 
          <td class="paramname">          </td>
191
 
          <td>&nbsp;)&nbsp;</td>
192
 
          <td width="100%"></td>
193
 
        </tr>
194
 
      </table>
195
 
</div>
196
 
<div class="memdoc">
197
 
 
198
 
<p>
199
 
Copy constructor. 
200
 
<p>
201
 
 
202
 
<p>
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>.
204
 
</div>
205
 
</div><p>
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">
210
 
        <tr>
211
 
          <td class="memname">QwtLinearColorMap::~QwtLinearColorMap           </td>
212
 
          <td>(</td>
213
 
          <td class="paramname">          </td>
214
 
          <td>&nbsp;)&nbsp;</td>
215
 
          <td width="100%"><code> [virtual]</code></td>
216
 
        </tr>
217
 
      </table>
218
 
</div>
219
 
<div class="memdoc">
220
 
 
221
 
<p>
222
 
Destructor. 
223
 
<p>
224
 
 
225
 
<p>
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>.
227
 
</div>
228
 
</div><p>
229
 
<hr><h2>Member Function Documentation</h2>
230
 
<a class="anchor" name="331029567a42610143ec41b22e882143"></a><!-- doxytag: member="QwtLinearColorMap::operator=" ref="331029567a42610143ec41b22e882143" args="(const QwtLinearColorMap &amp;)" -->
231
 
<div class="memitem">
232
 
<div class="memproto">
233
 
      <table class="memname">
234
 
        <tr>
235
 
          <td class="memname"><a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp; QwtLinearColorMap::operator=           </td>
236
 
          <td>(</td>
237
 
          <td class="paramtype">const <a class="el" href="class_qwt_linear_color_map.html">QwtLinearColorMap</a> &amp;&nbsp;</td>
238
 
          <td class="paramname">          </td>
239
 
          <td>&nbsp;)&nbsp;</td>
240
 
          <td width="100%"></td>
241
 
        </tr>
242
 
      </table>
243
 
</div>
244
 
<div class="memdoc">
245
 
 
246
 
<p>
247
 
Assignment operator. 
248
 
<p>
249
 
 
250
 
<p>
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>.
252
 
<p>
253
 
References <a class="el" href="qwt__color__map_8h-source.html#l00153">d_data</a>.
254
 
</div>
255
 
</div><p>
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">
260
 
        <tr>
261
 
          <td class="memname"><a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * QwtLinearColorMap::copy           </td>
262
 
          <td>(</td>
263
 
          <td class="paramname">          </td>
264
 
          <td>&nbsp;)&nbsp;</td>
265
 
          <td width="100%"> const<code> [virtual]</code></td>
266
 
        </tr>
267
 
      </table>
268
 
</div>
269
 
<div class="memdoc">
270
 
 
271
 
<p>
272
 
Clone the color map. 
273
 
<p>
274
 
 
275
 
<p>
276
 
Implements <a class="el" href="class_qwt_color_map.html#c21886c4be363557902d24d1224c2a86">QwtColorMap</a>.
277
 
<p>
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>.
279
 
<p>
280
 
References <a class="el" href="qwt__color__map_8cpp-source.html#l00211">QwtLinearColorMap()</a>.
281
 
</div>
282
 
</div><p>
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">
287
 
        <tr>
288
 
          <td class="memname">void QwtLinearColorMap::setMode           </td>
289
 
          <td>(</td>
290
 
          <td class="paramtype"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">Mode</a>&nbsp;</td>
291
 
          <td class="paramname"> <em>mode</em>          </td>
292
 
          <td>&nbsp;)&nbsp;</td>
293
 
          <td width="100%"></td>
294
 
        </tr>
295
 
      </table>
296
 
</div>
297
 
<div class="memdoc">
298
 
 
299
 
<p>
300
 
Set the mode of the color map. 
301
 
<p>
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>
304
 
 
305
 
<p>
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>.
307
 
</div>
308
 
</div><p>
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">
313
 
        <tr>
314
 
          <td class="memname"><a class="el" href="class_qwt_linear_color_map.html#c8c5f1991f533b1d25a9a0a0874b7d54">QwtLinearColorMap::Mode</a> QwtLinearColorMap::mode           </td>
315
 
          <td>(</td>
316
 
          <td class="paramname">          </td>
317
 
          <td>&nbsp;)&nbsp;</td>
318
 
          <td width="100%"> const</td>
319
 
        </tr>
320
 
      </table>
321
 
</div>
322
 
<div class="memdoc">
323
 
 
324
 
<p>
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>
327
 
 
328
 
<p>
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>.
330
 
</div>
331
 
</div><p>
332
 
<a class="anchor" name="bfae35c30755c0bbd1447342055e9a13"></a><!-- doxytag: member="QwtLinearColorMap::setColorInterval" ref="bfae35c30755c0bbd1447342055e9a13" args="(const QColor &amp;color1, const QColor &amp;color2)" -->
333
 
<div class="memitem">
334
 
<div class="memproto">
335
 
      <table class="memname">
336
 
        <tr>
337
 
          <td class="memname">void QwtLinearColorMap::setColorInterval           </td>
338
 
          <td>(</td>
339
 
          <td class="paramtype">const QColor &amp;&nbsp;</td>
340
 
          <td class="paramname"> <em>color1</em>, </td>
341
 
        </tr>
342
 
        <tr>
343
 
          <td class="paramkey"></td>
344
 
          <td></td>
345
 
          <td class="paramtype">const QColor &amp;&nbsp;</td>
346
 
          <td class="paramname"> <em>color2</em></td><td>&nbsp;</td>
347
 
        </tr>
348
 
        <tr>
349
 
          <td></td>
350
 
          <td>)</td>
351
 
          <td></td><td></td><td width="100%"></td>
352
 
        </tr>
353
 
      </table>
354
 
</div>
355
 
<div class="memdoc">
356
 
 
357
 
<p>
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>&nbsp;</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>&nbsp;</td><td>Color used for the maximum value of the value interval</td></tr>
364
 
  </table>
365
 
</dl>
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>
367
 
 
368
 
<p>
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>.
370
 
<p>
371
 
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00211">QwtLinearColorMap()</a>.
372
 
</div>
373
 
</div><p>
374
 
<a class="anchor" name="a7162a034e882e752c15051439bb2c99"></a><!-- doxytag: member="QwtLinearColorMap::addColorStop" ref="a7162a034e882e752c15051439bb2c99" args="(double value, const QColor &amp;)" -->
375
 
<div class="memitem">
376
 
<div class="memproto">
377
 
      <table class="memname">
378
 
        <tr>
379
 
          <td class="memname">void QwtLinearColorMap::addColorStop           </td>
380
 
          <td>(</td>
381
 
          <td class="paramtype">double&nbsp;</td>
382
 
          <td class="paramname"> <em>value</em>, </td>
383
 
        </tr>
384
 
        <tr>
385
 
          <td class="paramkey"></td>
386
 
          <td></td>
387
 
          <td class="paramtype">const QColor &amp;&nbsp;</td>
388
 
          <td class="paramname"> <em>color</em></td><td>&nbsp;</td>
389
 
        </tr>
390
 
        <tr>
391
 
          <td></td>
392
 
          <td>)</td>
393
 
          <td></td><td></td><td width="100%"></td>
394
 
        </tr>
395
 
      </table>
396
 
</div>
397
 
<div class="memdoc">
398
 
 
399
 
<p>
400
 
Add a color stop<p>
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>&nbsp;</td><td>Value between [0.0, 1.0] </td></tr>
405
 
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>Color stop </td></tr>
406
 
  </table>
407
 
</dl>
408
 
 
409
 
<p>
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>.
411
 
</div>
412
 
</div><p>
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">
417
 
        <tr>
418
 
          <td class="memname">QwtArray&lt; double &gt; QwtLinearColorMap::colorStops           </td>
419
 
          <td>(</td>
420
 
          <td class="paramname">          </td>
421
 
          <td>&nbsp;)&nbsp;</td>
422
 
          <td width="100%"> const</td>
423
 
        </tr>
424
 
      </table>
425
 
</div>
426
 
<div class="memdoc">
427
 
 
428
 
<p>
429
 
Return all positions of color stops in increasing order 
430
 
<p>
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>.
432
 
</div>
433
 
</div><p>
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">
438
 
        <tr>
439
 
          <td class="memname">QColor QwtLinearColorMap::color1           </td>
440
 
          <td>(</td>
441
 
          <td class="paramname">          </td>
442
 
          <td>&nbsp;)&nbsp;</td>
443
 
          <td width="100%"> const</td>
444
 
        </tr>
445
 
      </table>
446
 
</div>
447
 
<div class="memdoc">
448
 
 
449
 
<p>
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>
452
 
 
453
 
<p>
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>.
455
 
</div>
456
 
</div><p>
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">
461
 
        <tr>
462
 
          <td class="memname">QColor QwtLinearColorMap::color2           </td>
463
 
          <td>(</td>
464
 
          <td class="paramname">          </td>
465
 
          <td>&nbsp;)&nbsp;</td>
466
 
          <td width="100%"> const</td>
467
 
        </tr>
468
 
      </table>
469
 
</div>
470
 
<div class="memdoc">
471
 
 
472
 
<p>
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>
475
 
 
476
 
<p>
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>.
478
 
</div>
479
 
</div><p>
480
 
<a class="anchor" name="9206d7f75ed0d038d726d2b086e58ed8"></a><!-- doxytag: member="QwtLinearColorMap::rgb" ref="9206d7f75ed0d038d726d2b086e58ed8" args="(const QwtDoubleInterval &amp;, double value) const" -->
481
 
<div class="memitem">
482
 
<div class="memproto">
483
 
      <table class="memname">
484
 
        <tr>
485
 
          <td class="memname">QRgb QwtLinearColorMap::rgb           </td>
486
 
          <td>(</td>
487
 
          <td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td>
488
 
          <td class="paramname"> <em>interval</em>, </td>
489
 
        </tr>
490
 
        <tr>
491
 
          <td class="paramkey"></td>
492
 
          <td></td>
493
 
          <td class="paramtype">double&nbsp;</td>
494
 
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
495
 
        </tr>
496
 
        <tr>
497
 
          <td></td>
498
 
          <td>)</td>
499
 
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
500
 
        </tr>
501
 
      </table>
502
 
</div>
503
 
<div class="memdoc">
504
 
 
505
 
<p>
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>&nbsp;</td><td>Range for all values </td></tr>
510
 
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value to map into a rgb value </td></tr>
511
 
  </table>
512
 
</dl>
513
 
 
514
 
<p>
515
 
Implements <a class="el" href="class_qwt_color_map.html#6f8cae09331c9c6dbc11d7cc023e6665">QwtColorMap</a>.
516
 
<p>
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>.
518
 
<p>
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>.
520
 
</div>
521
 
</div><p>
522
 
<a class="anchor" name="70ac8a43518c7f2078ddfbf53e947294"></a><!-- doxytag: member="QwtLinearColorMap::colorIndex" ref="70ac8a43518c7f2078ddfbf53e947294" args="(const QwtDoubleInterval &amp;, double value) const" -->
523
 
<div class="memitem">
524
 
<div class="memproto">
525
 
      <table class="memname">
526
 
        <tr>
527
 
          <td class="memname">unsigned char QwtLinearColorMap::colorIndex           </td>
528
 
          <td>(</td>
529
 
          <td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td>
530
 
          <td class="paramname"> <em>interval</em>, </td>
531
 
        </tr>
532
 
        <tr>
533
 
          <td class="paramkey"></td>
534
 
          <td></td>
535
 
          <td class="paramtype">double&nbsp;</td>
536
 
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
537
 
        </tr>
538
 
        <tr>
539
 
          <td></td>
540
 
          <td>)</td>
541
 
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
542
 
        </tr>
543
 
      </table>
544
 
</div>
545
 
<div class="memdoc">
546
 
 
547
 
<p>
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>&nbsp;</td><td>Range for all values </td></tr>
552
 
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value to map into a color index </td></tr>
553
 
  </table>
554
 
</dl>
555
 
 
556
 
<p>
557
 
Implements <a class="el" href="class_qwt_color_map.html#87086a55e99e56bd7f42677826801815">QwtColorMap</a>.
558
 
<p>
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>.
560
 
<p>
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>.
562
 
</div>
563
 
</div><p>
564
 
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:17 2008 for Qwt User's Guide by&nbsp;
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>
567
 
</body>
568
 
</html>