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.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>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="24,8,128,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="24,8,128,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#408726d67878352f14c6125d46465ef5">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#89acdb9e9918ce37ff219a344cb7330a">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#5cc7d28905a48a59a7d1f99196be1ce8">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))" -->
58
<div class="memproto">
59
<table class="memname">
61
<td class="memname">QwtAlphaColorMap::QwtAlphaColorMap </td>
63
<td class="paramtype">const QColor & </td>
64
<td class="paramname"> <em>color</em> = <code>QColor(Qt::gray)</code> </td>
65
<td> ) </td>
66
<td width="100%"></td>
73
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
74
<table border="0" cellspacing="2" cellpadding="0">
75
<tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>Color of the map </td></tr>
80
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00409">409</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
82
Referenced by <a class="el" href="qwt__color__map_8cpp-source.html#l00448">copy()</a>.
85
<a class="anchor" name="266d1009f36e17f8022077c469fa31a5"></a><!-- doxytag: member="QwtAlphaColorMap::QwtAlphaColorMap" ref="266d1009f36e17f8022077c469fa31a5" args="(const QwtAlphaColorMap &)" -->
87
<div class="memproto">
88
<table class="memname">
90
<td class="memname">QwtAlphaColorMap::QwtAlphaColorMap </td>
92
<td class="paramtype">const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & </td>
93
<td class="paramname"> <em>other</em> </td>
94
<td> ) </td>
95
<td width="100%"></td>
102
Copy constructor <dl compact><dt><b>Parameters:</b></dt><dd>
103
<table border="0" cellspacing="2" cellpadding="0">
104
<tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Other color map </td></tr>
109
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00421">421</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
112
<a class="anchor" name="c6445d25b9df0b565383b8189691bbad"></a><!-- doxytag: member="QwtAlphaColorMap::~QwtAlphaColorMap" ref="c6445d25b9df0b565383b8189691bbad" args="()" -->
113
<div class="memitem">
114
<div class="memproto">
115
<table class="memname">
117
<td class="memname">QwtAlphaColorMap::~QwtAlphaColorMap </td>
119
<td class="paramname"> </td>
120
<td> ) </td>
121
<td width="100%"><code> [virtual]</code></td>
132
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00429">429</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
135
<hr><h2>Member Function Documentation</h2>
136
<a class="anchor" name="7d7a1a4648d4d61604677bb772820617"></a><!-- doxytag: member="QwtAlphaColorMap::operator=" ref="7d7a1a4648d4d61604677bb772820617" args="(const QwtAlphaColorMap &)" -->
137
<div class="memitem">
138
<div class="memproto">
139
<table class="memname">
141
<td class="memname"><a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & QwtAlphaColorMap::operator= </td>
143
<td class="paramtype">const <a class="el" href="class_qwt_alpha_color_map.html">QwtAlphaColorMap</a> & </td>
144
<td class="paramname"> <em>other</em> </td>
145
<td> ) </td>
146
<td width="100%"></td>
153
Assignment operator <dl compact><dt><b>Parameters:</b></dt><dd>
154
<table border="0" cellspacing="2" cellpadding="0">
155
<tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Other color map </td></tr>
158
<dl class="return" compact><dt><b>Returns:</b></dt><dd>*this </dd></dl>
161
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00439">439</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
163
References <a class="el" href="qwt__color__map_8h-source.html#l00181">d_data</a>.
166
<a class="anchor" name="408726d67878352f14c6125d46465ef5"></a><!-- doxytag: member="QwtAlphaColorMap::copy" ref="408726d67878352f14c6125d46465ef5" args="() const" -->
167
<div class="memitem">
168
<div class="memproto">
169
<table class="memname">
171
<td class="memname"><a class="el" href="class_qwt_color_map.html">QwtColorMap</a> * QwtAlphaColorMap::copy </td>
173
<td class="paramname"> </td>
174
<td> ) </td>
175
<td width="100%"> const<code> [virtual]</code></td>
186
Implements <a class="el" href="class_qwt_color_map.html#c21886c4be363557902d24d1224c2a86">QwtColorMap</a>.
188
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00448">448</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
190
References <a class="el" href="qwt__color__map_8cpp-source.html#l00409">QwtAlphaColorMap()</a>.
193
<a class="anchor" name="372ba8791102270991473897fb36a965"></a><!-- doxytag: member="QwtAlphaColorMap::setColor" ref="372ba8791102270991473897fb36a965" args="(const QColor &)" -->
194
<div class="memitem">
195
<div class="memproto">
196
<table class="memname">
198
<td class="memname">void QwtAlphaColorMap::setColor </td>
200
<td class="paramtype">const QColor & </td>
201
<td class="paramname"> <em>color</em> </td>
202
<td> ) </td>
203
<td width="100%"></td>
211
<dl compact><dt><b>Parameters:</b></dt><dd>
212
<table border="0" cellspacing="2" cellpadding="0">
213
<tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>Color </td></tr>
216
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_alpha_color_map.html#89acdb9e9918ce37ff219a344cb7330a">color()</a> </dd></dl>
219
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00462">462</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
222
<a class="anchor" name="89acdb9e9918ce37ff219a344cb7330a"></a><!-- doxytag: member="QwtAlphaColorMap::color" ref="89acdb9e9918ce37ff219a344cb7330a" args="() const" -->
223
<div class="memitem">
224
<div class="memproto">
225
<table class="memname">
227
<td class="memname">QColor QwtAlphaColorMap::color </td>
229
<td class="paramname"> </td>
230
<td> ) </td>
231
<td width="100%"> const</td>
238
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the color </dd></dl>
239
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_alpha_color_map.html#372ba8791102270991473897fb36a965">setColor()</a> </dd></dl>
242
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00472">472</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
245
<a class="anchor" name="5cc7d28905a48a59a7d1f99196be1ce8"></a><!-- doxytag: member="QwtAlphaColorMap::rgb" ref="5cc7d28905a48a59a7d1f99196be1ce8" args="(const QwtDoubleInterval &, double value) const" -->
246
<div class="memitem">
247
<div class="memproto">
248
<table class="memname">
250
<td class="memname">QRgb QwtAlphaColorMap::rgb </td>
252
<td class="paramtype">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> & </td>
253
<td class="paramname"> <em>interval</em>, </td>
256
<td class="paramkey"></td>
258
<td class="paramtype">double </td>
259
<td class="paramname"> <em>value</em></td><td> </td>
264
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
271
Map a value of a given interval into a alpha value.
273
alpha := (value - interval.minValue()) / interval.width();<p>
274
<dl compact><dt><b>Parameters:</b></dt><dd>
275
<table border="0" cellspacing="2" cellpadding="0">
276
<tr><td valign="top"></td><td valign="top"><em>interval</em> </td><td>Range for all values </td></tr>
277
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value to map into a rgb value </td></tr>
280
<dl class="return" compact><dt><b>Returns:</b></dt><dd>rgb value, with an alpha value </dd></dl>
283
Implements <a class="el" href="class_qwt_color_map.html#6f8cae09331c9c6dbc11d7cc023e6665">QwtColorMap</a>.
285
Definition at line <a class="el" href="qwt__color__map_8cpp-source.html#l00486">486</a> of file <a class="el" href="qwt__color__map_8cpp-source.html">qwt_color_map.cpp</a>.
287
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>.
290
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:14 2009 for Qwt User's Guide by
291
<a href="http://www.doxygen.org/index.html">
292
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>