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: QwtDialSimpleNeedle 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>QwtDialSimpleNeedle Class Reference</h1><!-- doxytag: class="QwtDialSimpleNeedle" --><!-- doxytag: inherits="QwtDialNeedle" -->Inheritance diagram for QwtDialSimpleNeedle:<p><center><img src="class_qwt_dial_simple_needle__inherit__graph.png" border="0" usemap="#_qwt_dial_simple_needle__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_dial_simple_needle__inherit__map">
24
<area href="class_qwt_dial_needle.html" shape="rect" coords="27,8,139,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtDialSimpleNeedle:<p><center><img src="class_qwt_dial_simple_needle__coll__graph.png" border="0" usemap="#_qwt_dial_simple_needle__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_dial_simple_needle__coll__map">
28
<area href="class_qwt_dial_needle.html" shape="rect" coords="27,8,139,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_dial_simple_needle-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
31
A needle for dial widgets.
33
The following colors are used:<ul>
34
<li>QColorGroup::Mid<br>
35
Pointer</li><li>QColorGroup::base<br>
38
<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>
43
Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00073">73</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">
45
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#d28821489e04f1fd942e5bebc8a60584">Style</a> { <br>
47
<b>Arrow</b>,
49
<b>Ray</b>,
51
<b>TriangleStyle</b>,
53
<b>ThinStyle</b>,
55
<b>Style1</b>,
57
<b>Style2</b>,
59
<b>NoSymbol</b> = -1,
61
<b>Ellipse</b>,
63
<b>Rect</b>,
65
<b>Diamond</b>,
67
<b>Triangle</b>,
69
<b>DTriangle</b>,
71
<b>UTriangle</b>,
73
<b>LTriangle</b>,
75
<b>RTriangle</b>,
77
<b>Cross</b>,
79
<b>XCross</b>,
81
<b>HLine</b>,
83
<b>VLine</b>,
85
<b>Star1</b>,
87
<b>Star2</b>,
89
<b>Hexagon</b>,
91
<b>StyleCnt</b>
95
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#5f16b9298ecd293360a3ccf91d3dbfbb">QwtDialSimpleNeedle</a> (<a class="el" href="class_qwt_dial_simple_needle.html#d28821489e04f1fd942e5bebc8a60584">Style</a>, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray)</td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#acb6bbf51bf4423e3427cf663f33a232">draw</a> (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#525658d03e8b7c9a65e6d5c47d1fc1dc">setWidth</a> (int width)</td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#0978214c43cd9789c1fe9d522bb940fd">width</a> () const</td></tr>
104
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#d3e9c22e350ccd7aa644297cae7f1d4d">drawArrowNeedle</a> (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)</td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#950a42df6b62f7a03af73c2e38850df7">drawRayNeedle</a> (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)</td></tr>
110
<hr><h2>Member Enumeration Documentation</h2>
111
<a class="anchor" name="d28821489e04f1fd942e5bebc8a60584"></a><!-- doxytag: member="QwtDialSimpleNeedle::Style" ref="d28821489e04f1fd942e5bebc8a60584" args="" -->
112
<div class="memitem">
113
<div class="memproto">
114
<table class="memname">
116
<td class="memname">enum <a class="el" href="class_qwt_dial_simple_needle.html#d28821489e04f1fd942e5bebc8a60584">QwtDialSimpleNeedle::Style</a> </td>
127
Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00077">77</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.
130
<hr><h2>Constructor & Destructor Documentation</h2>
131
<a class="anchor" name="5f16b9298ecd293360a3ccf91d3dbfbb"></a><!-- doxytag: member="QwtDialSimpleNeedle::QwtDialSimpleNeedle" ref="5f16b9298ecd293360a3ccf91d3dbfbb" args="(Style, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray)" -->
132
<div class="memitem">
133
<div class="memproto">
134
<table class="memname">
136
<td class="memname">QwtDialSimpleNeedle::QwtDialSimpleNeedle </td>
138
<td class="paramtype"><a class="el" href="class_qwt_dial_simple_needle.html#d28821489e04f1fd942e5bebc8a60584">Style</a> </td>
139
<td class="paramname"> <em>style</em>, </td>
142
<td class="paramkey"></td>
144
<td class="paramtype">bool </td>
145
<td class="paramname"> <em>hasKnob</em> = <code>true</code>, </td>
148
<td class="paramkey"></td>
150
<td class="paramtype">const QColor & </td>
151
<td class="paramname"> <em>mid</em> = <code>Qt::gray</code>, </td>
154
<td class="paramkey"></td>
156
<td class="paramtype">const QColor & </td>
157
<td class="paramname"> <em>base</em> = <code>Qt::darkGray</code></td><td> </td>
162
<td></td><td></td><td width="100%"></td>
171
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00091">91</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
173
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00040">QwtDialNeedle::setPalette()</a>.
176
<hr><h2>Member Function Documentation</h2>
177
<a class="anchor" name="acb6bbf51bf4423e3427cf663f33a232"></a><!-- doxytag: member="QwtDialSimpleNeedle::draw" ref="acb6bbf51bf4423e3427cf663f33a232" args="(QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const" -->
178
<div class="memitem">
179
<div class="memproto">
180
<table class="memname">
182
<td class="memname">void QwtDialSimpleNeedle::draw </td>
184
<td class="paramtype">QPainter * </td>
185
<td class="paramname"> <em>painter</em>, </td>
188
<td class="paramkey"></td>
190
<td class="paramtype">const QPoint & </td>
191
<td class="paramname"> <em>center</em>, </td>
194
<td class="paramkey"></td>
196
<td class="paramtype">int </td>
197
<td class="paramname"> <em>length</em>, </td>
200
<td class="paramkey"></td>
202
<td class="paramtype">double </td>
203
<td class="paramname"> <em>direction</em>, </td>
206
<td class="paramkey"></td>
208
<td class="paramtype">QPalette::ColorGroup </td>
209
<td class="paramname"> <em>colorGroup</em> = <code>QPalette::Active</code></td><td> </td>
214
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
222
<dl compact><dt><b>Parameters:</b></dt><dd>
223
<table border="0" cellspacing="2" cellpadding="0">
224
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
225
<tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the dial, start position for the needle </td></tr>
226
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>Length of the needle </td></tr>
227
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Direction of the needle, in degrees counter clockwise </td></tr>
228
<tr><td valign="top"></td><td valign="top"><em>colorGroup</em> </td><td>Color group, used for painting </td></tr>
233
Implements <a class="el" href="class_qwt_dial_needle.html#d38b1e7d9ef0bf012f8f1b21b0972cc9">QwtDialNeedle</a>.
235
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00132">132</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
237
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00202">drawArrowNeedle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00150">drawRayNeedle()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>.
240
<a class="anchor" name="d3e9c22e350ccd7aa644297cae7f1d4d"></a><!-- doxytag: member="QwtDialSimpleNeedle::drawArrowNeedle" ref="d3e9c22e350ccd7aa644297cae7f1d4d" args="(QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)" -->
241
<div class="memitem">
242
<div class="memproto">
243
<table class="memname">
245
<td class="memname">void QwtDialSimpleNeedle::drawArrowNeedle </td>
247
<td class="paramtype">QPainter * </td>
248
<td class="paramname"> <em>painter</em>, </td>
251
<td class="paramkey"></td>
253
<td class="paramtype">const QPalette & </td>
254
<td class="paramname"> <em>palette</em>, </td>
257
<td class="paramkey"></td>
259
<td class="paramtype">QPalette::ColorGroup </td>
260
<td class="paramname"> <em>colorGroup</em>, </td>
263
<td class="paramkey"></td>
265
<td class="paramtype">const QPoint & </td>
266
<td class="paramname"> <em>center</em>, </td>
269
<td class="paramkey"></td>
271
<td class="paramtype">int </td>
272
<td class="paramname"> <em>length</em>, </td>
275
<td class="paramkey"></td>
277
<td class="paramtype">int </td>
278
<td class="paramname"> <em>width</em>, </td>
281
<td class="paramkey"></td>
283
<td class="paramtype">double </td>
284
<td class="paramname"> <em>direction</em>, </td>
287
<td class="paramkey"></td>
289
<td class="paramtype">bool </td>
290
<td class="paramname"> <em>hasKnob</em></td><td> </td>
295
<td></td><td></td><td width="100%"><code> [static]</code></td>
302
Draw a needle looking like an arrow
304
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00202">202</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
306
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00054">QwtDialNeedle::drawKnob()</a>.
308
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00132">draw()</a>.
311
<a class="anchor" name="950a42df6b62f7a03af73c2e38850df7"></a><!-- doxytag: member="QwtDialSimpleNeedle::drawRayNeedle" ref="950a42df6b62f7a03af73c2e38850df7" args="(QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)" -->
312
<div class="memitem">
313
<div class="memproto">
314
<table class="memname">
316
<td class="memname">void QwtDialSimpleNeedle::drawRayNeedle </td>
318
<td class="paramtype">QPainter * </td>
319
<td class="paramname"> <em>painter</em>, </td>
322
<td class="paramkey"></td>
324
<td class="paramtype">const QPalette & </td>
325
<td class="paramname"> <em>palette</em>, </td>
328
<td class="paramkey"></td>
330
<td class="paramtype">QPalette::ColorGroup </td>
331
<td class="paramname"> <em>colorGroup</em>, </td>
334
<td class="paramkey"></td>
336
<td class="paramtype">const QPoint & </td>
337
<td class="paramname"> <em>center</em>, </td>
340
<td class="paramkey"></td>
342
<td class="paramtype">int </td>
343
<td class="paramname"> <em>length</em>, </td>
346
<td class="paramkey"></td>
348
<td class="paramtype">int </td>
349
<td class="paramname"> <em>width</em>, </td>
352
<td class="paramkey"></td>
354
<td class="paramtype">double </td>
355
<td class="paramname"> <em>direction</em>, </td>
358
<td class="paramkey"></td>
360
<td class="paramtype">bool </td>
361
<td class="paramname"> <em>hasKnob</em></td><td> </td>
366
<td></td><td></td><td width="100%"><code> [static]</code></td>
373
Draw a needle looking like a ray
375
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00150">150</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
377
References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00054">QwtDialNeedle::drawKnob()</a>.
379
Referenced by <a class="el" href="qwt__dial__needle_8cpp-source.html#l00132">draw()</a>.
382
<a class="anchor" name="525658d03e8b7c9a65e6d5c47d1fc1dc"></a><!-- doxytag: member="QwtDialSimpleNeedle::setWidth" ref="525658d03e8b7c9a65e6d5c47d1fc1dc" args="(int width)" -->
383
<div class="memitem">
384
<div class="memproto">
385
<table class="memname">
387
<td class="memname">void QwtDialSimpleNeedle::setWidth </td>
389
<td class="paramtype">int </td>
390
<td class="paramname"> <em>width</em> </td>
391
<td> ) </td>
392
<td width="100%"></td>
399
Set the width of the needle.
403
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00110">110</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
406
<a class="anchor" name="0978214c43cd9789c1fe9d522bb940fd"></a><!-- doxytag: member="QwtDialSimpleNeedle::width" ref="0978214c43cd9789c1fe9d522bb940fd" args="() const" -->
407
<div class="memitem">
408
<div class="memproto">
409
<table class="memname">
411
<td class="memname">int QwtDialSimpleNeedle::width </td>
413
<td class="paramname"> </td>
414
<td> ) </td>
415
<td width="100%"> const</td>
422
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the width of the needle </dd></dl>
425
Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00118">118</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.
428
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:06 2008 for Qwt User's Guide by
429
<a href="http://www.doxygen.org/index.html">
430
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>