~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.0.1/doc/man/man3/QwtDial.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtDial" 3 "26 Feb 2007" "Version 5.0.1" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtDial \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
Inherits \fBQwtAbstractSlider\fP.
10
 
.PP
11
 
Inherited by \fBQwtAnalogClock\fP, and \fBQwtCompass\fP.
12
 
.PP
13
 
.SH "Detailed Description"
14
 
.PP 
15
 
\fBQwtDial\fP class provides a rounded range control. 
16
 
 
17
 
\fBQwtDial\fP is intended as base class for dial widgets like speedometers, compass widgets, clocks ...
18
 
.PP
19
 
.PP
20
 
A dial contains a scale and a needle indicating the current value of the dial. Depending on Mode one of them is fixed and the other is rotating. If not \fBisReadOnly()\fP the dial can be rotated by dragging the mouse or using keyboard inputs (see \fBkeyPressEvent()\fP). A dial might be wrapping, what means a rotation below/above one limit continues on the other limit (f.e compass). The scale might cover any arc of the dial, its values are related to the \fBorigin()\fP of the dial.
21
 
.PP
22
 
Qwt is missing a set of good looking needles (\fBQwtDialNeedle\fP). Contributions are very welcome.
23
 
.PP
24
 
\fBSee also:\fP
25
 
.RS 4
26
 
\fBQwtCompass\fP, \fBQwtAnalogClock\fP, \fBQwtDialNeedle\fP 
27
 
.RE
28
 
.PP
29
 
\fBNote:\fP
30
 
.RS 4
31
 
The examples/dials example shows different types of dials. 
32
 
.RE
33
 
.PP
34
 
 
35
 
.PP
36
 
Definition at line 67 of file qwt_dial.h.
37
 
.SS "Public Types"
38
 
 
39
 
.in +1c
40
 
.ti -1c
41
 
.RI "enum \fBShadow\fP { \fBPlain\fP =  QFrame::Plain, \fBRaised\fP =  QFrame::Raised, \fBSunken\fP =  QFrame::Sunken }"
42
 
.br
43
 
.ti -1c
44
 
.RI "enum \fBScaleOptions\fP { \fBScaleBackbone\fP =  1, \fBScaleTicks\fP =  2, \fBScaleLabel\fP =  4 }"
45
 
.br
46
 
.ti -1c
47
 
.RI "enum \fBMode\fP { \fBRotateNeedle\fP, \fBRotateScale\fP }"
48
 
.br
49
 
.in -1c
50
 
.SS "Public Member Functions"
51
 
 
52
 
.in +1c
53
 
.ti -1c
54
 
.RI "\fBQwtDial\fP (QWidget *parent=NULL)"
55
 
.br
56
 
.ti -1c
57
 
.RI "virtual \fB~QwtDial\fP ()"
58
 
.br
59
 
.ti -1c
60
 
.RI "void \fBsetFrameShadow\fP (\fBShadow\fP)"
61
 
.br
62
 
.ti -1c
63
 
.RI "\fBShadow\fP \fBframeShadow\fP () const "
64
 
.br
65
 
.ti -1c
66
 
.RI "bool \fBhasVisibleBackground\fP () const "
67
 
.br
68
 
.ti -1c
69
 
.RI "void \fBshowBackground\fP (bool)"
70
 
.br
71
 
.ti -1c
72
 
.RI "void \fBsetLineWidth\fP (int)"
73
 
.br
74
 
.ti -1c
75
 
.RI "int \fBlineWidth\fP () const "
76
 
.br
77
 
.ti -1c
78
 
.RI "void \fBsetMode\fP (\fBMode\fP)"
79
 
.br
80
 
.ti -1c
81
 
.RI "\fBMode\fP \fBmode\fP () const "
82
 
.br
83
 
.ti -1c
84
 
.RI "virtual void \fBsetWrapping\fP (bool)"
85
 
.br
86
 
.ti -1c
87
 
.RI "bool \fBwrapping\fP () const "
88
 
.br
89
 
.ti -1c
90
 
.RI "virtual void \fBsetScale\fP (int maxMajIntv, int maxMinIntv, double step=0.0)"
91
 
.br
92
 
.ti -1c
93
 
.RI "void \fBsetScaleArc\fP (double min, double max)"
94
 
.br
95
 
.ti -1c
96
 
.RI "void \fBsetScaleOptions\fP (int)"
97
 
.br
98
 
.ti -1c
99
 
.RI "void \fBsetScaleTicks\fP (int minLen, int medLen, int majLen, int penWidth=1)"
100
 
.br
101
 
.ti -1c
102
 
.RI "double \fBminScaleArc\fP () const "
103
 
.br
104
 
.ti -1c
105
 
.RI "double \fBmaxScaleArc\fP () const "
106
 
.br
107
 
.ti -1c
108
 
.RI "virtual void \fBsetOrigin\fP (double)"
109
 
.br
110
 
.ti -1c
111
 
.RI "double \fBorigin\fP () const "
112
 
.br
113
 
.ti -1c
114
 
.RI "virtual void \fBsetNeedle\fP (\fBQwtDialNeedle\fP *)"
115
 
.br
116
 
.ti -1c
117
 
