QwtThermo.3 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. .TH "QwtThermo" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtThermo \- The Thermometer Widget\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_thermo\&.h>\fP
  11. .PP
  12. Inherits \fBQwtAbstractScale\fP\&.
  13. .SS "Public Types"
  14. .in +1c
  15. .ti -1c
  16. .RI "enum \fBScalePosition\fP { \fBNoScale\fP, \fBLeadingScale\fP, \fBTrailingScale\fP }"
  17. .br
  18. .ti -1c
  19. .RI "enum \fBOriginMode\fP { \fBOriginMinimum\fP, \fBOriginMaximum\fP, \fBOriginCustom\fP }"
  20. .br
  21. .in -1c
  22. .SS "Public Slots"
  23. .in +1c
  24. .ti -1c
  25. .RI "virtual void \fBsetValue\fP (double)"
  26. .br
  27. .in -1c
  28. .SS "Public Member Functions"
  29. .in +1c
  30. .ti -1c
  31. .RI "\fBQwtThermo\fP (QWidget *parent=NULL)"
  32. .br
  33. .ti -1c
  34. .RI "virtual \fB~QwtThermo\fP ()"
  35. .br
  36. .RI "Destructor\&. "
  37. .ti -1c
  38. .RI "void \fBsetOrientation\fP (Qt::Orientation)"
  39. .br
  40. .RI "Set the orientation\&. "
  41. .ti -1c
  42. .RI "Qt::Orientation \fBorientation\fP () const"
  43. .br
  44. .ti -1c
  45. .RI "void \fBsetScalePosition\fP (\fBScalePosition\fP)"
  46. .br
  47. .RI "Change the position of the scale\&. "
  48. .ti -1c
  49. .RI "\fBScalePosition\fP \fBscalePosition\fP () const"
  50. .br
  51. .ti -1c
  52. .RI "void \fBsetSpacing\fP (int)"
  53. .br
  54. .RI "Change the spacing between pipe and scale\&. "
  55. .ti -1c
  56. .RI "int \fBspacing\fP () const"
  57. .br
  58. .ti -1c
  59. .RI "void \fBsetBorderWidth\fP (int)"
  60. .br
  61. .ti -1c
  62. .RI "int \fBborderWidth\fP () const"
  63. .br
  64. .ti -1c
  65. .RI "void \fBsetOriginMode\fP (\fBOriginMode\fP)"
  66. .br
  67. .RI "Change how the origin is determined\&. "
  68. .ti -1c
  69. .RI "\fBOriginMode\fP \fBoriginMode\fP () const"
  70. .br
  71. .ti -1c
  72. .RI "void \fBsetOrigin\fP (double)"
  73. .br
  74. .RI "Specifies the custom origin\&. "
  75. .ti -1c
  76. .RI "double \fBorigin\fP () const"
  77. .br
  78. .ti -1c
  79. .RI "void \fBsetFillBrush\fP (const QBrush &)"
  80. .br
  81. .RI "Change the brush of the liquid\&. "
  82. .ti -1c
  83. .RI "QBrush \fBfillBrush\fP () const"
  84. .br
  85. .ti -1c
  86. .RI "void \fBsetAlarmBrush\fP (const QBrush &)"
  87. .br
  88. .RI "Specify the liquid brush above the alarm threshold\&. "
  89. .ti -1c
  90. .RI "QBrush \fBalarmBrush\fP () const"
  91. .br
  92. .ti -1c
  93. .RI "void \fBsetAlarmLevel\fP (double)"
  94. .br
  95. .ti -1c
  96. .RI "double \fBalarmLevel\fP () const"
  97. .br
  98. .ti -1c
  99. .RI "void \fBsetAlarmEnabled\fP (bool)"
  100. .br
  101. .RI "Enable or disable the alarm threshold\&. "
  102. .ti -1c
  103. .RI "bool \fBalarmEnabled\fP () const"
  104. .br
  105. .ti -1c
  106. .RI "void \fBsetColorMap\fP (\fBQwtColorMap\fP *)"
  107. .br
  108. .RI "Assign a color map for the fill color\&. "
  109. .ti -1c
  110. .RI "\fBQwtColorMap\fP * \fBcolorMap\fP ()"
  111. .br
  112. .ti -1c
  113. .RI "const \fBQwtColorMap\fP * \fBcolorMap\fP () const"
  114. .br
  115. .ti -1c
  116. .RI "void \fBsetPipeWidth\fP (int)"
  117. .br
  118. .ti -1c
  119. .RI "int \fBpipeWidth\fP () const"
  120. .br
  121. .ti -1c
  122. .RI "void \fBsetRangeFlags\fP (\fBQwtInterval::BorderFlags\fP)"
  123. .br
  124. .RI "Exclude/Include min/max values\&. "
  125. .ti -1c
  126. .RI "\fBQwtInterval::BorderFlags\fP \fBrangeFlags\fP () const"
  127. .br
  128. .ti -1c
  129. .RI "double \fBvalue\fP () const"
  130. .br
  131. .RI "Return the value\&. "
  132. .ti -1c
  133. .RI "virtual QSize \fBsizeHint\fP () const"
  134. .br
  135. .ti -1c
  136. .RI "virtual QSize \fBminimumSizeHint\fP () const"
  137. .br
  138. .ti -1c
  139. .RI "void \fBsetScaleDraw\fP (\fBQwtScaleDraw\fP *)"
  140. .br
  141. .RI "Set a scale draw\&. "
  142. .ti -1c
  143. .RI "const \fBQwtScaleDraw\fP * \fBscaleDraw\fP () const"
  144. .br
  145. .in -1c
  146. .SS "Protected Member Functions"
  147. .in +1c
  148. .ti -1c
  149. .RI "virtual void \fBdrawLiquid\fP (QPainter *, const QRect &) const"
  150. .br
  151. .ti -1c
  152. .RI "virtual void \fBscaleChange\fP ()"
  153. .br
  154. .RI "Notify a scale change\&. "
  155. .ti -1c
  156. .RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
  157. .br
  158. .ti -1c
  159. .RI "virtual void \fBresizeEvent\fP (QResizeEvent *)"
  160. .br
  161. .ti -1c
  162. .RI "virtual void \fBchangeEvent\fP (QEvent *)"
  163. .br
  164. .ti -1c
  165. .RI "\fBQwtScaleDraw\fP * \fBscaleDraw\fP ()"
  166. .br
  167. .ti -1c
  168. .RI "QRect \fBpipeRect\fP () const"
  169. .br
  170. .ti -1c
  171. .RI "QRect \fBfillRect\fP (const QRect &) const"
  172. .br
  173. .RI "Calculate the filled rectangle of the pipe\&. "
  174. .ti -1c
  175. .RI "QRect \fBalarmRect\fP (const QRect &) const"
  176. .br
  177. .RI "Calculate the alarm rectangle of the pipe\&. "
  178. .in -1c
  179. .SH "Detailed Description"
  180. .PP
  181. The Thermometer Widget\&.
  182. \fBQwtThermo\fP is a widget which displays a value in an interval\&. It supports:
  183. .IP "\(bu" 2
  184. a horizontal or vertical layout;
  185. .IP "\(bu" 2
  186. a range;
  187. .IP "\(bu" 2
  188. a scale;
  189. .IP "\(bu" 2
  190. an alarm level\&.
  191. .PP
  192. .PP
  193. .PP
  194. The fill colors might be calculated from an optional color map If no color map has been assigned \fBQwtThermo\fP uses the following colors/brushes from the widget palette:
  195. .PP
  196. .IP "\(bu" 2
  197. QPalette::Base Background of the pipe
  198. .IP "\(bu" 2
  199. QPalette::ButtonText Fill brush below the alarm level
  200. .IP "\(bu" 2
  201. QPalette::Highlight Fill brush for the values above the alarm level
  202. .IP "\(bu" 2
  203. QPalette::WindowText For the axis of the scale
  204. .IP "\(bu" 2
  205. QPalette::Text For the labels of the scale
  206. .PP
  207. .SH "Member Enumeration Documentation"
  208. .PP
  209. .SS "enum \fBQwtThermo::OriginMode\fP"
  210. Origin mode\&. This property specifies where the beginning of the liquid is placed\&.
  211. .PP
  212. \fBSee also\fP
  213. .RS 4
  214. \fBsetOriginMode()\fP, \fBsetOrigin()\fP
  215. .RE
  216. .PP
  217. .PP
  218. \fBEnumerator\fP
  219. .in +1c
  220. .TP
  221. \fB\fIOriginMinimum \fP\fP
  222. The origin is the minimum of the scale\&.
  223. .TP
  224. \fB\fIOriginMaximum \fP\fP
  225. The origin is the maximum of the scale\&.
  226. .TP
  227. \fB\fIOriginCustom \fP\fP
  228. The origin is specified using the \fBorigin()\fP property\&.
  229. .SS "enum \fBQwtThermo::ScalePosition\fP"
  230. Position of the scale
  231. .PP
  232. \fBSee also\fP
  233. .RS 4
  234. \fBsetScalePosition()\fP, \fBsetOrientation()\fP
  235. .RE
  236. .PP
  237. .PP
  238. \fBEnumerator\fP
  239. .in +1c
  240. .TP
  241. \fB\fINoScale \fP\fP
  242. The slider has no scale\&.
  243. .TP
  244. \fB\fILeadingScale \fP\fP
  245. The scale is right of a vertical or below of a horizontal slider\&.
  246. .TP
  247. \fB\fITrailingScale \fP\fP
  248. The scale is left of a vertical or above of a horizontal slider\&.
  249. .SH "Constructor & Destructor Documentation"
  250. .PP
  251. .SS "QwtThermo::QwtThermo (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
  252. Constructor
  253. .PP
  254. \fBParameters\fP
  255. .RS 4
  256. \fIparent\fP Parent widget
  257. .RE
  258. .PP
  259. .SH "Member Function Documentation"
  260. .PP
  261. .SS "QBrush QwtThermo::alarmBrush () const"
  262. .PP
  263. \fBReturns\fP
  264. .RS 4
  265. Liquid brush ( QPalette::Highlight ) above the alarm threshold\&.
  266. .RE
  267. .PP
  268. \fBSee also\fP
  269. .RS 4
  270. \fBsetAlarmBrush()\fP, QWidget::palette()
  271. .RE
  272. .PP
  273. \fBWarning\fP
  274. .RS 4
  275. The alarm threshold has no effect, when a color map has been assigned
  276. .RE
  277. .PP
  278. .SS "bool QwtThermo::alarmEnabled () const"
  279. .PP
  280. \fBReturns\fP
  281. .RS 4
  282. True, when the alarm threshold is enabled\&.
  283. .RE
  284. .PP
  285. \fBWarning\fP
  286. .RS 4
  287. The alarm threshold has no effect, when a color map has been assigned
  288. .RE
  289. .PP
  290. .SS "double QwtThermo::alarmLevel () const"
  291. .PP
  292. \fBReturns\fP
  293. .RS 4
  294. Alarm threshold\&.
  295. .RE
  296. .PP
  297. \fBSee also\fP
  298. .RS 4
  299. \fBsetAlarmLevel()\fP
  300. .RE
  301. .PP
  302. \fBWarning\fP
  303. .RS 4
  304. The alarm threshold has no effect, when a color map has been assigned
  305. .RE
  306. .PP
  307. .SS "QRect QwtThermo::alarmRect (const QRect & fillRect) const\fC [protected]\fP"
  308. .PP
  309. Calculate the alarm rectangle of the pipe\&.
  310. .PP
  311. \fBParameters\fP
  312. .RS 4
  313. \fIfillRect\fP Filled rectangle in the pipe
  314. .RE
  315. .PP
  316. \fBReturns\fP
  317. .RS 4
  318. Rectangle to be filled with the alarm brush
  319. .RE
  320. .PP
  321. \fBSee also\fP
  322. .RS 4
  323. \fBpipeRect()\fP, \fBfillRect()\fP, \fBalarmLevel()\fP, \fBalarmBrush()\fP
  324. .RE
  325. .PP
  326. .SS "int QwtThermo::borderWidth () const"
  327. .PP
  328. \fBReturns\fP
  329. .RS 4
  330. Border width of the thermometer pipe\&.
  331. .RE
  332. .PP
  333. \fBSee also\fP
  334. .RS 4
  335. \fBsetBorderWidth()\fP
  336. .RE
  337. .PP
  338. .SS "void QwtThermo::changeEvent (QEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  339. Qt change event handler
  340. .PP
  341. \fBParameters\fP
  342. .RS 4
  343. \fIevent\fP Event
  344. .RE
  345. .PP
  346. .SS "\fBQwtColorMap\fP * QwtThermo::colorMap ()"
  347. .PP
  348. \fBReturns\fP
  349. .RS 4
  350. Color map for the fill color
  351. .RE
  352. .PP
  353. \fBWarning\fP
  354. .RS 4
  355. The alarm threshold has no effect, when a color map has been assigned
  356. .RE
  357. .PP
  358. .SS "const \fBQwtColorMap\fP * QwtThermo::colorMap () const"
  359. .PP
  360. \fBReturns\fP
  361. .RS 4
  362. Color map for the fill color
  363. .RE
  364. .PP
  365. \fBWarning\fP
  366. .RS 4
  367. The alarm threshold has no effect, when a color map has been assigned
  368. .RE
  369. .PP
  370. .SS "void QwtThermo::drawLiquid (QPainter * painter, const QRect & pipeRect) const\fC [protected]\fP, \fC [virtual]\fP"
  371. Redraw the liquid in thermometer pipe\&.
  372. .PP
  373. \fBParameters\fP
  374. .RS 4
  375. \fIpainter\fP Painter
  376. .br
  377. \fIpipeRect\fP Bounding rectangle of the pipe without borders
  378. .RE
  379. .PP
  380. .SS "QBrush QwtThermo::fillBrush () const"
  381. .PP
  382. \fBReturns\fP
  383. .RS 4
  384. Liquid ( QPalette::ButtonText ) brush\&.
  385. .RE
  386. .PP
  387. \fBSee also\fP
  388. .RS 4
  389. \fBsetFillBrush()\fP, QWidget::palette()
  390. .RE
  391. .PP
  392. .SS "QRect QwtThermo::fillRect (const QRect & pipeRect) const\fC [protected]\fP"
  393. .PP
  394. Calculate the filled rectangle of the pipe\&.
  395. .PP
  396. \fBParameters\fP
  397. .RS 4
  398. \fIpipeRect\fP Rectangle of the pipe
  399. .RE
  400. .PP
  401. \fBReturns\fP
  402. .RS 4
  403. Rectangle to be filled ( fill and alarm brush )
  404. .RE
  405. .PP
  406. \fBSee also\fP
  407. .RS 4
  408. \fBpipeRect()\fP, \fBalarmRect()\fP
  409. .RE
  410. .PP
  411. .SS "QSize QwtThermo::minimumSizeHint () const\fC [virtual]\fP"
  412. .PP
  413. \fBReturns\fP
  414. .RS 4
  415. Minimum size hint
  416. .RE
  417. .PP
  418. \fBWarning\fP
  419. .RS 4
  420. The return value depends on the font and the scale\&.
  421. .RE
  422. .PP
  423. \fBSee also\fP
  424. .RS 4
  425. \fBsizeHint()\fP
  426. .RE
  427. .PP
  428. .SS "Qt::Orientation QwtThermo::orientation () const"
  429. .PP
  430. \fBReturns\fP
  431. .RS 4
  432. Orientation
  433. .RE
  434. .PP
  435. \fBSee also\fP
  436. .RS 4
  437. \fBsetOrientation()\fP
  438. .RE
  439. .PP
  440. .SS "double QwtThermo::origin () const"
  441. .PP
  442. \fBReturns\fP
  443. .RS 4
  444. Origin of the thermo, when OriginCustom is enabled
  445. .RE
  446. .PP
  447. \fBSee also\fP
  448. .RS 4
  449. \fBsetOrigin()\fP, \fBsetOriginMode()\fP, \fBoriginMode()\fP
  450. .RE
  451. .PP
  452. .SS "\fBQwtThermo::OriginMode\fP QwtThermo::originMode () const"
  453. .PP
  454. \fBReturns\fP
  455. .RS 4
  456. Mode, how the origin is determined\&.
  457. .RE
  458. .PP
  459. \fBSee also\fP
  460. .RS 4
  461. \fBsetOriginMode()\fP, serOrigin(), \fBorigin()\fP
  462. .RE
  463. .PP
  464. .SS "void QwtThermo::paintEvent (QPaintEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  465. Paint event handler
  466. .PP
  467. \fBParameters\fP
  468. .RS 4
  469. \fIevent\fP Paint event
  470. .RE
  471. .PP
  472. .SS "QRect QwtThermo::pipeRect () const\fC [protected]\fP"
  473. .PP
  474. \fBReturns\fP
  475. .RS 4
  476. Bounding rectangle of the pipe ( without borders ) in widget coordinates
  477. .RE
  478. .PP
  479. .SS "int QwtThermo::pipeWidth () const"
  480. .PP
  481. \fBReturns\fP
  482. .RS 4
  483. Width of the pipe\&.
  484. .RE
  485. .PP
  486. \fBSee also\fP
  487. .RS 4
  488. \fBsetPipeWidth()\fP
  489. .RE
  490. .PP
  491. .SS "\fBQwtInterval::BorderFlags\fP QwtThermo::rangeFlags () const"
  492. .PP
  493. \fBReturns\fP
  494. .RS 4
  495. Range flags
  496. .RE
  497. .PP
  498. \fBSee also\fP
  499. .RS 4
  500. \fBsetRangeFlags()\fP
  501. .RE
  502. .PP
  503. .SS "void QwtThermo::resizeEvent (QResizeEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  504. Resize event handler
  505. .PP
  506. \fBParameters\fP
  507. .RS 4
  508. \fIevent\fP Resize event
  509. .RE
  510. .PP
  511. .SS "\fBQwtScaleDraw\fP * QwtThermo::scaleDraw ()\fC [protected]\fP"
  512. .PP
  513. \fBReturns\fP
  514. .RS 4
  515. the scale draw of the thermo
  516. .RE
  517. .PP
  518. \fBSee also\fP
  519. .RS 4
  520. \fBsetScaleDraw()\fP
  521. .RE
  522. .PP
  523. .SS "const \fBQwtScaleDraw\fP * QwtThermo::scaleDraw () const"
  524. .PP
  525. \fBReturns\fP
  526. .RS 4
  527. the scale draw of the thermo
  528. .RE
  529. .PP
  530. \fBSee also\fP
  531. .RS 4
  532. \fBsetScaleDraw()\fP
  533. .RE
  534. .PP
  535. .SS "\fBQwtThermo::ScalePosition\fP QwtThermo::scalePosition () const"
  536. .PP
  537. \fBReturns\fP
  538. .RS 4
  539. Scale position\&.
  540. .RE
  541. .PP
  542. \fBSee also\fP
  543. .RS 4
  544. \fBsetScalePosition()\fP
  545. .RE
  546. .PP
  547. .SS "void QwtThermo::setAlarmBrush (const QBrush & brush)"
  548. .PP
  549. Specify the liquid brush above the alarm threshold\&. Changes the QPalette::Highlight brush of the palette\&.
  550. .PP
  551. \fBParameters\fP
  552. .RS 4
  553. \fIbrush\fP New brush\&.
  554. .RE
  555. .PP
  556. \fBSee also\fP
  557. .RS 4
  558. \fBalarmBrush()\fP, QWidget::setPalette()
  559. .RE
  560. .PP
  561. \fBWarning\fP
  562. .RS 4
  563. The alarm threshold has no effect, when a color map has been assigned
  564. .RE
  565. .PP
  566. .SS "void QwtThermo::setAlarmEnabled (bool on)"
  567. .PP
  568. Enable or disable the alarm threshold\&.
  569. .PP
  570. \fBParameters\fP
  571. .RS 4
  572. \fIon\fP true (disabled) or false (enabled)
  573. .RE
  574. .PP
  575. \fBWarning\fP
  576. .RS 4
  577. The alarm threshold has no effect, when a color map has been assigned
  578. .RE
  579. .PP
  580. .SS "void QwtThermo::setAlarmLevel (double level)"
  581. Specify the alarm threshold\&.
  582. .PP
  583. \fBParameters\fP
  584. .RS 4
  585. \fIlevel\fP Alarm threshold
  586. .RE
  587. .PP
  588. \fBSee also\fP
  589. .RS 4
  590. \fBalarmLevel()\fP
  591. .RE
  592. .PP
  593. \fBWarning\fP
  594. .RS 4
  595. The alarm threshold has no effect, when a color map has been assigned
  596. .RE
  597. .PP
  598. .SS "void QwtThermo::setBorderWidth (int width)"
  599. Set the border width of the pipe\&.
  600. .PP
  601. \fBParameters\fP
  602. .RS 4
  603. \fIwidth\fP Border width
  604. .RE
  605. .PP
  606. \fBSee also\fP
  607. .RS 4
  608. \fBborderWidth()\fP
  609. .RE
  610. .PP
  611. .SS "void QwtThermo::setColorMap (\fBQwtColorMap\fP * colorMap)"
  612. .PP
  613. Assign a color map for the fill color\&.
  614. .PP
  615. \fBParameters\fP
  616. .RS 4
  617. \fIcolorMap\fP Color map
  618. .RE
  619. .PP
  620. \fBWarning\fP
  621. .RS 4
  622. The alarm threshold has no effect, when a color map has been assigned
  623. .RE
  624. .PP
  625. .SS "void QwtThermo::setFillBrush (const QBrush & brush)"
  626. .PP
  627. Change the brush of the liquid\&. Changes the QPalette::ButtonText brush of the palette\&.
  628. .PP
  629. \fBParameters\fP
  630. .RS 4
  631. \fIbrush\fP New brush\&.
  632. .RE
  633. .PP
  634. \fBSee also\fP
  635. .RS 4
  636. \fBfillBrush()\fP, QWidget::setPalette()
  637. .RE
  638. .PP
  639. .SS "void QwtThermo::setOrientation (Qt::Orientation orientation)"
  640. .PP
  641. Set the orientation\&.
  642. .PP
  643. \fBParameters\fP
  644. .RS 4
  645. \fIorientation\fP Allowed values are Qt::Horizontal and Qt::Vertical\&.
  646. .RE
  647. .PP
  648. \fBSee also\fP
  649. .RS 4
  650. \fBorientation()\fP, \fBscalePosition()\fP
  651. .RE
  652. .PP
  653. .SS "void QwtThermo::setOrigin (double origin)"
  654. .PP
  655. Specifies the custom origin\&. If originMode is set to OriginCustom this property controls where the liquid starts\&.
  656. .PP
  657. \fBParameters\fP
  658. .RS 4
  659. \fIorigin\fP New origin level
  660. .RE
  661. .PP
  662. \fBSee also\fP
  663. .RS 4
  664. \fBsetOriginMode()\fP, \fBoriginMode()\fP, \fBorigin()\fP
  665. .RE
  666. .PP
  667. .SS "void QwtThermo::setOriginMode (\fBOriginMode\fP m)"
  668. .PP
  669. Change how the origin is determined\&.
  670. .PP
  671. \fBSee also\fP
  672. .RS 4
  673. \fBoriginMode()\fP, serOrigin(), \fBorigin()\fP
  674. .RE
  675. .PP
  676. .SS "void QwtThermo::setPipeWidth (int width)"
  677. Change the width of the pipe\&.
  678. .PP
  679. \fBParameters\fP
  680. .RS 4
  681. \fIwidth\fP Width of the pipe
  682. .RE
  683. .PP
  684. \fBSee also\fP
  685. .RS 4
  686. \fBpipeWidth()\fP
  687. .RE
  688. .PP
  689. .SS "void QwtThermo::setRangeFlags (\fBQwtInterval::BorderFlags\fP flags)"
  690. .PP
  691. Exclude/Include min/max values\&. According to the flags minValue() and maxValue() are included/excluded from the pipe\&. In case of an excluded value the corresponding tick is painted 1 pixel off of the \fBpipeRect()\fP\&.
  692. .PP
  693. F\&.e\&. when a minimum of 0\&.0 has to be displayed as an empty pipe the minValue() needs to be excluded\&.
  694. .PP
  695. \fBParameters\fP
  696. .RS 4
  697. \fIflags\fP Range flags
  698. .RE
  699. .PP
  700. \fBSee also\fP
  701. .RS 4
  702. \fBrangeFlags()\fP
  703. .RE
  704. .PP
  705. .SS "void QwtThermo::setScaleDraw (\fBQwtScaleDraw\fP * scaleDraw)"
  706. .PP
  707. Set a scale draw\&. For changing the labels of the scales, it is necessary to derive from \fBQwtScaleDraw\fP and overload \fBQwtScaleDraw::label()\fP\&.
  708. .PP
  709. \fBParameters\fP
  710. .RS 4
  711. \fIscaleDraw\fP ScaleDraw object, that has to be created with new and will be deleted in \fB~QwtThermo()\fP or the next call of \fBsetScaleDraw()\fP\&.
  712. .RE
  713. .PP
  714. .SS "void QwtThermo::setScalePosition (\fBScalePosition\fP scalePosition)"
  715. .PP
  716. Change the position of the scale\&.
  717. .PP
  718. \fBParameters\fP
  719. .RS 4
  720. \fIscalePosition\fP Position of the scale\&.
  721. .RE
  722. .PP
  723. \fBSee also\fP
  724. .RS 4
  725. \fBScalePosition\fP, \fBscalePosition()\fP
  726. .RE
  727. .PP
  728. .SS "void QwtThermo::setSpacing (int spacing)"
  729. .PP
  730. Change the spacing between pipe and scale\&. A spacing of 0 means, that the backbone of the scale is below the pipe\&.
  731. .PP
  732. The default setting is 3 pixels\&.
  733. .PP
  734. \fBParameters\fP
  735. .RS 4
  736. \fIspacing\fP Number of pixels
  737. .RE
  738. .PP
  739. \fBSee also\fP
  740. .RS 4
  741. \fBspacing()\fP;
  742. .RE
  743. .PP
  744. .SS "void QwtThermo::setValue (double value)\fC [virtual]\fP, \fC [slot]\fP"
  745. Set the current value\&.
  746. .PP
  747. \fBParameters\fP
  748. .RS 4
  749. \fIvalue\fP New Value
  750. .RE
  751. .PP
  752. \fBSee also\fP
  753. .RS 4
  754. \fBvalue()\fP
  755. .RE
  756. .PP
  757. .SS "QSize QwtThermo::sizeHint () const\fC [virtual]\fP"
  758. .PP
  759. \fBReturns\fP
  760. .RS 4
  761. the minimum size hint
  762. .RE
  763. .PP
  764. \fBSee also\fP
  765. .RS 4
  766. \fBminimumSizeHint()\fP
  767. .RE
  768. .PP
  769. .SS "int QwtThermo::spacing () const"
  770. .PP
  771. \fBReturns\fP
  772. .RS 4
  773. Number of pixels between pipe and scale
  774. .RE
  775. .PP
  776. \fBSee also\fP
  777. .RS 4
  778. \fBsetSpacing()\fP
  779. .RE
  780. .PP
  781. .SH "Author"
  782. .PP
  783. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.