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: QwtWheel 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>QwtWheel Class Reference</h1><!-- doxytag: class="QwtWheel" --><!-- doxytag: inherits="QwtAbstractSlider" -->Inheritance diagram for QwtWheel:<p><center><img src="class_qwt_wheel__inherit__graph.png" border="0" usemap="#_qwt_wheel__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_wheel__inherit__map">
24
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
25
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
27
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtWheel:<p><center><img src="class_qwt_wheel__coll__graph.png" border="0" usemap="#_qwt_wheel__coll__map" alt="Collaboration graph"></center>
28
<map name="_qwt_wheel__coll__map">
29
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
30
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
32
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_wheel-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
35
The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel.<p>
36
<dl compact><dt><b>See also:</b></dt><dd>The radio example. </dd></dl>
41
Definition at line <a class="el" href="qwt__wheel_8h-source.html#l00025">25</a> of file <a class="el" href="qwt__wheel_8h-source.html">qwt_wheel.h</a>.<table border="0" cellpadding="0" cellspacing="0">
43
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#98fc47123aac47168b5d98a73b87d0a7">QwtWheel</a> (QWidget *parent=NULL)</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#57f465a31a9d2d88cb7a1d0e6391535e">~QwtWheel</a> ()</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#cae74c8161fd1df728f26253dd1defa8">setOrientation</a> (Qt::Orientation)</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c05734986ee427e6d820f54a267dde26"></a><!-- doxytag: member="QwtWheel::totalAngle" ref="c05734986ee427e6d820f54a267dde26" args="() const " -->
51
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#c05734986ee427e6d820f54a267dde26">totalAngle</a> () const </td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49c04ea6e1ec21268f63d45239bc9333"></a><!-- doxytag: member="QwtWheel::viewAngle" ref="49c04ea6e1ec21268f63d45239bc9333" args="() const " -->
54
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#49c04ea6e1ec21268f63d45239bc9333">viewAngle</a> () const </td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02e84c468d3175278a490185ca4a7c2a"></a><!-- doxytag: member="QwtWheel::tickCnt" ref="02e84c468d3175278a490185ca4a7c2a" args="() const " -->
57
int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#02e84c468d3175278a490185ca4a7c2a">tickCnt</a> () const </td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e87fb6b08098a7b5255ed70dcd62182"></a><!-- doxytag: member="QwtWheel::internalBorder" ref="1e87fb6b08098a7b5255ed70dcd62182" args="() const " -->
60
int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#1e87fb6b08098a7b5255ed70dcd62182">internalBorder</a> () const </td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#55de1496f0eef04da9bc293306a40df6">mass</a> () const </td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#3bf43e42e715577f05be9525be1a8e0e">setTotalAngle</a> (double angle)</td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#8a970c3b4f776217c284cdce15206530">setTickCnt</a> (int cnt)</td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#d90821d39ff243db547a1c9b0b0ef545">setViewAngle</a> (double angle)</td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#cb9358f6cf27f1552dd7f97ebfd2d3fb">setInternalBorder</a> (int width)</td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#811ef1cf04a3d39eb017fcfe808bbd4f">setMass</a> (double val)</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#fc5416139e1c962b950a8d48fe465209">setWheelWidth</a> (int w)</td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#77404d4e604a196bd4e809ec7d9f2076">sizeHint</a> () const </td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#668397451f5ad7b2a78d01d9e7141bcf">minimumSizeHint</a> () const </td></tr>
80
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#f4fda101be95e70803127cc94fc1e337">resizeEvent</a> (QResizeEvent *e)</td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#c2bc645171e2c1dd34acff3d122ab4ba">paintEvent</a> (QPaintEvent *e)</td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#03a6adc4f6516143501c8114f164d47c">layoutWheel</a> (bool update=true)</td></tr>
87
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#e08370e0e6a82ab3539d073ced3bc313">draw</a> (QPainter *p, const QRect &update_rect)</td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#d1feb5d4c2a9b410c4d5d108a5630904">drawWheel</a> (QPainter *p, const QRect &r)</td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#33b95a78f006f36fee8dafea9531afa9">drawWheelBackground</a> (QPainter *p, const QRect &r)</td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#f7d32d9b65d1f55913656a44b2a20646">setColorArray</a> ()</td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#0fa3d4f4189f7bb6ee0944cd30060eb5">valueChange</a> ()</td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#358aae0c56eda43f5c9fdb74b89de60a">paletteChange</a> (const QPalette &)</td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#6bb116593e63e724059c894a6fc41097">getValue</a> (const QPoint &p)</td></tr>
101
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#2655146c5d017756566691e8142b8fcd">getScrollMode</a> (const QPoint &p, int &scrollMode, int &direction)</td></tr>
104
<hr><h2>Constructor & Destructor Documentation</h2>
105
<a class="anchor" name="98fc47123aac47168b5d98a73b87d0a7"></a><!-- doxytag: member="QwtWheel::QwtWheel" ref="98fc47123aac47168b5d98a73b87d0a7" args="(QWidget *parent=NULL)" --><p>
106
<table class="mdTable" cellpadding="2" cellspacing="0">
109
<table cellpadding="0" cellspacing="0" border="0">
111
<td class="md" nowrap valign="top">QwtWheel::QwtWheel </td>
112
<td class="md" valign="top">( </td>
113
<td class="md" nowrap valign="top">QWidget * </td>
114
<td class="mdname1" valign="top" nowrap> <em>parent</em> = <code>NULL</code> </td>
115
<td class="md" valign="top"> ) </td>
116
<td class="md" nowrap><code> [explicit]</code></td>
122
<table cellspacing="5" cellpadding="0" border="0">
134
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00051">51</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
137
<a class="anchor" name="57f465a31a9d2d88cb7a1d0e6391535e"></a><!-- doxytag: member="QwtWheel::~QwtWheel" ref="57f465a31a9d2d88cb7a1d0e6391535e" args="()" --><p>
138
<table class="mdTable" cellpadding="2" cellspacing="0">
141
<table cellpadding="0" cellspacing="0" border="0">
143
<td class="md" nowrap valign="top">QwtWheel::~QwtWheel </td>
144
<td class="md" valign="top">( </td>
145
<td class="mdname1" valign="top" nowrap> </td>
146
<td class="md" valign="top"> ) </td>
147
<td class="md" nowrap><code> [virtual]</code></td>
153
<table cellspacing="5" cellpadding="0" border="0">
165
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00086">86</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
168
<hr><h2>Member Function Documentation</h2>
169
<a class="anchor" name="e08370e0e6a82ab3539d073ced3bc313"></a><!-- doxytag: member="QwtWheel::draw" ref="e08370e0e6a82ab3539d073ced3bc313" args="(QPainter *p, const QRect &update_rect)" --><p>
170
<table class="mdTable" cellpadding="2" cellspacing="0">
173
<table cellpadding="0" cellspacing="0" border="0">
175
<td class="md" nowrap valign="top">void QwtWheel::draw </td>
176
<td class="md" valign="top">( </td>
177
<td class="md" nowrap valign="top">QPainter * </td>
178
<td class="mdname" nowrap> <em>p</em>, </td>
181
<td class="md" nowrap align="right"></td>
183
<td class="md" nowrap>const QRect & </td>
184
<td class="mdname" nowrap> <em>update_rect</em></td>
188
<td class="md">) </td>
189
<td class="md" colspan="2"><code> [protected]</code></td>
195
<table cellspacing="5" cellpadding="0" border="0">
203
Redraw panel and wheel.
207
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00564">564</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
209
References <a class="el" href="qwt__painter_8cpp-source.html#l00564">QwtPainter::drawFocusRect()</a>, and <a class="el" href="qwt__wheel_8cpp-source.html#l00375">drawWheel()</a>.
211
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00547">paintEvent()</a>. </td>
214
<a class="anchor" name="d1feb5d4c2a9b410c4d5d108a5630904"></a><!-- doxytag: member="QwtWheel::drawWheel" ref="d1feb5d4c2a9b410c4d5d108a5630904" args="(QPainter *p, const QRect &r)" --><p>
215
<table class="mdTable" cellpadding="2" cellspacing="0">
218
<table cellpadding="0" cellspacing="0" border="0">
220
<td class="md" nowrap valign="top">void QwtWheel::drawWheel </td>
221
<td class="md" valign="top">( </td>
222
<td class="md" nowrap valign="top">QPainter * </td>
223
<td class="mdname" nowrap> <em>p</em>, </td>
226
<td class="md" nowrap align="right"></td>
228
<td class="md" nowrap>const QRect & </td>
229
<td class="mdname" nowrap> <em>r</em></td>
233
<td class="md">) </td>
234
<td class="md" colspan="2"><code> [protected]</code></td>
240
<table cellspacing="5" cellpadding="0" border="0">
250
<dl compact><dt><b>Parameters:</b></dt><dd>
251
<table border="0" cellspacing="2" cellpadding="0">
252
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>painter </td></tr>
253
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>contents rectangle </td></tr>
258
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00375">375</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
260
References <a class="el" href="qwt__wheel_8cpp-source.html#l00197">drawWheelBackground()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00326">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00339">QwtDoubleRange::minValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>.
262
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00564">draw()</a>. </td>
265
<a class="anchor" name="33b95a78f006f36fee8dafea9531afa9"></a><!-- doxytag: member="QwtWheel::drawWheelBackground" ref="33b95a78f006f36fee8dafea9531afa9" args="(QPainter *p, const QRect &r)" --><p>
266
<table class="mdTable" cellpadding="2" cellspacing="0">
269
<table cellpadding="0" cellspacing="0" border="0">
271
<td class="md" nowrap valign="top">void QwtWheel::drawWheelBackground </td>
272
<td class="md" valign="top">( </td>
273
<td class="md" nowrap valign="top">QPainter * </td>
274
<td class="mdname" nowrap> <em>p</em>, </td>
277
<td class="md" nowrap align="right"></td>
279
<td class="md" nowrap>const QRect & </td>
280
<td class="mdname" nowrap> <em>r</em></td>
284
<td class="md">) </td>
285
<td class="md" colspan="2"><code> [protected]</code></td>
291
<table cellspacing="5" cellpadding="0" border="0">
299
Draw the Wheel's background gradient.
303
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00197">197</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
305
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__wheel_8cpp-source.html#l00096">setColorArray()</a>.
307
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00375">drawWheel()</a>. </td>
310
<a class="anchor" name="2655146c5d017756566691e8142b8fcd"></a><!-- doxytag: member="QwtWheel::getScrollMode" ref="2655146c5d017756566691e8142b8fcd" args="(const QPoint &p, int &scrollMode, int &direction)" --><p>
311
<table class="mdTable" cellpadding="2" cellspacing="0">
314
<table cellpadding="0" cellspacing="0" border="0">
316
<td class="md" nowrap valign="top">void QwtWheel::getScrollMode </td>
317
<td class="md" valign="top">( </td>
318
<td class="md" nowrap valign="top">const QPoint & </td>
319
<td class="mdname" nowrap> <em>p</em>, </td>
322
<td class="md" nowrap align="right"></td>
324
<td class="md" nowrap>int & </td>
325
<td class="mdname" nowrap> <em>scrollMode</em>, </td>
328
<td class="md" nowrap align="right"></td>
330
<td class="md" nowrap>int & </td>
331
<td class="mdname" nowrap> <em>direction</em></td>
335
<td class="md">) </td>
336
<td class="md" colspan="2"><code> [protected, virtual]</code></td>
342
<table cellspacing="5" cellpadding="0" border="0">
350
Determine the scrolling mode and direction corresponding to a specified point.
352
<dl compact><dt><b>Parameters:</b></dt><dd>
353
<table border="0" cellspacing="2" cellpadding="0">
354
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>point </td></tr>
355
<tr><td valign="top"></td><td valign="top"><em>scrollMode</em> </td><td>scrolling mode </td></tr>
356
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>direction </td></tr>
361
Implements <a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">QwtAbstractSlider</a>.
363
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00596">596</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
366
<a class="anchor" name="6bb116593e63e724059c894a6fc41097"></a><!-- doxytag: member="QwtWheel::getValue" ref="6bb116593e63e724059c894a6fc41097" args="(const QPoint &p)" --><p>
367
<table class="mdTable" cellpadding="2" cellspacing="0">
370
<table cellpadding="0" cellspacing="0" border="0">
372
<td class="md" nowrap valign="top">double QwtWheel::getValue </td>
373
<td class="md" valign="top">( </td>
374
<td class="md" nowrap valign="top">const QPoint & </td>
375
<td class="mdname1" valign="top" nowrap> <em>p</em> </td>
376
<td class="md" valign="top"> ) </td>
377
<td class="md" nowrap><code> [protected, virtual]</code></td>
383
<table cellspacing="5" cellpadding="0" border="0">
391
Determine the value corresponding to a specified point.
395
Implements <a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">QwtAbstractSlider</a>.
397
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00494">494</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
399
References <a class="el" href="qwt__double__range_8cpp-source.html#l00326">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00339">QwtDoubleRange::minValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>. </td>
402
<a class="anchor" name="03a6adc4f6516143501c8114f164d47c"></a><!-- doxytag: member="QwtWheel::layoutWheel" ref="03a6adc4f6516143501c8114f164d47c" args="(bool update=true)" --><p>
403
<table class="mdTable" cellpadding="2" cellspacing="0">
406
<table cellpadding="0" cellspacing="0" border="0">
408
<td class="md" nowrap valign="top">void QwtWheel::layoutWheel </td>
409
<td class="md" valign="top">( </td>
410
<td class="md" nowrap valign="top">bool </td>
411
<td class="mdname1" valign="top" nowrap> <em>update</em> = <code>true</code> </td>
412
<td class="md" valign="top"> ) </td>
413
<td class="md" nowrap><code> [protected]</code></td>
419
<table cellspacing="5" cellpadding="0" border="0">
427
Recalculate the slider's geometry and layout based on.
431
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00533">533</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
433
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00524">resizeEvent()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00183">setInternalBorder()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00325">setOrientation()</a>, and <a class="el" href="qwt__wheel_8cpp-source.html#l00624">setWheelWidth()</a>. </td>
436
<a class="anchor" name="55de1496f0eef04da9bc293306a40df6"></a><!-- doxytag: member="QwtWheel::mass" ref="55de1496f0eef04da9bc293306a40df6" args="() const " --><p>
437
<table class="mdTable" cellpadding="2" cellspacing="0">
440
<table cellpadding="0" cellspacing="0" border="0">
442
<td class="md" nowrap valign="top">double QwtWheel::mass </td>
443
<td class="md" valign="top">( </td>
444
<td class="mdname1" valign="top" nowrap> </td>
445
<td class="md" valign="top"> ) </td>
446
<td class="md" nowrap> const<code> [virtual]</code></td>
452
<table cellspacing="5" cellpadding="0" border="0">
460
<dl compact><dt><b>Returns:</b></dt><dd>mass </dd></dl>
463
Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#130105fc2001c53cea65f21b03f0b5db">QwtAbstractSlider</a>.
465
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00168">168</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
467
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00521">QwtAbstractSlider::mass()</a>. </td>
470
<a class="anchor" name="668397451f5ad7b2a78d01d9e7141bcf"></a><!-- doxytag: member="QwtWheel::minimumSizeHint" ref="668397451f5ad7b2a78d01d9e7141bcf" args="() const " --><p>
471
<table class="mdTable" cellpadding="2" cellspacing="0">
474
<table cellpadding="0" cellspacing="0" border="0">
476
<td class="md" nowrap valign="top">QSize QwtWheel::minimumSizeHint </td>
477
<td class="md" valign="top">( </td>
478
<td class="mdname1" valign="top" nowrap> </td>
479
<td class="md" valign="top"> ) </td>
480
<td class="md" nowrap> const<code> [virtual]</code></td>
486
<table cellspacing="5" cellpadding="0" border="0">
494
Return a minimum size hint.
496
<dl compact><dt><b>Warning:</b></dt><dd>The return value is based on the wheel width. </dd></dl>
499
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00642">642</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
501
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>.
503
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00633">sizeHint()</a>. </td>
506
<a class="anchor" name="c2bc645171e2c1dd34acff3d122ab4ba"></a><!-- doxytag: member="QwtWheel::paintEvent" ref="c2bc645171e2c1dd34acff3d122ab4ba" args="(QPaintEvent *e)" --><p>
507
<table class="mdTable" cellpadding="2" cellspacing="0">
510
<table cellpadding="0" cellspacing="0" border="0">
512
<td class="md" nowrap valign="top">void QwtWheel::paintEvent </td>
513
<td class="md" valign="top">( </td>
514
<td class="md" nowrap valign="top">QPaintEvent * </td>
515
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
516
<td class="md" valign="top"> ) </td>
517
<td class="md" nowrap><code> [protected, virtual]</code></td>
523
<table cellspacing="5" cellpadding="0" border="0">
535
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00547">547</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
537
References <a class="el" href="qwt__wheel_8cpp-source.html#l00564">draw()</a>. </td>
540
<a class="anchor" name="358aae0c56eda43f5c9fdb74b89de60a"></a><!-- doxytag: member="QwtWheel::paletteChange" ref="358aae0c56eda43f5c9fdb74b89de60a" args="(const QPalette &)" --><p>
541
<table class="mdTable" cellpadding="2" cellspacing="0">
544
<table cellpadding="0" cellspacing="0" border="0">
546
<td class="md" nowrap valign="top">void QwtWheel::paletteChange </td>
547
<td class="md" valign="top">( </td>
548
<td class="md" nowrap valign="top">const QPalette & </td>
549
<td class="mdname1" valign="top" nowrap> </td>
550
<td class="md" valign="top"> ) </td>
551
<td class="md" nowrap><code> [protected, virtual]</code></td>
557
<table cellspacing="5" cellpadding="0" border="0">
565
Call update() when the palette changes.
569
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00654">654</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
572
<a class="anchor" name="f4fda101be95e70803127cc94fc1e337"></a><!-- doxytag: member="QwtWheel::resizeEvent" ref="f4fda101be95e70803127cc94fc1e337" args="(QResizeEvent *e)" --><p>
573
<table class="mdTable" cellpadding="2" cellspacing="0">
576
<table cellpadding="0" cellspacing="0" border="0">
578
<td class="md" nowrap valign="top">void QwtWheel::resizeEvent </td>
579
<td class="md" valign="top">( </td>
580
<td class="md" nowrap valign="top">QResizeEvent * </td>
581
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
582
<td class="md" valign="top"> ) </td>
583
<td class="md" nowrap><code> [protected, virtual]</code></td>
589
<table cellspacing="5" cellpadding="0" border="0">
601
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00524">524</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
603
References <a class="el" href="qwt__wheel_8cpp-source.html#l00533">layoutWheel()</a>. </td>
606
<a class="anchor" name="f7d32d9b65d1f55913656a44b2a20646"></a><!-- doxytag: member="QwtWheel::setColorArray" ref="f7d32d9b65d1f55913656a44b2a20646" args="()" --><p>
607
<table class="mdTable" cellpadding="2" cellspacing="0">
610
<table cellpadding="0" cellspacing="0" border="0">
612
<td class="md" nowrap valign="top">void QwtWheel::setColorArray </td>
613
<td class="md" valign="top">( </td>
614
<td class="mdname1" valign="top" nowrap> </td>
615
<td class="md" valign="top"> ) </td>
616
<td class="md" nowrap><code> [protected]</code></td>
622
<table cellspacing="5" cellpadding="0" border="0">
630
Set up the color array for the background pixmap.
634
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00096">96</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
636
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00197">drawWheelBackground()</a>. </td>
639
<a class="anchor" name="cb9358f6cf27f1552dd7f97ebfd2d3fb"></a><!-- doxytag: member="QwtWheel::setInternalBorder" ref="cb9358f6cf27f1552dd7f97ebfd2d3fb" args="(int width)" --><p>
640
<table class="mdTable" cellpadding="2" cellspacing="0">
643
<table cellpadding="0" cellspacing="0" border="0">
645
<td class="md" nowrap valign="top">void QwtWheel::setInternalBorder </td>
646
<td class="md" valign="top">( </td>
647
<td class="md" nowrap valign="top">int </td>
648
<td class="mdname1" valign="top" nowrap> <em>w</em> </td>
649
<td class="md" valign="top"> ) </td>
650
<td class="md" nowrap></td>
656
<table cellspacing="5" cellpadding="0" border="0">
664
Set the internal border width of the wheel.
666
The internal border must not be smaller than 1 and is limited in dependence on the wheel's size. Values outside the allowed range will be clipped.<p>
667
The internal border defaults to 2. <dl compact><dt><b>Parameters:</b></dt><dd>
668
<table border="0" cellspacing="2" cellpadding="0">
669
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>border width </td></tr>
674
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00183">183</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
676
References <a class="el" href="qwt__wheel_8cpp-source.html#l00533">layoutWheel()</a>. </td>
679
<a class="anchor" name="811ef1cf04a3d39eb017fcfe808bbd4f"></a><!-- doxytag: member="QwtWheel::setMass" ref="811ef1cf04a3d39eb017fcfe808bbd4f" args="(double val)" --><p>
680
<table class="mdTable" cellpadding="2" cellspacing="0">
683
<table cellpadding="0" cellspacing="0" border="0">
685
<td class="md" nowrap valign="top">void QwtWheel::setMass </td>
686
<td class="md" valign="top">( </td>
687
<td class="md" nowrap valign="top">double </td>
688
<td class="mdname1" valign="top" nowrap> <em>val</em> </td>
689
<td class="md" valign="top"> ) </td>
690
<td class="md" nowrap><code> [virtual]</code></td>
696
<table cellspacing="5" cellpadding="0" border="0">
704
Set the mass of the wheel.
706
Assigning a mass turns the wheel into a flywheel. <dl compact><dt><b>Parameters:</b></dt><dd>
707
<table border="0" cellspacing="2" cellpadding="0">
708
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>the wheel's mass </td></tr>
713
Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#305b137fe4dd80cba307fe1b4bd46272">QwtAbstractSlider</a>.
715
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00612">612</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
717
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00507">QwtAbstractSlider::setMass()</a>. </td>
720
<a class="anchor" name="cae74c8161fd1df728f26253dd1defa8"></a><!-- doxytag: member="QwtWheel::setOrientation" ref="cae74c8161fd1df728f26253dd1defa8" args="(Qt::Orientation)" --><p>
721
<table class="mdTable" cellpadding="2" cellspacing="0">
724
<table cellpadding="0" cellspacing="0" border="0">
726
<td class="md" nowrap valign="top">void QwtWheel::setOrientation </td>
727
<td class="md" valign="top">( </td>
728
<td class="md" nowrap valign="top">Qt::Orientation </td>
729
<td class="mdname1" valign="top" nowrap> <em>o</em> </td>
730
<td class="md" valign="top"> ) </td>
731
<td class="md" nowrap><code> [virtual]</code></td>
737
<table cellspacing="5" cellpadding="0" border="0">
745
Set the wheel's orientation.
747
<dl compact><dt><b>Parameters:</b></dt><dd>
748
<table border="0" cellspacing="2" cellpadding="0">
749
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. Defaults to Qt::Horizontal. </td></tr>
752
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#4d2521b9c31ec64b71d8e1771b156d88">QwtAbstractSlider::orientation()</a> </dd></dl>
755
Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#6b0fdc50bfbb0a8bb40f0dc6bf493b2c">QwtAbstractSlider</a>.
757
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00325">325</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
759
References <a class="el" href="qwt__wheel_8cpp-source.html#l00533">layoutWheel()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00108">QwtAbstractSlider::setOrientation()</a>. </td>
762
<a class="anchor" name="8a970c3b4f776217c284cdce15206530"></a><!-- doxytag: member="QwtWheel::setTickCnt" ref="8a970c3b4f776217c284cdce15206530" args="(int cnt)" --><p>
763
<table class="mdTable" cellpadding="2" cellspacing="0">
766
<table cellpadding="0" cellspacing="0" border="0">
768
<td class="md" nowrap valign="top">void QwtWheel::setTickCnt </td>
769
<td class="md" valign="top">( </td>
770
<td class="md" nowrap valign="top">int </td>
771
<td class="mdname1" valign="top" nowrap> <em>cnt</em> </td>
772
<td class="md" valign="top"> ) </td>
773
<td class="md" nowrap></td>
779
<table cellspacing="5" cellpadding="0" border="0">
787
Adjust the number of grooves in the wheel's surface.
789
The number of grooves is limited to 6 <= cnt <= 50. Values outside this range will be clipped. The default value is 10. <dl compact><dt><b>Parameters:</b></dt><dd>
790
<table border="0" cellspacing="2" cellpadding="0">
791
<tr><td valign="top"></td><td valign="top"><em>cnt</em> </td><td>Number of grooves per 360 degrees </td></tr>
796
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00154">154</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
799
<a class="anchor" name="3bf43e42e715577f05be9525be1a8e0e"></a><!-- doxytag: member="QwtWheel::setTotalAngle" ref="3bf43e42e715577f05be9525be1a8e0e" args="(double angle)" --><p>
800
<table class="mdTable" cellpadding="2" cellspacing="0">
803
<table cellpadding="0" cellspacing="0" border="0">
805
<td class="md" nowrap valign="top">void QwtWheel::setTotalAngle </td>
806
<td class="md" valign="top">( </td>
807
<td class="md" nowrap valign="top">double </td>
808
<td class="mdname1" valign="top" nowrap> <em>angle</em> </td>
809
<td class="md" valign="top"> ) </td>
810
<td class="md" nowrap></td>
816
<table cellspacing="5" cellpadding="0" border="0">
824
Set the total angle which the wheel can be turned.
826
One full turn of the wheel corresponds to an angle of 360 degrees. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value.<p>
827
The default setting of the total angle is 360 degrees. <dl compact><dt><b>Parameters:</b></dt><dd>
828
<table border="0" cellspacing="2" cellpadding="0">
829
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td>total angle in degrees </td></tr>
834
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00304">304</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
837
<a class="anchor" name="d90821d39ff243db547a1c9b0b0ef545"></a><!-- doxytag: member="QwtWheel::setViewAngle" ref="d90821d39ff243db547a1c9b0b0ef545" args="(double angle)" --><p>
838
<table class="mdTable" cellpadding="2" cellspacing="0">
841
<table cellpadding="0" cellspacing="0" border="0">
843
<td class="md" nowrap valign="top">void QwtWheel::setViewAngle </td>
844
<td class="md" valign="top">( </td>
845
<td class="md" nowrap valign="top">double </td>
846
<td class="mdname1" valign="top" nowrap> <em>angle</em> </td>
847
<td class="md" valign="top"> ) </td>
848
<td class="md" nowrap></td>
854
<table cellspacing="5" cellpadding="0" border="0">
862
Specify the visible portion of the wheel.
864
You may use this function for fine-tuning the appearance of the wheel. The default value is 175 degrees. The value is limited from 10 to 175 degrees. <dl compact><dt><b>Parameters:</b></dt><dd>
865
<table border="0" cellspacing="2" cellpadding="0">
866
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td>Visible angle in degrees </td></tr>
871
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00359">359</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>. </td>
874
<a class="anchor" name="fc5416139e1c962b950a8d48fe465209"></a><!-- doxytag: member="QwtWheel::setWheelWidth" ref="fc5416139e1c962b950a8d48fe465209" args="(int w)" --><p>
875
<table class="mdTable" cellpadding="2" cellspacing="0">
878
<table cellpadding="0" cellspacing="0" border="0">
880
<td class="md" nowrap valign="top">void QwtWheel::setWheelWidth </td>
881
<td class="md" valign="top">( </td>
882
<td class="md" nowrap valign="top">int </td>
883
<td class="mdname1" valign="top" nowrap> <em>w</em> </td>
884
<td class="md" valign="top"> ) </td>
885
<td class="md" nowrap></td>
891
<table cellspacing="5" cellpadding="0" border="0">
899
Set the width of the wheel.
901
Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation. <dl compact><dt><b>Parameters:</b></dt><dd>
902
<table border="0" cellspacing="2" cellpadding="0">
903
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>the wheel's width </td></tr>
908
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00624">624</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
910
References <a class="el" href="qwt__wheel_8cpp-source.html#l00533">layoutWheel()</a>. </td>
913
<a class="anchor" name="77404d4e604a196bd4e809ec7d9f2076"></a><!-- doxytag: member="QwtWheel::sizeHint" ref="77404d4e604a196bd4e809ec7d9f2076" args="() const " --><p>
914
<table class="mdTable" cellpadding="2" cellspacing="0">
917
<table cellpadding="0" cellspacing="0" border="0">
919
<td class="md" nowrap valign="top">QSize QwtWheel::sizeHint </td>
920
<td class="md" valign="top">( </td>
921
<td class="mdname1" valign="top" nowrap> </td>
922
<td class="md" valign="top"> ) </td>
923
<td class="md" nowrap> const<code> [virtual]</code></td>
929
<table cellspacing="5" cellpadding="0" border="0">
937
<dl compact><dt><b>Returns:</b></dt><dd>a size hint </dd></dl>
940
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00633">633</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
942
References <a class="el" href="qwt__wheel_8cpp-source.html#l00642">minimumSizeHint()</a>. </td>
945
<a class="anchor" name="0fa3d4f4189f7bb6ee0944cd30060eb5"></a><!-- doxytag: member="QwtWheel::valueChange" ref="0fa3d4f4189f7bb6ee0944cd30060eb5" args="()" --><p>
946
<table class="mdTable" cellpadding="2" cellspacing="0">
949
<table cellpadding="0" cellspacing="0" border="0">
951
<td class="md" nowrap valign="top">void QwtWheel::valueChange </td>
952
<td class="md" valign="top">( </td>
953
<td class="mdname1" valign="top" nowrap> </td>
954
<td class="md" valign="top"> ) </td>
955
<td class="md" nowrap><code> [protected, virtual]</code></td>
961
<table cellspacing="5" cellpadding="0" border="0">
973
Reimplemented from <a class="el" href="class_qwt_abstract_slider.html#2f04dc51e4402b51fef3250bcc99dc7f">QwtAbstractSlider</a>.
975
Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00582">582</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.
977
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00484">QwtAbstractSlider::valueChange()</a>. </td>
980
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:26:19 2007 for Qwt User's Guide by
981
<a href="http://www.doxygen.org/index.html">
982
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>