.RI "const \fBQwtDialNeedle\fP * \fBneedle\fP () const "
118
 
.br
119
 
.ti -1c
120
 
.RI "\fBQwtDialNeedle\fP * \fBneedle\fP ()"
121
 
.br
122
 
.ti -1c
123
 
.RI "QRect \fBboundingRect\fP () const "
124
 
.br
125
 
.ti -1c
126
 
.RI "QRect \fBcontentsRect\fP () const "
127
 
.br
128
 
.ti -1c
129
 
.RI "virtual QRect \fBscaleContentsRect\fP () const "
130
 
.br
131
 
.ti -1c
132
 
.RI "virtual QSize \fBsizeHint\fP () const "
133
 
.br
134
 
.ti -1c
135
 
.RI "virtual QSize \fBminimumSizeHint\fP () const "
136
 
.br
137
 
.ti -1c
138
 
.RI "virtual void \fBsetScaleDraw\fP (\fBQwtDialScaleDraw\fP *)"
139
 
.br
140
 
.ti -1c
141
 
.RI "\fBQwtDialScaleDraw\fP * \fBscaleDraw\fP ()"
142
 
.br
143
 
.ti -1c
144
 
.RI "const \fBQwtDialScaleDraw\fP * \fBscaleDraw\fP () const "
145
 
.br
146
 
.in -1c
147
 
.SS "Protected Member Functions"
148
 
 
149
 
.in +1c
150
 
.ti -1c
151
 
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
152
 
.br
153
 
.ti -1c
154
 
.RI "virtual void \fBresizeEvent\fP (QResizeEvent *)"
155
 
.br
156
 
.ti -1c
157
 
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
158
 
.br
159
 
.ti -1c
160
 
.RI "virtual void \fBupdateMask\fP ()"
161
 
.br
162
 
.ti -1c
163
 
.RI "virtual void \fBdrawFrame\fP (QPainter *p)"
164
 
.br
165
 
.ti -1c
166
 
.RI "virtual void \fBdrawContents\fP (QPainter *) const "
167
 
.br
168
 
.ti -1c
169
 
.RI "virtual void \fBdrawFocusIndicator\fP (QPainter *) const "
170
 
.br
171
 
.ti -1c
172
 
.RI "virtual void \fBdrawScale\fP (QPainter *, const QPoint &center, int radius, double origin, double arcMin, double arcMax) const "
173
 
.br
174
 
.ti -1c
175
 
.RI "virtual void \fBdrawScaleContents\fP (QPainter *painter, const QPoint &center, int radius) const "
176
 
.br
177
 
.ti -1c
178
 
.RI "virtual void \fBdrawNeedle\fP (QPainter *, const QPoint &, int radius, double direction, QPalette::ColorGroup) const "
179
 
.br
180
 
.ti -1c
181
 
.RI "virtual \fBQwtText\fP \fBscaleLabel\fP (double) const "
182
 
.br
183
 
.ti -1c
184
 
.RI "void \fBupdateScale\fP ()"
185
 
.br
186
 
.ti -1c
187
 
.RI "virtual void \fBrangeChange\fP ()"
188
 
.br
189
 
.ti -1c
190
 
.RI "virtual void \fBvalueChange\fP ()"
191
 
.br
192
 
.ti -1c
193
 
.RI "virtual double \fBgetValue\fP (const QPoint &)"
194
 
.br
195
 
.ti -1c
196
 
.RI "virtual void \fBgetScrollMode\fP (const QPoint &, int &scrollMode, int &direction)"
197
 
.br
198
 
.in -1c
199
 
.SS "Friends"
200
 
 
201
 
.in +1c
202
 
.ti -1c
203
 
.RI "class \fBQwtDialScaleDraw\fP"
204
 
.br
205
 
.in -1c
206
 
.SH "Member Enumeration Documentation"
207
 
.PP 
208
 
.SS "enum \fBQwtDial::Mode\fP"
209
 
.PP
210
 
In case of RotateNeedle the needle is rotating, in case of RotateScale, the needle points to \fBorigin()\fP and the scale is rotating. 
211
 
.PP
212
 
Definition at line 112 of file qwt_dial.h.
213
 
.SS "enum \fBQwtDial::ScaleOptions\fP"
214
 
.PP
215
 
see \fBQwtDial::setScaleOptions\fP 
216
 
.PP
217
 
Definition at line 100 of file qwt_dial.h.
218
 
.SS "enum \fBQwtDial::Shadow\fP"
219
 
.PP
220
 
Frame shadow. 
221
 
.PP
222
 
Unfortunately it is not possible to use QFrame::Shadow as a property of a widget that is not derived from QFrame. The following enum is made for the designer only. It is safe to use QFrame::Shadow instead. 
223
 
.PP
224
 
Definition at line 92 of file qwt_dial.h.
225
 
.SH "Constructor & Destructor Documentation"
226
 
.PP 
227
 
.SS "QwtDial::QwtDial (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
228
 
.PP
229
 
Constructor. 
230
 
.PP
231
 
\fBParameters:\fP
232
 
.RS 4
233
 
\fIparent\fP Parent widget
234
 
.RE
235
 
.PP
236
 
