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: QwtDialNeedle 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>QwtDialNeedle Class Reference</h1><!-- doxytag: class="QwtDialNeedle" -->Inheritance diagram for QwtDialNeedle:<p><center><img src="class_qwt_dial_needle__inherit__graph.png" border="0" usemap="#_qwt_dial_needle__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_dial_needle__inherit__map">
24
<area href="class_qwt_compass_magnet_needle.html" shape="rect" coords="7,83,193,107" alt="">
25
<area href="class_qwt_compass_wind_arrow.html" shape="rect" coords="217,83,385,107" alt="">
26
<area href="class_qwt_dial_simple_needle.html" shape="rect" coords="409,83,561,107" alt="">
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_dial_needle-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
29
Base class for needles that can be used in a <a class="el" href="class_qwt_dial.html">QwtDial</a>.
31
<a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> is a pointer that indicates a value by pointing to a specific direction.<p>
32
Qwt is missing a set of good looking needles. Contributions are very welcome.<p>
33
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dial.html">QwtDial</a>, <a class="el" href="class_qwt_compass.html">QwtCompass</a> </dd></dl>
38
Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00031">31</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.<table border="0" cellpadding="0" cellspacing="0">
40
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#ef3af79632ce784bc4d7332f6e269a1f">QwtDialNeedle</a> ()</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#c23b2af4af50042967c8cea87b474247">~QwtDialNeedle</a> ()</td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#d38b1e7d9ef0bf012f8f1b21b0972cc9">draw</a> (QPainter *painter, const QPoint &center, int length, double direction, QPalette::ColorGroup cg=QPalette::Active) const=0</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#e850883a64501136bca64d6ea2d084b9">setPalette</a> (const QPalette &)</td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QPalette & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#d4c32d58f2b8e77fd66e0dfc66b7c37a">palette</a> () const</td></tr>
51
<tr><td colspan="2"><br><h2>Static Protected Member Functions</h2></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#5ff7738a4ce55551b0949a55b145662f">drawKnob</a> (QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken)</td></tr>
55
<hr><h2>Constructor & Destructor Documentation</h2>
56
<a class="anchor" name="ef3af79632ce784bc4d7332f6e269a1f"></a><!-- doxytag: member="QwtDialNeedle::QwtDialNeedle" ref="ef3af79632ce784bc4d7332f6e269a1f" args="()" -->
58
<div class="memproto">
59
<table class="memname">
61
<td class="memname">QwtDialNeedle::QwtDialNeedle </td>
63
<td class="paramname"> </td>
64
<td> ) </td>
65
<td width="100%"></td>
76
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00025">25</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
79
<a class="anchor" name="c23b2af4af50042967c8cea87b474247"></a><!-- doxytag: member="QwtDialNeedle::~QwtDialNeedle" ref="c23b2af4af50042967c8cea87b474247" args="()" -->
81
<div class="memproto">
82
<table class="memname">
84
<td class="memname">QwtDialNeedle::~QwtDialNeedle </td>
86
<td class="paramname"> </td>
87
<td> ) </td>
88
<td width="100%"><code> [virtual]</code></td>
99
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00031">31</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
102
<hr><h2>Member Function Documentation</h2>
103
<a class="anchor" name="d38b1e7d9ef0bf012f8f1b21b0972cc9"></a><!-- doxytag: member="QwtDialNeedle::draw" ref="d38b1e7d9ef0bf012f8f1b21b0972cc9" args="(QPainter *painter, const QPoint &center, int length, double direction, QPalette::ColorGroup cg=QPalette::Active) const=0" -->
104
<div class="memitem">
105
<div class="memproto">
106
<table class="memname">
108
<td class="memname">virtual void QwtDialNeedle::draw </td>
110
<td class="paramtype">QPainter * </td>
111
<td class="paramname"> <em>painter</em>, </td>
114
<td class="paramkey"></td>
116
<td class="paramtype">const QPoint & </td>
117
<td class="paramname"> <em>center</em>, </td>
120
<td class="paramkey"></td>
122
<td class="paramtype">int </td>
123
<td class="paramname"> <em>length</em>, </td>
126
<td class="paramkey"></td>
128
<td class="paramtype">double </td>
129
<td class="paramname"> <em>direction</em>, </td>
132
<td class="paramkey"></td>
134
<td class="paramtype">QPalette::ColorGroup </td>
135
<td class="paramname"> <em>cg</em> = <code>QPalette::Active</code></td><td> </td>
140
<td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
148
<dl compact><dt><b>Parameters:</b></dt><dd>
149
<table border="0" cellspacing="2" cellpadding="0">
150
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
151
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the dial, start position for the needle </td></tr>
152
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>Length of the needle </td></tr>
153
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Direction of the needle, in degrees counter clockwise </td></tr>
154
<tr><td valign="top"></td><td valign="top"><em>cg</em> </td><td>Color group, used for painting </td></tr>
159
Implemented in <a class="el" href="class_qwt_dial_simple_needle.html#acb6bbf51bf4423e3427cf663f33a232">QwtDialSimpleNeedle</a>, <a class="el" href="class_qwt_compass_magnet_needle.html#10d4fd2c0fad96029ac79a856f4ef08f">QwtCompassMagnetNeedle</a>, and <a class="el" href="class_qwt_compass_wind_arrow.html#457b0c6faf84e4926ac303ae9dc06607">QwtCompassWindArrow</a>.
161
Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00220">QwtAnalogClock::drawHand()</a>.
164
<a class="anchor" name="e850883a64501136bca64d6ea2d084b9"></a><!-- doxytag: member="QwtDialNeedle::setPalette" ref="e850883a64501136bca64d6ea2d084b9" args="(const QPalette &)" -->
165
<div class="memitem">
166
<div class="memproto">
167
<table class="memname">
169
<td class="memname">void QwtDialNeedle::setPalette </td>
171
<td class="paramtype">const QPalette & </td>
172
<td class="paramname"> <em>palette</em> </td>
173
<td> ) </td>
174
<td width="100%"><code> [virtual]</code></td>
181
Sets the palette for the needle.<p>
182
<dl compact><dt><b>Parameters:</b></dt><dd>
183
<table border="0" cellspacing="2" cellpadding="0">
184
<tr><td valign="top"></td><td valign="top"><em>palette</em> </td><td>New Palette </td></tr>
189
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00040">40</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
191
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00265">QwtCompassMagnetNeedle::QwtCompassMagnetNeedle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00467">QwtCompassWindArrow::QwtCompassWindArrow()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00091">QwtDialSimpleNeedle::QwtDialSimpleNeedle()</a>.
194
<a class="anchor" name="d4c32d58f2b8e77fd66e0dfc66b7c37a"></a><!-- doxytag: member="QwtDialNeedle::palette" ref="d4c32d58f2b8e77fd66e0dfc66b7c37a" args="() const" -->
195
<div class="memitem">
196
<div class="memproto">
197
<table class="memname">
199
<td class="memname">const QPalette & QwtDialNeedle::palette </td>
201
<td class="paramname"> </td>
202
<td> ) </td>
203
<td width="100%"> const</td>
210
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the palette of the needle. </dd></dl>
213
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">48</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
215
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00492">QwtCompassWindArrow::draw()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00292">QwtCompassMagnetNeedle::draw()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00132">QwtDialSimpleNeedle::draw()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00265">QwtCompassMagnetNeedle::QwtCompassMagnetNeedle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00467">QwtCompassWindArrow::QwtCompassWindArrow()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00091">QwtDialSimpleNeedle::QwtDialSimpleNeedle()</a>.
218
<a class="anchor" name="5ff7738a4ce55551b0949a55b145662f"></a><!-- doxytag: member="QwtDialNeedle::drawKnob" ref="5ff7738a4ce55551b0949a55b145662f" args="(QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken)" -->
219
<div class="memitem">
220
<div class="memproto">
221
<table class="memname">
223
<td class="memname">void QwtDialNeedle::drawKnob </td>
225
<td class="paramtype">QPainter * </td>
226
<td class="paramname">, </td>
229
<td class="paramkey"></td>
231
<td class="paramtype">const QPoint & </td>
232
<td class="paramname"> <em>pos</em>, </td>
235
<td class="paramkey"></td>
237
<td class="paramtype">int </td>
238
<td class="paramname"> <em>width</em>, </td>
241
<td class="paramkey"></td>
243
<td class="paramtype">const QBrush & </td>
244
<td class="paramname">, </td>
247
<td class="paramkey"></td>
249
<td class="paramtype">bool </td>
250
<td class="paramname"> <em>sunken</em></td><td> </td>
255
<td></td><td></td><td width="100%"><code> [static, protected]</code></td>
266
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00054">54</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
268
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00202">QwtDialSimpleNeedle::drawArrowNeedle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00150">QwtDialSimpleNeedle::drawRayNeedle()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00383">QwtCompassMagnetNeedle::drawThinNeedle()</a>.
271
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:28 2009 for Qwt User's Guide by
272
<a href="http://www.doxygen.org/index.html">
273
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>