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: QwtAlphaColorMap 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.4.6 -->
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>QwtAlphaColorMap Class Reference</h1><!-- doxytag: class="QwtAlphaColorMap" --><!-- doxytag: inherits="QwtColorMap" -->Inheritance diagram for QwtAlphaColorMap:<p><center><img src="class_qwt_alpha_color_map__inherit__graph.png" border="0" usemap="#_qwt_alpha_color_map__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_alpha_color_map__inherit__map">
24
<area href="class_qwt_color_map.html" shape="rect" coords="23,8,127,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtAlphaColorMap:<p><center><img src="class_qwt_alpha_color_map__coll__graph.png" border="0" usemap="#_qwt_alpha_color_map__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_alpha_color_map__coll__map">
28
<area href="class_qwt_color_map.html" shape="rect" coords="23,8,127,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_alpha_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_alpha_color_map.html">QwtAlphaColorMap</a> variies the alpha value of a color.
35
Definition at line <a class="el" href="qwt__color__map_8h-source.html#l00160">160</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">
37
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#f78213a5ff1ebef8a8d4447b0987bf32">QwtAlphaColorMap</a> (const QColor &=QColor(Qt::gray))</td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#266d1009f36e17f8022077c469fa31a5">QwtAlphaColorMap</a> (const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> &)</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#c6445d25b9df0b565383b8189691bbad">~QwtAlphaColorMap</a> ()</td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#7d7a1a4648d4d61604677bb772820617">operator=</a> (const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> &)</td></tr>
46
<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_alpha_color_map.html#75c4858f181f327778736b6ebb9f2745">copy</a> () const </td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#372ba8791102270991473897fb36a965">setColor</a> (const QColor &)</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#4a706714abbd4d82a9a2201a9ecf7aaf">color</a> () const </td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QRgb </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_alpha_color_map.html#ec09e7fc85a746653d4065c736166459">rgb</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &, double value) const </td></tr>
55
<hr><h2>Constructor & Destructor Documentation</h2>
56
<a class="anchor" name="f78213a5ff1ebef8a8d4447b0987bf32"></a><!-- doxytag: member="QwtAlphaColorMap::QwtAlphaColorMap" ref="f78213a5ff1ebef8a8d4447b0987bf32" args="(const QColor &=QColor(Qt::gray))" --><p>
57
<table class="mdTable" cellpadding="2" cellspacing="0">
60
<table cellpadding="0" cellspacing="0" border="0">
62
<td class="md" nowrap valign="top">QwtAlphaColorMap::QwtAlphaColorMap </td>
63
<td class="md" valign="top">( </td>
64
<td class="md" nowrap valign="top">const QColor & </td>
65
<td class="mdname1" valign="top" nowrap> <em>color</em> = <code>QColor(Qt::gray)</code> </td>
66
<td class="md" valign="top"> ) </td>
67
<td class="md" nowrap></td>
73
<table cellspacing="5" cellpadding="0" border="0">
81
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
82
<table border="0" cellspacing="2" cellpadding="0">
83
<tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>Color of the map </td></tr>
88
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00402">402</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
90
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00441">copy()</a>. </td>
93
<a class="anchor" name="266d1009f36e17f8022077c469fa31a5"></a><!-- doxytag: member="QwtAlphaColorMap::QwtAlphaColorMap" ref="266d1009f36e17f8022077c469fa31a5" args="(const QwtAlphaColorMap &)" --><p>
94
<table class="mdTable" cellpadding="2" cellspacing="0">
97
<table cellpadding="0" cellspacing="0" border="0">
99
<td class="md" nowrap valign="top">QwtAlphaColorMap::QwtAlphaColorMap </td>
100
<td class="md" valign="top">( </td>
101
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & </td>
102
<td class="mdname1" valign="top" nowrap> <em>other</em> </td>
103
<td class="md" valign="top"> ) </td>
104
<td class="md" nowrap></td>
110
<table cellspacing="5" cellpadding="0" border="0">
118
Copy constructor <dl compact><dt><b>Parameters:</b></dt><dd>
119
<table border="0" cellspacing="2" cellpadding="0">
120
<tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Other color map </td></tr>
125
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00414">414</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>. </td>
128
<a class="anchor" name="c6445d25b9df0b565383b8189691bbad"></a><!-- doxytag: member="QwtAlphaColorMap::~QwtAlphaColorMap" ref="c6445d25b9df0b565383b8189691bbad" args="()" --><p>
129
<table class="mdTable" cellpadding="2" cellspacing="0">
132
<table cellpadding="0" cellspacing="0" border="0">
134
<td class="md" nowrap valign="top">QwtAlphaColorMap::~QwtAlphaColorMap </td>
135
<td class="md" valign="top">( </td>
136
<td class="mdname1" valign="top" nowrap> </td>
137
<td class="md" valign="top"> ) </td>
138
<td class="md" nowrap><code> [virtual]</code></td>
144
<table cellspacing="5" cellpadding="0" border="0">
156
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00422">422</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>. </td>
159
<hr><h2>Member Function Documentation</h2>
160
<a class="anchor" name="4a706714abbd4d82a9a2201a9ecf7aaf"></a><!-- doxytag: member="QwtAlphaColorMap::color" ref="4a706714abbd4d82a9a2201a9ecf7aaf" args="() const " --><p>
161
<table class="mdTable" cellpadding="2" cellspacing="0">
164
<table cellpadding="0" cellspacing="0" border="0">
166
<td class="md" nowrap valign="top">QColor QwtAlphaColorMap::color </td>
167
<td class="md" valign="top">( </td>
168
<td class="mdname1" valign="top" nowrap> </td>
169
<td class="md" valign="top"> ) </td>
170
<td class="md" nowrap> const</td>
176
<table cellspacing="5" cellpadding="0" border="0">
184
<dl compact><dt><b>Returns:</b></dt><dd>the color </dd></dl>
185
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_alpha_color_map.html#372ba8791102270991473897fb36a965">setColor()</a> </dd></dl>
188
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00465">465</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>. </td>
191
<a class="anchor" name="75c4858f181f327778736b6ebb9f2745"></a><!-- doxytag: member="QwtAlphaColorMap::copy" ref="75c4858f181f327778736b6ebb9f2745" args="() const " --><p>
192
<table class="mdTable" cellpadding="2" cellspacing="0">
195
<table cellpadding="0" cellspacing="0" border="0">
197
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * QwtAlphaColorMap::copy </td>
198
<td class="md" valign="top">( </td>
199
<td class="mdname1" valign="top" nowrap> </td>
200
<td class="md" valign="top"> ) </td>
201
<td class="md" nowrap> const<code> [virtual]</code></td>
207
<table cellspacing="5" cellpadding="0" border="0">
219
Implements <a class="el" href="class_qwt_color_map.html#97c746ff74f5fe96867dde5bde3e23f5">QwtColorMap</a>.
221
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00441">441</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
223
References <a class="el" href="qwt__color__map_8cpp-source.html#l00402">QwtAlphaColorMap()</a>. </td>
226
<a class="anchor" name="7d7a1a4648d4d61604677bb772820617"></a><!-- doxytag: member="QwtAlphaColorMap::operator=" ref="7d7a1a4648d4d61604677bb772820617" args="(const QwtAlphaColorMap &)" --><p>
227
<table class="mdTable" cellpadding="2" cellspacing="0">
230
<table cellpadding="0" cellspacing="0" border="0">
232
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & QwtAlphaColorMap::operator= </td>
233
<td class="md" valign="top">( </td>
234
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & </td>
235
<td class="mdname1" valign="top" nowrap> <em>other</em> </td>
236
<td class="md" valign="top"> ) </td>
237
<td class="md" nowrap></td>
243
<table cellspacing="5" cellpadding="0" border="0">
251
Assignment operator <dl compact><dt><b>Parameters:</b></dt><dd>
252
<table border="0" cellspacing="2" cellpadding="0">
253
<tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Other color map </td></tr>
256
<dl compact><dt><b>Returns:</b></dt><dd>*this </dd></dl>
259
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00432">432</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
261
References <a class="el" href="qwt__color__map_8h-source.html#l00181">d_data</a>. </td>
264
<a class="anchor" name="ec09e7fc85a746653d4065c736166459"></a><!-- doxytag: member="QwtAlphaColorMap::rgb" ref="ec09e7fc85a746653d4065c736166459" args="(const QwtDoubleInterval &, double value) const " --><p>
265
<table class="mdTable" cellpadding="2" cellspacing="0">
268
<table cellpadding="0" cellspacing="0" border="0">
270
<td class="md" nowrap valign="top">QRgb QwtAlphaColorMap::rgb </td>
271
<td class="md" valign="top">( </td>
272
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
273
<td class="mdname" nowrap> <em>interval</em>, </td>
276
<td class="md" nowrap align="right"></td>
278
<td class="md" nowrap>double </td>
279
<td class="mdname" nowrap> <em>value</em></td>
283
<td class="md">) </td>
284
<td class="md" colspan="2"> const<code> [virtual]</code></td>
290
<table cellspacing="5" cellpadding="0" border="0">
298
Map a value of a given interval into a alpha value.
300
alpha := (value - interval.minValue()) / interval.width();<p>
301
<dl compact><dt><b>Parameters:</b></dt><dd>
302
<table border="0" cellspacing="2" cellpadding="0">
303
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Range for all values </td></tr>
304
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value to map into a rgb value </td></tr>
307
<dl compact><dt><b>Returns:</b></dt><dd>rgb value, with an alpha value </dd></dl>
310
Implements <a class="el" href="class_qwt_color_map.html#be172f151f0a8c24f4a7e0908b0b983f">QwtColorMap</a>.
312
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00479">479</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
314
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#l00128">QwtDoubleInterval::minValue()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>. </td>
317
<a class="anchor" name="372ba8791102270991473897fb36a965"></a><!-- doxytag: member="QwtAlphaColorMap::setColor" ref="372ba8791102270991473897fb36a965" args="(const QColor &)" --><p>
318
<table class="mdTable" cellpadding="2" cellspacing="0">
321
<table cellpadding="0" cellspacing="0" border="0">
323
<td class="md" nowrap valign="top">void QwtAlphaColorMap::setColor </td>
324
<td class="md" valign="top">( </td>
325
<td class="md" nowrap valign="top">const QColor & </td>
326
<td class="mdname1" valign="top" nowrap> <em>color</em> </td>
327
<td class="md" valign="top"> ) </td>
328
<td class="md" nowrap></td>
334
<table cellspacing="5" cellpadding="0" border="0">
343
<dl compact><dt><b>Parameters:</b></dt><dd>
344
<table border="0" cellspacing="2" cellpadding="0">
345
<tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>Color </td></tr>
348
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_alpha_color_map.html#4a706714abbd4d82a9a2201a9ecf7aaf">color()</a> </dd></dl>
351
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00455">455</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>. </td>
354
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:22:54 2007 for Qwt User's Guide by
355
<a href="http://www.doxygen.org/index.html">
356
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>