Create a dial widget with no scale and no needle. The default origin is 90.0 with no valid value. It accepts mouse and keyboard inputs and has no step size. The default mode is QwtDial::RotateNeedle. 
237
 
.PP
238
 
Definition at line 143 of file qwt_dial.cpp.
239
 
.SS "QwtDial::~QwtDial ()\fC [virtual]\fP"
240
 
.PP
241
 
Destructor. 
242
 
.PP
243
 
Definition at line 207 of file qwt_dial.cpp.
244
 
.SH "Member Function Documentation"
245
 
.PP 
246
 
.SS "QRect QwtDial::boundingRect () const"
247
 
.PP
248
 
\fBReturns:\fP
249
 
.RS 4
250
 
bounding rect of the dial including the frame 
251
 
.RE
252
 
.PP
253
 
\fBSee also:\fP
254
 
.RS 4
255
 
\fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBcontentsRect()\fP 
256
 
.RE
257
 
.PP
258
 
 
259
 
.PP
260
 
Definition at line 311 of file qwt_dial.cpp.
261
 
.PP
262
 
Referenced by contentsRect(), drawContents(), drawFrame(), and updateMask().
263
 
.SS "QRect QwtDial::contentsRect () const"
264
 
.PP
265
 
\fBReturns:\fP
266
 
.RS 4
267
 
bounding rect of the circle inside the frame 
268
 
.RE
269
 
.PP
270
 
\fBSee also:\fP
271
 
.RS 4
272
 
\fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBboundingRect()\fP 
273
 
.RE
274
 
.PP
275
 
 
276
 
.PP
277
 
Definition at line 294 of file qwt_dial.cpp.
278
 
.PP
279
 
References boundingRect(), and lineWidth().
280
 
.PP
281
 
Referenced by drawFocusIndicator(), getScrollMode(), and scaleContentsRect().
282
 
.SS "void QwtDial::drawContents (QPainter * painter) const\fC [protected, virtual]\fP"
283
 
.PP
284
 
Draw the contents inside the frame. 
285
 
.PP
286
 
QColorGroup::Background is the background color outside of the frame. QColorGroup::Base is the background color inside the frame. QColorGroup::Foreground is the background color inside the scale.
287
 
.PP
288
 
\fBParameters:\fP
289
 
.RS 4
290
 
\fIpainter\fP Painter 
291
 
.RE
292
 
.PP
293
 
\fBSee also:\fP
294
 
.RS 4
295
 
\fBboundingRect()\fP, \fBcontentsRect()\fP, \fBscaleContentsRect()\fP, QWidget::setPalette 
296
 
.RE
297
 
.PP
298
 
 
299
 
.PP
300
 
Definition at line 572 of file qwt_dial.cpp.
301
 
.PP
302
 
References boundingRect(), drawNeedle(), drawScale(), drawScaleContents(), QwtAbstractSlider::isValid(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), mode(), origin(), scaleContentsRect(), and QwtDoubleRange::value().
303
 
.PP
304
 
Referenced by paintEvent().
305
 
.SS "void QwtDial::drawFocusIndicator (QPainter * painter) const\fC [protected, virtual]\fP"
306
 
.PP
307
 
Draw a dotted round circle, if !isReadOnly()
308
 
.PP
309
 
\fBParameters:\fP
310
 
.RS 4
311
 
\fIpainter\fP Painter 
312
 
.RE
313
 
.PP
314
 
 
315
 
.PP
316
 
Definition at line 463 of file qwt_dial.cpp.
317
 
.PP
318
 
References contentsRect(), and QwtAbstractSlider::isReadOnly().
319
 
.PP
320
 
Referenced by paintEvent().
321
 
.SS "void QwtDial::drawFrame (QPainter * painter)\fC [protected, virtual]\fP"
322
 
.PP
323
 
Draw the frame around the dial
324
 
.PP
325
 
\fBParameters:\fP
326
 
.RS 4
327
 
\fIpainter\fP Painter 
328
 
.RE
329
 
.PP
330
 
\fBSee also:\fP
331
 
.RS 4
332
 
\fBlineWidth()\fP, \fBframeShadow()\fP 
333
 
.RE
334
 
.PP
335
 
 
336
 
.PP
337
 
Definition at line 510 of file qwt_dial.cpp.
338
 
.PP
339
 
References boundingRect(), QwtPainter::drawRoundFrame(), and lineWidth().
340
 
.PP
341
 
Referenced by paintEvent().
342
 
.SS "void QwtDial::drawNeedle (QPainter * painter, const QPoint & center, int radius, double direction, QPalette::ColorGroup cg) const\fC [protected, virtual]\fP"
343
 
.PP
344
 
Draw the needle
345
 
.PP
346
 
\fBParameters:\fP
347
 
.RS 4
348
 
\fIpainter\fP Painter 
349
 
.br
350
 
\fIcenter\fP Center of the dial 
351
 
.br
352
 
\fIradius\fP Length for the needle 
353
 
.br
354
 
\fIdirection\fP Direction of the needle in degrees, counter clockwise 
355
 
.br
356
 
\fIcg\fP ColorGroup 
357
 
.RE
358
 
.PP
359
 
 
360
 
.PP
361
 
Reimplemented in \fBQwtAnalogClock\fP.
362
 
.PP
363
 
