QwtDial.3 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. .TH "QwtDial" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtDial \- \fBQwtDial\fP class provides a rounded range control\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_dial\&.h>\fP
  11. .PP
  12. Inherits \fBQwtAbstractSlider\fP\&.
  13. .PP
  14. Inherited by \fBQwtAnalogClock\fP, and \fBQwtCompass\fP\&.
  15. .SS "Public Types"
  16. .in +1c
  17. .ti -1c
  18. .RI "enum \fBShadow\fP { \fBPlain\fP = QFrame::Plain, \fBRaised\fP = QFrame::Raised, \fBSunken\fP = QFrame::Sunken }"
  19. .br
  20. .RI "Frame shadow\&. "
  21. .ti -1c
  22. .RI "enum \fBMode\fP { \fBRotateNeedle\fP, \fBRotateScale\fP }"
  23. .br
  24. .RI "Mode controlling whether the needle or the scale is rotating\&. "
  25. .in -1c
  26. .SS "Public Member Functions"
  27. .in +1c
  28. .ti -1c
  29. .RI "\fBQwtDial\fP (QWidget *parent=NULL)"
  30. .br
  31. .RI "Constructor\&. "
  32. .ti -1c
  33. .RI "virtual \fB~QwtDial\fP ()"
  34. .br
  35. .RI "Destructor\&. "
  36. .ti -1c
  37. .RI "void \fBsetFrameShadow\fP (\fBShadow\fP)"
  38. .br
  39. .ti -1c
  40. .RI "\fBShadow\fP \fBframeShadow\fP () const"
  41. .br
  42. .ti -1c
  43. .RI "void \fBsetLineWidth\fP (int)"
  44. .br
  45. .ti -1c
  46. .RI "int \fBlineWidth\fP () const"
  47. .br
  48. .ti -1c
  49. .RI "void \fBsetMode\fP (\fBMode\fP)"
  50. .br
  51. .RI "Change the mode of the dial\&. "
  52. .ti -1c
  53. .RI "\fBMode\fP \fBmode\fP () const"
  54. .br
  55. .ti -1c
  56. .RI "void \fBsetScaleArc\fP (double minArc, double maxArc)"
  57. .br
  58. .ti -1c
  59. .RI "void \fBsetMinScaleArc\fP (double)"
  60. .br
  61. .ti -1c
  62. .RI "double \fBminScaleArc\fP () const"
  63. .br
  64. .ti -1c
  65. .RI "void \fBsetMaxScaleArc\fP (double)"
  66. .br
  67. .ti -1c
  68. .RI "double \fBmaxScaleArc\fP () const"
  69. .br
  70. .ti -1c
  71. .RI "virtual void \fBsetOrigin\fP (double)"
  72. .br
  73. .RI "Change the origin\&. "
  74. .ti -1c
  75. .RI "double \fBorigin\fP () const"
  76. .br
  77. .ti -1c
  78. .RI "void \fBsetNeedle\fP (\fBQwtDialNeedle\fP *)"
  79. .br
  80. .ti -1c
  81. .RI "const \fBQwtDialNeedle\fP * \fBneedle\fP () const"
  82. .br
  83. .ti -1c
  84. .RI "\fBQwtDialNeedle\fP * \fBneedle\fP ()"
  85. .br
  86. .ti -1c
  87. .RI "QRect \fBboundingRect\fP () const"
  88. .br
  89. .ti -1c
  90. .RI "QRect \fBinnerRect\fP () const"
  91. .br
  92. .ti -1c
  93. .RI "virtual QRect \fBscaleInnerRect\fP () const"
  94. .br
  95. .ti -1c
  96. .RI "virtual QSize \fBsizeHint\fP () const"
  97. .br
  98. .ti -1c
  99. .RI "virtual QSize \fBminimumSizeHint\fP () const"
  100. .br
  101. .ti -1c
  102. .RI "void \fBsetScaleDraw\fP (\fBQwtRoundScaleDraw\fP *)"
  103. .br
  104. .ti -1c
  105. .RI "\fBQwtRoundScaleDraw\fP * \fBscaleDraw\fP ()"
  106. .br
  107. .ti -1c
  108. .RI "const \fBQwtRoundScaleDraw\fP * \fBscaleDraw\fP () const"
  109. .br
  110. .in -1c
  111. .SS "Protected Member Functions"
  112. .in +1c
  113. .ti -1c
  114. .RI "virtual void \fBwheelEvent\fP (QWheelEvent *)"
  115. .br
  116. .ti -1c
  117. .RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
  118. .br
  119. .ti -1c
  120. .RI "virtual void \fBchangeEvent\fP (QEvent *)"
  121. .br
  122. .ti -1c
  123. .RI "virtual void \fBdrawFrame\fP (QPainter *)"
  124. .br
  125. .ti -1c
  126. .RI "virtual void \fBdrawContents\fP (QPainter *) const"
  127. .br
  128. .RI "Draw the contents inside the frame\&. "
  129. .ti -1c
  130. .RI "virtual void \fBdrawFocusIndicator\fP (QPainter *) const"
  131. .br
  132. .ti -1c
  133. .RI "void \fBinvalidateCache\fP ()"
  134. .br
  135. .ti -1c
  136. .RI "virtual void \fBdrawScale\fP (QPainter *, const QPointF &center, double radius) const"
  137. .br
  138. .ti -1c
  139. .RI "virtual void \fBdrawScaleContents\fP (QPainter *painter, const QPointF &center, double radius) const"
  140. .br
  141. .ti -1c
  142. .RI "virtual void \fBdrawNeedle\fP (QPainter *, const QPointF &, double radius, double direction, QPalette::ColorGroup) const"
  143. .br
  144. .ti -1c
  145. .RI "virtual double \fBscrolledTo\fP (const QPoint &) const"
  146. .br
  147. .RI "Determine the value for a new position of the slider handle\&. "
  148. .ti -1c
  149. .RI "virtual bool \fBisScrollPosition\fP (const QPoint &) const"
  150. .br
  151. .RI "Determine what to do when the user presses a mouse button\&. "
  152. .ti -1c
  153. .RI "virtual void \fBsliderChange\fP ()"
  154. .br
  155. .RI "Calling update() "
  156. .ti -1c
  157. .RI "virtual void \fBscaleChange\fP ()"
  158. .br
  159. .in -1c
  160. .SS "Additional Inherited Members"
  161. .SH "Detailed Description"
  162. .PP
  163. \fBQwtDial\fP class provides a rounded range control\&.
  164. \fBQwtDial\fP is intended as base class for dial widgets like speedometers, compass widgets, clocks \&.\&.\&.
  165. .PP
  166. .PP
  167. 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 \fBQwtAbstractSlider::keyPressEvent()\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\&.
  168. .PP
  169. Often dials have to be updated very often according to values from external devices\&. For these high refresh rates \fBQwtDial\fP caches as much as possible\&. For derived classes it might be necessary to clear these caches manually according to attribute changes using \fBinvalidateCache()\fP\&.
  170. .PP
  171. \fBSee also\fP
  172. .RS 4
  173. \fBQwtCompass\fP, \fBQwtAnalogClock\fP, \fBQwtDialNeedle\fP
  174. .RE
  175. .PP
  176. \fBNote\fP
  177. .RS 4
  178. The controls and dials examples shows different types of dials\&.
  179. .PP
  180. QDial is more similar to \fBQwtKnob\fP than to \fBQwtDial\fP
  181. .RE
  182. .PP
  183. .SH "Member Enumeration Documentation"
  184. .PP
  185. .SS "enum \fBQwtDial::Mode\fP"
  186. .PP
  187. Mode controlling whether the needle or the scale is rotating\&.
  188. .PP
  189. \fBEnumerator\fP
  190. .in +1c
  191. .TP
  192. \fB\fIRotateNeedle \fP\fP
  193. The needle is rotating\&.
  194. .TP
  195. \fB\fIRotateScale \fP\fP
  196. The needle is fixed, the scales are rotating\&.
  197. .SS "enum \fBQwtDial::Shadow\fP"
  198. .PP
  199. Frame shadow\&. 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\&.
  200. .PP
  201. \fBEnumerator\fP
  202. .in +1c
  203. .TP
  204. \fB\fIPlain \fP\fP
  205. QFrame::Plain\&.
  206. .TP
  207. \fB\fIRaised \fP\fP
  208. QFrame::Raised\&.
  209. .TP
  210. \fB\fISunken \fP\fP
  211. QFrame::Sunken\&.
  212. .SH "Constructor & Destructor Documentation"
  213. .PP
  214. .SS "QwtDial::QwtDial (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
  215. .PP
  216. Constructor\&.
  217. .PP
  218. \fBParameters\fP
  219. .RS 4
  220. \fIparent\fP Parent widget
  221. .RE
  222. .PP
  223. Create a dial widget with no needle\&. The scale is initialized to [ 0\&.0, 360\&.0 ] and 360 steps ( \fBQwtAbstractSlider::setTotalSteps()\fP )\&. The origin of the scale is at 90°,
  224. .PP
  225. The value is set to 0\&.0\&.
  226. .PP
  227. The default mode is \fBQwtDial::RotateNeedle\fP\&.
  228. .SH "Member Function Documentation"
  229. .PP
  230. .SS "QRect QwtDial::boundingRect () const"
  231. .PP
  232. \fBReturns\fP
  233. .RS 4
  234. bounding rectangle of the dial including the frame
  235. .RE
  236. .PP
  237. \fBSee also\fP
  238. .RS 4
  239. \fBsetLineWidth()\fP, \fBscaleInnerRect()\fP, \fBinnerRect()\fP
  240. .RE
  241. .PP
  242. .SS "void QwtDial::changeEvent (QEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  243. Change Event handler
  244. .PP
  245. \fBParameters\fP
  246. .RS 4
  247. \fIevent\fP Change event
  248. .RE
  249. .PP
  250. Invalidates internal paint caches if necessary
  251. .SS "void QwtDial::drawContents (QPainter * painter) const\fC [protected]\fP, \fC [virtual]\fP"
  252. .PP
  253. Draw the contents inside the frame\&. QPalette::Window is the background color outside of the frame\&. QPalette::Base is the background color inside the frame\&. QPalette::WindowText is the background color inside the scale\&.
  254. .PP
  255. \fBParameters\fP
  256. .RS 4
  257. \fIpainter\fP Painter
  258. .RE
  259. .PP
  260. \fBSee also\fP
  261. .RS 4
  262. \fBboundingRect()\fP, \fBinnerRect()\fP, \fBscaleInnerRect()\fP, QWidget::setPalette()
  263. .RE
  264. .PP
  265. .SS "void QwtDial::drawFocusIndicator (QPainter * painter) const\fC [protected]\fP, \fC [virtual]\fP"
  266. Draw the focus indicator
  267. .PP
  268. \fBParameters\fP
  269. .RS 4
  270. \fIpainter\fP Painter
  271. .RE
  272. .PP
  273. .SS "void QwtDial::drawFrame (QPainter * painter)\fC [protected]\fP, \fC [virtual]\fP"
  274. Draw the frame around the dial
  275. .PP
  276. \fBParameters\fP
  277. .RS 4
  278. \fIpainter\fP Painter
  279. .RE
  280. .PP
  281. \fBSee also\fP
  282. .RS 4
  283. \fBlineWidth()\fP, \fBframeShadow()\fP
  284. .RE
  285. .PP
  286. .SS "void QwtDial::drawNeedle (QPainter * painter, const QPointF & center, double radius, double direction, QPalette::ColorGroup colorGroup) const\fC [protected]\fP, \fC [virtual]\fP"
  287. Draw the needle
  288. .PP
  289. \fBParameters\fP
  290. .RS 4
  291. \fIpainter\fP Painter
  292. .br
  293. \fIcenter\fP Center of the dial
  294. .br
  295. \fIradius\fP Length for the needle
  296. .br
  297. \fIdirection\fP Direction of the needle in degrees, counter clockwise
  298. .br
  299. \fIcolorGroup\fP ColorGroup
  300. .RE
  301. .PP
  302. .PP
  303. Reimplemented in \fBQwtAnalogClock\fP\&.
  304. .SS "void QwtDial::drawScale (QPainter * painter, const QPointF & center, double radius) const\fC [protected]\fP, \fC [virtual]\fP"
  305. Draw the scale
  306. .PP
  307. \fBParameters\fP
  308. .RS 4
  309. \fIpainter\fP Painter
  310. .br
  311. \fIcenter\fP Center of the dial
  312. .br
  313. \fIradius\fP Radius of the scale
  314. .RE
  315. .PP
  316. .SS "void QwtDial::drawScaleContents (QPainter * painter, const QPointF & center, double radius) const\fC [protected]\fP, \fC [virtual]\fP"
  317. Draw the contents inside the scale
  318. .PP
  319. Paints nothing\&.
  320. .PP
  321. \fBParameters\fP
  322. .RS 4
  323. \fIpainter\fP Painter
  324. .br
  325. \fIcenter\fP Center of the contents circle
  326. .br
  327. \fIradius\fP Radius of the contents circle
  328. .RE
  329. .PP
  330. .PP
  331. Reimplemented in \fBQwtCompass\fP\&.
  332. .SS "\fBQwtDial::Shadow\fP QwtDial::frameShadow () const"
  333. .PP
  334. \fBReturns\fP
  335. .RS 4
  336. Frame shadow /sa \fBsetFrameShadow()\fP, \fBlineWidth()\fP, QFrame::frameShadow()
  337. .RE
  338. .PP
  339. .SS "QRect QwtDial::innerRect () const"
  340. .PP
  341. \fBReturns\fP
  342. .RS 4
  343. bounding rectangle of the circle inside the frame
  344. .RE
  345. .PP
  346. \fBSee also\fP
  347. .RS 4
  348. \fBsetLineWidth()\fP, \fBscaleInnerRect()\fP, \fBboundingRect()\fP
  349. .RE
  350. .PP
  351. .SS "void QwtDial::invalidateCache ()\fC [protected]\fP"
  352. Invalidate the internal caches used to speed up repainting
  353. .SS "bool QwtDial::isScrollPosition (const QPoint & pos) const\fC [protected]\fP, \fC [virtual]\fP"
  354. .PP
  355. Determine what to do when the user presses a mouse button\&.
  356. .PP
  357. \fBParameters\fP
  358. .RS 4
  359. \fIpos\fP Mouse position
  360. .RE
  361. .PP
  362. \fBReturn values\fP
  363. .RS 4
  364. \fITrue,when\fP the inner circle contains pos
  365. .RE
  366. .PP
  367. \fBSee also\fP
  368. .RS 4
  369. \fBscrolledTo()\fP
  370. .RE
  371. .PP
  372. .PP
  373. Implements \fBQwtAbstractSlider\fP\&.
  374. .SS "int QwtDial::lineWidth () const"
  375. .PP
  376. \fBReturns\fP
  377. .RS 4
  378. Line width of the frame
  379. .RE
  380. .PP
  381. \fBSee also\fP
  382. .RS 4
  383. \fBsetLineWidth()\fP, \fBframeShadow()\fP, \fBlineWidth()\fP
  384. .RE
  385. .PP
  386. .SS "double QwtDial::maxScaleArc () const"
  387. .PP
  388. \fBReturns\fP
  389. .RS 4
  390. Upper limit of the scale arc
  391. .RE
  392. .PP
  393. \fBSee also\fP
  394. .RS 4
  395. \fBsetScaleArc()\fP
  396. .RE
  397. .PP
  398. .SS "QSize QwtDial::minimumSizeHint () const\fC [virtual]\fP"
  399. .PP
  400. \fBReturns\fP
  401. .RS 4
  402. Minimum size hint
  403. .RE
  404. .PP
  405. \fBSee also\fP
  406. .RS 4
  407. \fBsizeHint()\fP
  408. .RE
  409. .PP
  410. .SS "double QwtDial::minScaleArc () const"
  411. .PP
  412. \fBReturns\fP
  413. .RS 4
  414. Lower limit of the scale arc
  415. .RE
  416. .PP
  417. \fBSee also\fP
  418. .RS 4
  419. \fBsetScaleArc()\fP
  420. .RE
  421. .PP
  422. .SS "\fBQwtDial::Mode\fP QwtDial::mode () const"
  423. .PP
  424. \fBReturns\fP
  425. .RS 4
  426. Mode of the dial\&.
  427. .RE
  428. .PP
  429. \fBSee also\fP
  430. .RS 4
  431. \fBsetMode()\fP, \fBorigin()\fP, \fBsetScaleArc()\fP, \fBvalue()\fP
  432. .RE
  433. .PP
  434. .SS "\fBQwtDialNeedle\fP * QwtDial::needle ()"
  435. .PP
  436. \fBReturns\fP
  437. .RS 4
  438. needle
  439. .RE
  440. .PP
  441. \fBSee also\fP
  442. .RS 4
  443. \fBsetNeedle()\fP
  444. .RE
  445. .PP
  446. .SS "const \fBQwtDialNeedle\fP * QwtDial::needle () const"
  447. .PP
  448. \fBReturns\fP
  449. .RS 4
  450. needle
  451. .RE
  452. .PP
  453. \fBSee also\fP
  454. .RS 4
  455. \fBsetNeedle()\fP
  456. .RE
  457. .PP
  458. .SS "double QwtDial::origin () const"
  459. The origin is the angle where scale and needle is relative to\&.
  460. .PP
  461. \fBReturns\fP
  462. .RS 4
  463. Origin of the dial
  464. .RE
  465. .PP
  466. \fBSee also\fP
  467. .RS 4
  468. \fBsetOrigin()\fP
  469. .RE
  470. .PP
  471. .SS "void QwtDial::paintEvent (QPaintEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  472. Paint the dial
  473. .PP
  474. \fBParameters\fP
  475. .RS 4
  476. \fIevent\fP Paint event
  477. .RE
  478. .PP
  479. .SS "void QwtDial::scaleChange ()\fC [protected]\fP, \fC [virtual]\fP"
  480. Invalidate the internal caches and call \fBQwtAbstractSlider::scaleChange()\fP
  481. .PP
  482. Reimplemented from \fBQwtAbstractSlider\fP\&.
  483. .SS "\fBQwtRoundScaleDraw\fP * QwtDial::scaleDraw ()"
  484. .PP
  485. \fBReturns\fP
  486. .RS 4
  487. the scale draw
  488. .RE
  489. .PP
  490. .SS "const \fBQwtRoundScaleDraw\fP * QwtDial::scaleDraw () const"
  491. .PP
  492. \fBReturns\fP
  493. .RS 4
  494. the scale draw
  495. .RE
  496. .PP
  497. .SS "QRect QwtDial::scaleInnerRect () const\fC [virtual]\fP"
  498. .PP
  499. \fBReturns\fP
  500. .RS 4
  501. rectangle inside the scale
  502. .RE
  503. .PP
  504. \fBSee also\fP
  505. .RS 4
  506. \fBsetLineWidth()\fP, \fBboundingRect()\fP, \fBinnerRect()\fP
  507. .RE
  508. .PP
  509. .SS "double QwtDial::scrolledTo (const QPoint & pos) const\fC [protected]\fP, \fC [virtual]\fP"
  510. .PP
  511. Determine the value for a new position of the slider handle\&.
  512. .PP
  513. \fBParameters\fP
  514. .RS 4
  515. \fIpos\fP Mouse position
  516. .RE
  517. .PP
  518. \fBReturns\fP
  519. .RS 4
  520. Value for the mouse position
  521. .RE
  522. .PP
  523. \fBSee also\fP
  524. .RS 4
  525. \fBisScrollPosition()\fP
  526. .RE
  527. .PP
  528. .PP
  529. Implements \fBQwtAbstractSlider\fP\&.
  530. .SS "void QwtDial::setFrameShadow (\fBShadow\fP shadow)"
  531. Sets the frame shadow value from the frame style\&.
  532. .PP
  533. \fBParameters\fP
  534. .RS 4
  535. \fIshadow\fP Frame shadow
  536. .RE
  537. .PP
  538. \fBSee also\fP
  539. .RS 4
  540. \fBsetLineWidth()\fP, QFrame::setFrameShadow()
  541. .RE
  542. .PP
  543. .SS "void QwtDial::setLineWidth (int lineWidth)"
  544. Sets the line width of the frame
  545. .PP
  546. \fBParameters\fP
  547. .RS 4
  548. \fIlineWidth\fP Line width
  549. .RE
  550. .PP
  551. \fBSee also\fP
  552. .RS 4
  553. \fBsetFrameShadow()\fP
  554. .RE
  555. .PP
  556. .SS "void QwtDial::setMaxScaleArc (double max)"
  557. Set the upper limit for the scale arc
  558. .PP
  559. \fBParameters\fP
  560. .RS 4
  561. \fImax\fP Upper limit of the scale arc
  562. .RE
  563. .PP
  564. \fBSee also\fP
  565. .RS 4
  566. \fBsetScaleArc()\fP, \fBsetMinScaleArc()\fP
  567. .RE
  568. .PP
  569. .SS "void QwtDial::setMinScaleArc (double min)"
  570. Set the lower limit for the scale arc
  571. .PP
  572. \fBParameters\fP
  573. .RS 4
  574. \fImin\fP Lower limit of the scale arc
  575. .RE
  576. .PP
  577. \fBSee also\fP
  578. .RS 4
  579. \fBsetScaleArc()\fP, \fBsetMaxScaleArc()\fP
  580. .RE
  581. .PP
  582. .SS "void QwtDial::setMode (\fBMode\fP mode)"
  583. .PP
  584. Change the mode of the dial\&.
  585. .PP
  586. \fBParameters\fP
  587. .RS 4
  588. \fImode\fP New mode
  589. .RE
  590. .PP
  591. In case of \fBQwtDial::RotateNeedle\fP the needle is rotating, in case of \fBQwtDial::RotateScale\fP, the needle points to \fBorigin()\fP and the scale is rotating\&.
  592. .PP
  593. The default mode is \fBQwtDial::RotateNeedle\fP\&.
  594. .PP
  595. \fBSee also\fP
  596. .RS 4
  597. \fBmode()\fP, \fBsetValue()\fP, \fBsetOrigin()\fP
  598. .RE
  599. .PP
  600. .SS "void QwtDial::setNeedle (\fBQwtDialNeedle\fP * needle)"
  601. Set a needle for the dial
  602. .PP
  603. \fBParameters\fP
  604. .RS 4
  605. \fIneedle\fP Needle
  606. .RE
  607. .PP
  608. \fBWarning\fP
  609. .RS 4
  610. The needle will be deleted, when a different needle is set or in \fB~QwtDial()\fP
  611. .RE
  612. .PP
  613. .SS "void QwtDial::setOrigin (double origin)\fC [virtual]\fP"
  614. .PP
  615. Change the origin\&. The origin is the angle where scale and needle is relative to\&.
  616. .PP
  617. \fBParameters\fP
  618. .RS 4
  619. \fIorigin\fP New origin
  620. .RE
  621. .PP
  622. \fBSee also\fP
  623. .RS 4
  624. \fBorigin()\fP
  625. .RE
  626. .PP
  627. .SS "void QwtDial::setScaleArc (double minArc, double maxArc)"
  628. Change the arc of the scale
  629. .PP
  630. \fBParameters\fP
  631. .RS 4
  632. \fIminArc\fP Lower limit
  633. .br
  634. \fImaxArc\fP Upper limit
  635. .RE
  636. .PP
  637. \fBSee also\fP
  638. .RS 4
  639. \fBminScaleArc()\fP, \fBmaxScaleArc()\fP
  640. .RE
  641. .PP
  642. .SS "void QwtDial::setScaleDraw (\fBQwtRoundScaleDraw\fP * scaleDraw)"
  643. Set an individual scale draw
  644. .PP
  645. The motivation for setting a scale draw is often to overload \fBQwtRoundScaleDraw::label()\fP to return individual tick labels\&.
  646. .PP
  647. \fBParameters\fP
  648. .RS 4
  649. \fIscaleDraw\fP Scale draw
  650. .RE
  651. .PP
  652. \fBWarning\fP
  653. .RS 4
  654. The previous scale draw is deleted
  655. .RE
  656. .PP
  657. .SS "QSize QwtDial::sizeHint () const\fC [virtual]\fP"
  658. .PP
  659. \fBReturns\fP
  660. .RS 4
  661. Size hint
  662. .RE
  663. .PP
  664. \fBSee also\fP
  665. .RS 4
  666. \fBminimumSizeHint()\fP
  667. .RE
  668. .PP
  669. .SS "void QwtDial::wheelEvent (QWheelEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  670. Wheel Event handler
  671. .PP
  672. \fBParameters\fP
  673. .RS 4
  674. \fIevent\fP Wheel event
  675. .RE
  676. .PP
  677. .PP
  678. Reimplemented from \fBQwtAbstractSlider\fP\&.
  679. .SH "Author"
  680. .PP
  681. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.