Definition at line 682 of file qwt_dial.cpp.
364
 
.PP
365
 
Referenced by drawContents().
366
 
.SS "void QwtDial::drawScale (QPainter * painter, const QPoint & center, int radius, double origin, double minArc, double maxArc) const\fC [protected, virtual]\fP"
367
 
.PP
368
 
Draw the scale
369
 
.PP
370
 
\fBParameters:\fP
371
 
.RS 4
372
 
\fIpainter\fP Painter 
373
 
.br
374
 
\fIcenter\fP Center of the dial 
375
 
.br
376
 
\fIradius\fP Radius of the scale 
377
 
.br
378
 
\fIorigin\fP Origin of the scale 
379
 
.br
380
 
\fIminArc\fP Minimum of the arc 
381
 
.br
382
 
\fImaxArc\fP Minimum of the arc
383
 
.RE
384
 
.PP
385
 
\fBSee also:\fP
386
 
.RS 4
387
 
QwtAbstractScaleDraw::setAngleRange 
388
 
.RE
389
 
.PP
390
 
 
391
 
.PP
392
 
Definition at line 704 of file qwt_dial.cpp.
393
 
.PP
394
 
Referenced by drawContents().
395
 
.SS "void QwtDial::drawScaleContents (QPainter * painter, const QPoint & center, int radius) const\fC [protected, virtual]\fP"
396
 
.PP
397
 
Draw the contents inside the scale
398
 
.PP
399
 
Paints nothing.
400
 
.PP
401
 
\fBParameters:\fP
402
 
.RS 4
403
 
\fIpainter\fP Painter 
404
 
.br
405
 
\fIcenter\fP Center of the contents circle 
406
 
.br
407
 
\fIradius\fP Radius of the contents circle 
408
 
.RE
409
 
.PP
410
 
 
411
 
.PP
412
 
Reimplemented in \fBQwtCompass\fP.
413
 
.PP
414
 
Definition at line 755 of file qwt_dial.cpp.
415
 
.PP
416
 
Referenced by drawContents().
417
 
.SS "\fBQwtDial::Shadow\fP QwtDial::frameShadow () const"
418
 
.PP
419
 
\fBReturns:\fP
420
 
.RS 4
421
 
Frame shadow /sa \fBsetFrameShadow()\fP, \fBlineWidth()\fP, QFrame::frameShadow 
422
 
.RE
423
 
.PP
424
 
 
425
 
.PP
426
 
Definition at line 258 of file qwt_dial.cpp.
427
 
.SS "void QwtDial::getScrollMode (const QPoint & p, int & scrollMode, int & direction)\fC [protected, virtual]\fP"
428
 
.PP
429
 
\fBSee also:\fP
430
 
.RS 4
431
 
\fBQwtAbstractSlider::getScrollMode\fP 
432
 
.RE
433
 
.PP
434
 
 
435
 
.PP
436
 
Implements \fBQwtAbstractSlider\fP.
437
 
.PP
438
 
Definition at line 1155 of file qwt_dial.cpp.
439
 
.PP
440
 
References contentsRect().
441
 
.SS "double QwtDial::getValue (const QPoint & pos)\fC [protected, virtual]\fP"
442
 
.PP
443
 
Find the value for a given position
444
 
.PP
445
 
\fBParameters:\fP
446
 
.RS 4
447
 
\fIpos\fP Position 
448
 
.RE
449
 
.PP
450
 
\fBReturns:\fP
451
 
.RS 4
452
 
Value 
453
 
.RE
454
 
.PP
455
 
 
456
 
.PP
457
 
Implements \fBQwtAbstractSlider\fP.
458
 
.PP
459
 
Definition at line 1052 of file qwt_dial.cpp.
460
 
.PP
461
 
References QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), mode(), QwtAbstractSlider::mouseOffset(), QwtAbstractSlider::scrollMode(), QwtAbstractSlider::setMouseOffset(), QwtDoubleRange::value(), and wrapping().
462
 
.SS "bool QwtDial::hasVisibleBackground () const"
463
 
.PP
464
 
true when the area outside of the frame is visible
465
 
.PP
466
 
\fBSee also:\fP
467
 
.RS 4
468
 
\fBshowBackground()\fP, setMask() 
469
 
.RE
470
 
.PP
471
 
 
472
 
.PP
473
 
Definition at line 234 of file qwt_dial.cpp.
474
 
.PP
475
 
Referenced by resizeEvent().
476
 
.SS "void QwtDial::keyPressEvent (QKeyEvent * e)\fC [protected, virtual]\fP"
477
 
.PP
478
 
Handles key events
479
 
.PP
480
 
.IP "\(bu" 2
481
 
Key_Down, KeyLeft
482
 
.br
483
 
 Decrement by 1
484
 
.IP "\(bu" 2
485
 
Key_Prior
486
 
.br
487
 
 Decrement by \fBpageSize()\fP
488
 
.IP "\(bu" 2
489
 
Key_Home
490
 
.br
491
 
 Set the value to \fBminValue()\fP
492
 
.PP
493
 
.PP
494
 
.IP "\(bu" 2
495
 
Key_Up, KeyRight
496
 
.br
497
 
 Increment by 1
498
 
.IP "\(bu" 2
499
 
Key_Next
500
 
.br
501
 
 Increment by \fBpageSize()\fP
502
 
.IP "\(bu" 2
503
 
Key_End
504
 
.br
505
 
 Set the value to \fBmaxValue()\fP
506
 
.PP
507
 
.PP
508
 
\fBSee also:\fP
509
 
.RS 4
510
 
\fBisReadOnly()\fP 
511
 
.RE
512
 
.PP
513
 
 
514
 
.PP
515
 
Reimplemented from \fBQwtAbstractSlider\fP.
516
 
.PP
517
 
Reimplemented in \fBQwtCompass\fP.
518
 
.PP
519
 
Definition at line 1187 of file qwt_dial.cpp.
520
 
.PP
521
 
References QwtDoubleRange::incValue(), QwtAbstractSlider::isReadOnly(), QwtAbstractSlider::isValid(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), QwtDoubleRange::pageSize(), QwtDoubleRange::prevValue(), and QwtAbstractSlider::setValue().
522
 
.SS "int QwtDial::lineWidth () const"
523
 
.PP
524
 
\fBReturns:\fP
525
 
.RS 4
526
 
Line width of the frame 
527
 
.RE
528
 
.PP
529
 
\fBSee also:\fP
530
 
.RS 4
531
 
\fBsetLineWidth()\fP, \fBframeShadow()\fP, \fBlineWidth()\fP 
532
 
.RE
533
 
.PP
534
 
 
535
 
.PP
536
 
Definition at line 285 of file qwt_dial.cpp.
537
 
.PP
538
 
Referenced by contentsRect(), drawFrame(), minimumSizeHint(), setFrameShadow(), and sizeHint().
539
 
.SS "double QwtDial::maxScaleArc () const"
540
 
.PP
541
 
\fBReturns:\fP
542
 
.RS 4
543
 
Upper limit of the scale arc 
544
 
.RE
545
 
.PP
546
 
 
547
 
.PP
548
 
Definition at line 940 of file qwt_dial.cpp.
549
 
.SS "QSize QwtDial::minimumSizeHint () const\fC [virtual]\fP"
550
 
.PP
551
 
Return a minimum size hint. 
552
 
.PP
553
 
\fBWarning:\fP
554
 
.RS 4
555
 
The return value of \fBQwtDial::minimumSizeHint()\fP depends on the font and the scale. 
556
 
.RE
557
 
.PP
558
 
 
559
 
.PP
560
 
Definition at line 1017 of file qwt_dial.cpp.
561
 
.PP
562
 
References lineWidth().
563
 
.SS "double QwtDial::minScaleArc () const"
564
 
.PP
565
 
\fBReturns:\fP
566
 
.RS 4
567
 
Lower limit of the scale arc 
568
 
.RE
569
 
.PP
570
 
 
571
 
.PP
572
 
Definition at line 934 of file qwt_dial.cpp.
573
 
.SS "\fBQwtDial::Mode\fP QwtDial::mode () const"
574
 
.PP
575
 
\fBReturns:\fP
576
 
.RS 4
577
 
mode of the dial.
578
 
.RE
579
 
.PP
580
 
The value of the dial is indicated by the difference between the origin and the direction of the needle. In case of QwtDial::RotateNeedle the scale arc is fixed to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating.
581
 
.PP
582
 
The default mode is QwtDial::RotateNeedle.
583
 
.PP
584
 
\fBSee also:\fP
585
 
.RS 4
586
 
\fBsetMode()\fP, \fBorigin()\fP, \fBsetScaleArc()\fP, \fBvalue()\fP 
587
 
.RE
588
 
.PP
589
 
 
590
 
.PP
591
 
Definition at line 382 of file qwt_dial.cpp.
592
 
.PP
593
 
Referenced by drawContents(), QwtCompass::drawScaleContents(), and getValue().
594
 
.SS "\fBQwtDialNeedle\fP * QwtDial::needle ()"
595
 
.PP
596
 
\fBReturns:\fP
597
 
.RS 4
598
 
needle 
599
 
.RE
600
 
.PP
601
 
\fBSee also:\fP
602
 
.RS 4
603
 
\fBsetNeedle()\fP 
604
 
.RE
605
 
.PP
606
 
 
607
 
.PP
608
 
Definition at line 796 of file qwt_dial.cpp.
609
 
.SS "const \fBQwtDialNeedle\fP * QwtDial::needle () const"
610
 
.PP
611
 
\fBReturns:\fP
612
 
.RS 4
613
 
needle 
614
 
.RE
615
 
.PP
616
 
\fBSee also:\fP
617
 
.RS 4
618
 
\fBsetNeedle()\fP 
619
 
.RE
620
 
.PP
621
 
 
622
 
.PP
623
 
Definition at line 787 of file qwt_dial.cpp.
624
 
.PP
625
 
Referenced by QwtAnalogClock::drawHand(), QwtAnalogClock::setHand(), and setNeedle().
626
 
.SS "double QwtDial::origin () const"
627
 
.PP
628
 
The origin is the angle where scale and needle is relative to.
629
 
.PP
630
 
\fBReturns:\fP
631
 
.RS 4
632
 
Origin of the dial 
633
 
.RE
634
 
.PP
635
 
\fBSee also:\fP
636
 
.RS 4
637
 
\fBsetOrigin()\fP 
638
 
.RE
639
 
.PP
640
 
 
641
 
.PP
642
 
Definition at line 965 of file qwt_dial.cpp.
643
 
.PP
644
 
Referenced by drawContents(), QwtAnalogClock::drawNeedle(), and QwtCompass::drawScaleContents().
645
 
.SS "void QwtDial::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP"
646
 
.PP
647
 
Paint the dial 
648
 
.PP
649
 
\fBParameters:\fP
650
 
.RS 4
651
 
\fIe\fP Paint event 
652
 
.RE
653
 
.PP
654
 
 
655
 
.PP
656
 
Definition at line 431 of file qwt_dial.cpp.
657
 
.PP
658
 
References drawContents(), drawFocusIndicator(), and drawFrame().
659
 
.SS "void QwtDial::rangeChange ()\fC [protected, virtual]\fP"
660
 
.PP
661
 
\fBQwtDoubleRange\fP update hook. 
662
 
.PP
663
 
Reimplemented from \fBQwtDoubleRange\fP.
664
 
.PP
665
 
Definition at line 802 of file qwt_dial.cpp.
666
 
.PP
667
 
References updateScale().
668
 
.SS "void QwtDial::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP"
669
 
.PP
670
 
Resize the dial widget 
671
 
.PP
672
 
\fBParameters:\fP
673
 
.RS 4
674
 
\fIe\fP Resize event 
675
 
.RE
676
 
.PP
677
 
 
678
 
.PP
679
 
Definition at line 419 of file qwt_dial.cpp.
680
 
.PP
681
 
References hasVisibleBackground(), and updateMask().
682
 
.SS "QRect QwtDial::scaleContentsRect () const\fC [virtual]\fP"
683
 
.PP
684
 
\fBReturns:\fP
685
 
.RS 4
686
 
rect inside the scale 
687
 
.RE
688
 
.PP
689
 
\fBSee also:\fP
690
 
.RS 4
691
 
\fBsetLineWidth()\fP, \fBboundingRect()\fP, \fBcontentsRect()\fP 
692
 
.RE
693
 
.PP
694
 
 
695
 
.PP
696
 
Definition at line 324 of file qwt_dial.cpp.
697
 
.PP
698
 
References contentsRect().
699
 
.PP
700
 
Referenced by drawContents().
701
 
.SS "const \fBQwtDialScaleDraw\fP * QwtDial::scaleDraw () const"
702
 
.PP
703
 
Return the scale draw. 
704
 
.PP
705
 
Definition at line 833 of file qwt_dial.cpp.
706
 
.SS "\fBQwtDialScaleDraw\fP * QwtDial::scaleDraw ()"
707
 
.PP
708
 
Return the scale draw. 
709
 
.PP
710
 
Definition at line 827 of file qwt_dial.cpp.
711
 
.PP
712
 
Referenced by setScaleDraw().
713
 
.SS "\fBQwtText\fP QwtDial::scaleLabel (double value) const\fC [protected, virtual]\fP"
714
 
.PP
715
 
Find the label for a value
716
 
.PP
717
 
\fBParameters:\fP
718
 
.RS 4
719
 
\fIvalue\fP Value 
720
 
.RE
721
 
.PP
722
 
\fBReturns:\fP
723
 
.RS 4
724
 
label 
725
 
.RE
726
 
.PP
727
 
 
728
 
.PP
729
 
Reimplemented in \fBQwtAnalogClock\fP, and \fBQwtCompass\fP.
730
 
.PP
731
 
Definition at line 923 of file qwt_dial.cpp.
732
 
.PP
733
 
Referenced by QwtDialScaleDraw::label().
734
 
.SS "void QwtDial::setFrameShadow (\fBShadow\fP shadow)"
735
 
.PP
736
 
Sets the frame shadow value from the frame style. 
737
 
.PP
738
 
\fBParameters:\fP
739
 
.RS 4
740
 
\fIshadow\fP Frame shadow 
741
 
.RE
742
 
.PP
743
 
\fBSee also:\fP
744
 
.RS 4
745
 
\fBsetLineWidth()\fP, QFrame::setFrameShadow() 
746
 
.RE
747
 
.PP
748
 
 
749
 
.PP
750
 
Definition at line 244 of file qwt_dial.cpp.
751
 
.PP
752
 
References lineWidth().
753
 
.SS "void QwtDial::setLineWidth (int lineWidth)"
754
 
.PP
755
 
Sets the line width
756
 
.PP
757
 
\fBParameters:\fP
758
 
.RS 4
759
 
\fIlineWidth\fP Line width 
760
 
.RE
761
 
.PP
762
 
\fBSee also:\fP
763
 
.RS 4
764
 
\fBsetFrameShadow()\fP 
765
 
.RE
766
 
.PP
767
 
 
768
 
.PP
769
 
Definition at line 269 of file qwt_dial.cpp.
770
 
.SS "void QwtDial::setMode (\fBMode\fP mode)"
771
 
.PP
772
 
Change the mode of the meter. 
773
 
.PP
774
 
\fBParameters:\fP
775
 
.RS 4
776
 
\fImode\fP New mode
777
 
.RE
778
 
.PP
779
 
The value of the meter is indicated by the difference between north of the scale and the direction of the needle. In case of QwtDial::RotateNeedle north is pointing to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating.
780
 
.PP
781
 
The default mode is QwtDial::RotateNeedle.
782
 
.PP
783
 
\fBSee also:\fP
784
 
.RS 4
785
 
\fBmode()\fP, \fBsetValue()\fP, \fBsetOrigin()\fP 
786
 
.RE
787
 
.PP
788
 
 
789
 
.PP
790
 
Definition at line 359 of file qwt_dial.cpp.
791
 
.SS "void QwtDial::setNeedle (\fBQwtDialNeedle\fP * needle)\fC [virtual]\fP"
792
 
.PP
793
 
Set a needle for the dial
794
 
.PP
795
 
Qwt is missing a set of good looking needles. Contributions are very welcome.
796
 
.PP
797
 
\fBParameters:\fP
798
 
.RS 4
799
 
\fIneedle\fP Needle 
800
 
.RE
801
 
.PP
802
 
\fBWarning:\fP
803
 
.RS 4
804
 
The needle will be deleted, when a different needle is set or in \fB~QwtDial()\fP 
805
 
.RE
806
 
.PP
807
 
 
808
 
.PP
809
 
Definition at line 771 of file qwt_dial.cpp.
810
 
.PP
811
 
References needle().
812
 
.SS "void QwtDial::setOrigin (double origin)\fC [virtual]\fP"
813
 
.PP
814
 
Change the origin. 
815
 
.PP
816
 
The origin is the angle where scale and needle is relative to.
817
 
.PP
818
 
\fBParameters:\fP
819
 
.RS 4
820
 
\fIorigin\fP New origin 
821
 
.RE
822
 
.PP
823
 
\fBSee also:\fP
824
 
.RS 4
825
 
\fBorigin()\fP 
826
 
.RE
827
 
.PP
828
 
 
829
 
.PP
830
 
Definition at line 953 of file qwt_dial.cpp.
831
 
.SS "void QwtDial::setScale (int maxMajIntv, int maxMinIntv, double step = \fC0.0\fP)\fC [virtual]\fP"
832
 
.PP
833
 
Change the intervals of the scale 
834
 
.PP
835
 
\fBSee also:\fP
836
 
.RS 4
837
 
QwtAbstractScaleDraw::setScale 
838
 
.RE
839
 
.PP
840
 
 
841
 
.PP
842
 
Definition at line 861 of file qwt_dial.cpp.
843
 
.PP
844
 
References updateScale().
845
 
.SS "void QwtDial::setScaleArc (double minArc, double maxArc)"
846
 
.PP
847
 
Change the arc of the scale
848
 
.PP
849
 
\fBParameters:\fP
850
 
.RS 4
851
 
\fIminArc\fP Lower limit 
852
 
.br
853
 
\fImaxArc\fP Upper limit 
854
 
.RE
855
 
.PP
856
 
 
857
 
.PP
858
 
Definition at line 976 of file qwt_dial.cpp.
859
 
.SS "void QwtDial::setScaleDraw (\fBQwtDialScaleDraw\fP * scaleDraw)\fC [virtual]\fP"
860
 
.PP
861
 
Set an individual scale draw
862
 
.PP
863
 
\fBParameters:\fP
864
 
.RS 4
865
 
\fIscaleDraw\fP Scale draw 
866
 
.RE
867
 
.PP
868
 
\fBWarning:\fP
869
 
.RS 4
870
 
The previous scale draw is deleted 
871
 
.RE
872
 
.PP
873
 
 
874
 
.PP
875
 
Definition at line 844 of file qwt_dial.cpp.
876
 
.PP
877
 
References scaleDraw(), and updateScale().
878
 
.PP
879
 
Referenced by setScaleOptions().
880
 
.SS "void QwtDial::setScaleOptions (int options)"
881
 
.PP
882
 
A wrapper method for accessing the scale draw.
883
 
.PP
884
 
.IP "\(bu" 2
885
 
options == 0
886
 
.br
887
 
 No visible scale: setScaleDraw(NULL)
888
 
.IP "\(bu" 2
889
 
options & ScaleBackbone
890
 
.br
891
 
 En/disable the backbone of the scale.
892
 
.IP "\(bu" 2
893
 
options & ScaleTicks
894
 
.br
895
 
 En/disable the ticks of the scale.
896
 
.IP "\(bu" 2
897
 
options & ScaleLabel
898
 
.br
899
 
 En/disable scale labels
900
 
.PP
901
 
.PP
902
 
\fBSee also:\fP
903
 
.RS 4
904
 
\fBQwtAbstractScaleDraw::enableComponent\fP 
905
 
.RE
906
 
.PP
907
 
 
908
 
.PP
909
 
Definition at line 884 of file qwt_dial.cpp.
910
 
.PP
911
 
References QwtAbstractScaleDraw::enableComponent(), and setScaleDraw().
912
 
.SS "void QwtDial::setScaleTicks (int minLen, int medLen, int majLen, int penWidth = \fC1\fP)"
913
 
.PP
914
 
See: \fBQwtAbstractScaleDraw::setTickLength\fP, \fBQwtDialScaleDraw::setPenWidth\fP. 
915
 
.PP
916
 
Definition at line 904 of file qwt_dial.cpp.
917
 
.PP
918
 
References QwtDialScaleDraw::setPenWidth(), and QwtAbstractScaleDraw::setTickLength().
919
 
.SS "void QwtDial::setWrapping (bool wrapping)\fC [virtual]\fP"
920
 
.PP
921
 
Sets whether it is possible to step the value from the highest value to the lowest value and vice versa to on.
922
 
.PP
923
 
\fBParameters:\fP
924
 
.RS 4
925
 
\fIwrapping\fP en/disables wrapping
926
 
.RE
927
 
.PP
928
 
\fBSee also:\fP
929
 
.RS 4
930
 
\fBwrapping()\fP, \fBQwtDoubleRange::periodic()\fP 
931
 
.RE
932
 
.PP
933
 
\fBNote:\fP
934
 
.RS 4
935
 
The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. 
936
 
.RE
937
 
.PP
938
 
 
939
 
.PP
940
 
Definition at line 397 of file qwt_dial.cpp.
941
 
.PP
942
 
References QwtDoubleRange::setPeriodic().
943
 
.SS "void QwtDial::showBackground (bool show)"
944
 
.PP
945
 
Show/Hide the area outside of the frame 
946
 
.PP
947
 
\fBParameters:\fP
948
 
.RS 4
949
 
\fIshow\fP Show if true, hide if false
950
 
.RE
951
 
.PP
952
 
\fBSee also:\fP
953
 
.RS 4
954
 
\fBhasVisibleBackground()\fP, setMask() 
955
 
.RE
956
 
.PP
957
 
\fBWarning:\fP
958
 
.RS 4
959
 
When \fBQwtDial\fP is a toplevel widget the window border might disappear too. 
960
 
.RE
961
 
.PP
962
 
 
963
 
.PP
964
 
Definition at line 220 of file qwt_dial.cpp.
965
 
.PP
966
 
References updateMask().
967
 
.SS "QSize QwtDial::sizeHint () const\fC [virtual]\fP"
968
 
.PP
969
 
\fBReturns:\fP
970
 
.RS 4
971
 
Size hint 
972
 
.RE
973
 
.PP
974
 
 
975
 
.PP
976
 
Definition at line 1001 of file qwt_dial.cpp.
977
 
.PP
978
 
References lineWidth().
979
 
.SS "void QwtDial::updateMask ()\fC [protected, virtual]\fP"
980
 
.PP
981
 
Update the mask of the dial. 
982
 
.PP
983
 
In case of 'hasVisibleBackground() == false', the backgound is transparent by a mask.
984
 
.PP
985
 
\fBSee also:\fP
986
 
.RS 4
987
 
\fBshowBackground()\fP, \fBhasVisibleBackground()\fP 
988
 
.RE
989
 
.PP
990
 
 
991
 
.PP
992
 
Definition at line 1246 of file qwt_dial.cpp.
993
 
.PP
994
 
References boundingRect().
995
 
.PP
996
 
Referenced by resizeEvent(), and showBackground().
997
 
.SS "void QwtDial::updateScale ()\fC [protected]\fP"
998
 
.PP
999
 
Update the scale with the current attributes 
1000
 
.PP
1001
 
\fBSee also:\fP
1002
 
.RS 4
1003
 
\fBsetScale()\fP 
1004
 
.RE
1005
 
.PP
1006
 
 
1007
 
.PP
1008
 
Definition at line 811 of file qwt_dial.cpp.
1009
 
.PP
1010
 
References QwtLinearScaleEngine::divideScale(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), and QwtLinearScaleEngine::transformation().
1011
 
.PP
1012
 
Referenced by rangeChange(), setScale(), and setScaleDraw().
1013
 
.SS "void QwtDial::valueChange ()\fC [protected, virtual]\fP"
1014
 
.PP
1015
 
\fBQwtDoubleRange\fP update hook. 
1016
 
.PP
1017
 
Reimplemented from \fBQwtAbstractSlider\fP.
1018
 
.PP
1019
 
Definition at line 992 of file qwt_dial.cpp.
1020
 
.PP
1021
 
References QwtAbstractSlider::valueChange().
1022
 
.SS "bool QwtDial::wrapping () const"
1023
 
.PP
1024
 
\fBwrapping()\fP holds whether it is possible to step the value from the highest value to the lowest value and vice versa.
1025
 
.PP
1026
 
\fBSee also:\fP
1027
 
.RS 4
1028
 
\fBsetWrapping()\fP, \fBQwtDoubleRange::setPeriodic()\fP 
1029
 
.RE
1030
 
.PP
1031
 
\fBNote:\fP
1032
 
.RS 4
1033
 
The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. 
1034
 
.RE
1035
 
.PP
1036
 
 
1037
 
.PP
1038
 
Definition at line 410 of file qwt_dial.cpp.
1039
 
.PP
1040
 
References QwtDoubleRange::periodic().
1041
 
.PP
1042
 
Referenced by getValue().
1043
 
 
1044
 
.SH "Author"
1045
 
.PP 
1046
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.