QwtPolarGrid.3 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. .TH "QwtPolarGrid" 3 "Fri Sep 19 2014" "Version 1.1.1" "Qwt Polar User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPolarGrid \-
  6. .PP
  7. An item which draws scales and grid lines on a polar plot\&.
  8. .SH SYNOPSIS
  9. .br
  10. .PP
  11. .PP
  12. \fC#include <qwt_polar_grid\&.h>\fP
  13. .PP
  14. Inherits \fBQwtPolarItem\fP\&.
  15. .SS "Public Types"
  16. .in +1c
  17. .ti -1c
  18. .RI "enum \fBDisplayFlag\fP { \fBSmartOriginLabel\fP = 1, \fBHideMaxRadiusLabel\fP = 2, \fBClipAxisBackground\fP = 4, \fBSmartScaleDraw\fP = 8, \fBClipGridLines\fP = 16 }"
  19. .br
  20. .ti -1c
  21. .RI "enum \fBGridAttribute\fP { \fBAutoScaling\fP = 0x01 }"
  22. .br
  23. .RI "\fIGrid attributes\&. \fP"
  24. .ti -1c
  25. .RI "typedef QFlags< \fBDisplayFlag\fP > \fBDisplayFlags\fP"
  26. .br
  27. .RI "\fIDisplay flags\&. \fP"
  28. .ti -1c
  29. .RI "typedef QFlags< \fBGridAttribute\fP > \fBGridAttributes\fP"
  30. .br
  31. .RI "\fIGrid attributes\&. \fP"
  32. .in -1c
  33. .SS "Public Member Functions"
  34. .in +1c
  35. .ti -1c
  36. .RI "\fBQwtPolarGrid\fP ()"
  37. .br
  38. .RI "\fIConstructor\&. \fP"
  39. .ti -1c
  40. .RI "virtual \fB~QwtPolarGrid\fP ()"
  41. .br
  42. .RI "\fIDestructor\&. \fP"
  43. .ti -1c
  44. .RI "virtual int \fBrtti\fP () const "
  45. .br
  46. .ti -1c
  47. .RI "void \fBsetDisplayFlag\fP (\fBDisplayFlag\fP, bool on=true)"
  48. .br
  49. .ti -1c
  50. .RI "bool \fBtestDisplayFlag\fP (\fBDisplayFlag\fP) const "
  51. .br
  52. .ti -1c
  53. .RI "void \fBsetGridAttribute\fP (\fBGridAttribute\fP, bool on=true)"
  54. .br
  55. .RI "\fISpecify an attribute for the grid\&. \fP"
  56. .ti -1c
  57. .RI "bool \fBtestGridAttribute\fP (\fBGridAttribute\fP) const "
  58. .br
  59. .ti -1c
  60. .RI "void \fBshowGrid\fP (int scaleId, bool \fBshow\fP=true)"
  61. .br
  62. .ti -1c
  63. .RI "bool \fBisGridVisible\fP (int scaleId) const "
  64. .br
  65. .ti -1c
  66. .RI "void \fBshowMinorGrid\fP (int scaleId, bool \fBshow\fP=true)"
  67. .br
  68. .ti -1c
  69. .RI "bool \fBisMinorGridVisible\fP (int scaleId) const "
  70. .br
  71. .ti -1c
  72. .RI "void \fBshowAxis\fP (int axisId, bool \fBshow\fP=true)"
  73. .br
  74. .ti -1c
  75. .RI "bool \fBisAxisVisible\fP (int axisId) const "
  76. .br
  77. .ti -1c
  78. .RI "void \fBsetPen\fP (const QPen &p)"
  79. .br
  80. .ti -1c
  81. .RI "void \fBsetFont\fP (const QFont &)"
  82. .br
  83. .ti -1c
  84. .RI "void \fBsetMajorGridPen\fP (const QPen &p)"
  85. .br
  86. .ti -1c
  87. .RI "void \fBsetMajorGridPen\fP (int scaleId, const QPen &p)"
  88. .br
  89. .ti -1c
  90. .RI "QPen \fBmajorGridPen\fP (int scaleId) const "
  91. .br
  92. .ti -1c
  93. .RI "void \fBsetMinorGridPen\fP (const QPen &p)"
  94. .br
  95. .ti -1c
  96. .RI "void \fBsetMinorGridPen\fP (int scaleId, const QPen &p)"
  97. .br
  98. .ti -1c
  99. .RI "QPen \fBminorGridPen\fP (int scaleId) const "
  100. .br
  101. .ti -1c
  102. .RI "void \fBsetAxisPen\fP (int axisId, const QPen &p)"
  103. .br
  104. .ti -1c
  105. .RI "QPen \fBaxisPen\fP (int axisId) const "
  106. .br
  107. .ti -1c
  108. .RI "void \fBsetAxisFont\fP (int axisId, const QFont &p)"
  109. .br
  110. .ti -1c
  111. .RI "QFont \fBaxisFont\fP (int axisId) const "
  112. .br
  113. .ti -1c
  114. .RI "void \fBsetScaleDraw\fP (int axisId, QwtScaleDraw *)"
  115. .br
  116. .RI "\fISet a scale draw\&. \fP"
  117. .ti -1c
  118. .RI "const QwtScaleDraw * \fBscaleDraw\fP (int axisId) const "
  119. .br
  120. .ti -1c
  121. .RI "QwtScaleDraw * \fBscaleDraw\fP (int axisId)"
  122. .br
  123. .ti -1c
  124. .RI "void \fBsetAzimuthScaleDraw\fP (QwtRoundScaleDraw *)"
  125. .br
  126. .RI "\fISet a scale draw for the azimuth scale\&. \fP"
  127. .ti -1c
  128. .RI "const QwtRoundScaleDraw * \fBazimuthScaleDraw\fP () const "
  129. .br
  130. .ti -1c
  131. .RI "QwtRoundScaleDraw * \fBazimuthScaleDraw\fP ()"
  132. .br
  133. .ti -1c
  134. .RI "virtual void \fBdraw\fP (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &rect) const "
  135. .br
  136. .ti -1c
  137. .RI "virtual void \fBupdateScaleDiv\fP (const QwtScaleDiv &azimuthMap, const QwtScaleDiv &radialMap, const QwtInterval &)"
  138. .br
  139. .RI "\fIUpdate the item to changes of the axes scale division\&. \fP"
  140. .ti -1c
  141. .RI "virtual int \fBmarginHint\fP () const "
  142. .br
  143. .in -1c
  144. .SS "Protected Member Functions"
  145. .in +1c
  146. .ti -1c
  147. .RI "void \fBdrawRays\fP (QPainter *, const QRectF &, const QPointF &pole, double radius, const QwtScaleMap &azimuthMap, const QList< double > &) const "
  148. .br
  149. .ti -1c
  150. .RI "void \fBdrawCircles\fP (QPainter *, const QRectF &, const QPointF &pole, const QwtScaleMap &radialMap, const QList< double > &) const "
  151. .br
  152. .ti -1c
  153. .RI "void \fBdrawAxis\fP (QPainter *, int axisId) const "
  154. .br
  155. .in -1c
  156. .SH "Detailed Description"
  157. .PP
  158. An item which draws scales and grid lines on a polar plot\&.
  159. The \fBQwtPolarGrid\fP class can be used to draw a coordinate grid\&. A coordinate grid consists of major and minor gridlines\&. The locations of the gridlines are determined by the azimuth and radial scale divisions\&.
  160. .PP
  161. \fBQwtPolarGrid\fP is also responsible for drawing the axis representing the scales\&. It is possible to display 4 radial and one azimuth axis\&.
  162. .PP
  163. Whenever the scale divisions of the plot widget changes the grid is synchronized by \fBupdateScaleDiv()\fP\&.
  164. .PP
  165. \fBSee Also:\fP
  166. .RS 4
  167. \fBQwtPolarPlot\fP, QwtPolar::Axis
  168. .RE
  169. .PP
  170. .SH "Member Enumeration Documentation"
  171. .PP
  172. .SS "enum \fBQwtPolarGrid::DisplayFlag\fP"
  173. Mysterious flags trying to avoid conflicts, when painting the scales and grid lines\&.
  174. .PP
  175. The default setting enables all flags\&.
  176. .PP
  177. \fBSee Also:\fP
  178. .RS 4
  179. \fBsetDisplayFlag()\fP, \fBtestDisplayFlag()\fP
  180. .RE
  181. .PP
  182. .PP
  183. \fBEnumerator\fP
  184. .in +1c
  185. .TP
  186. \fB\fISmartOriginLabel \fP\fP
  187. Try to avoid situations, where the label of the origin is painted over another axis\&.
  188. .TP
  189. \fB\fIHideMaxRadiusLabel \fP\fP
  190. Often the outermost tick of the radial scale is close to the canvas border\&. With HideMaxRadiusLabel enabled it is not painted\&.
  191. .TP
  192. \fB\fIClipAxisBackground \fP\fP
  193. The tick labels of the radial scales might be hard to read, when they are painted on top of the radial grid lines ( or on top of a curve/spectrogram )\&. When ClipAxisBackground the bounding rect of each label is added to the clip region\&.
  194. .TP
  195. \fB\fISmartScaleDraw \fP\fP
  196. Don't paint the backbone of the radial axes, when they are very close to a line of the azimuth grid\&.
  197. .TP
  198. \fB\fIClipGridLines \fP\fP
  199. All grid lines are clipped against the plot area before being painted\&. When the plot is zoomed in this will have an significant impact on the performance of the painting cde\&.
  200. .SS "enum \fBQwtPolarGrid::GridAttribute\fP"
  201. .PP
  202. Grid attributes\&.
  203. .PP
  204. \fBSee Also:\fP
  205. .RS 4
  206. setGridAttributes(), testGridAttributes()
  207. .RE
  208. .PP
  209. .PP
  210. \fBEnumerator\fP
  211. .in +1c
  212. .TP
  213. \fB\fIAutoScaling \fP\fP
  214. When AutoScaling is enabled, the radial axes will be adjusted to the interval, that is currently visible on the canvas plot\&.
  215. .SH "Constructor & Destructor Documentation"
  216. .PP
  217. .SS "QwtPolarGrid::QwtPolarGrid ()\fC [explicit]\fP"
  218. .PP
  219. Constructor\&. Enables major and disables minor grid lines\&. The azimuth and right radial axis are visible\&. all other axes are hidden\&. Autoscaling is enabled\&.
  220. .SH "Member Function Documentation"
  221. .PP
  222. .SS "QFont QwtPolarGrid::axisFont (intaxisId) const"
  223. .PP
  224. \fBReturns:\fP
  225. .RS 4
  226. Font for the tick labels of a specific axis
  227. .RE
  228. .PP
  229. \fBParameters:\fP
  230. .RS 4
  231. \fIaxisId\fP Axis id (QwtPolar::Axis)
  232. .RE
  233. .PP
  234. .SS "QPen QwtPolarGrid::axisPen (intaxisId) const"
  235. .PP
  236. \fBReturns:\fP
  237. .RS 4
  238. Pen for painting a specific axis
  239. .RE
  240. .PP
  241. \fBParameters:\fP
  242. .RS 4
  243. \fIaxisId\fP Axis id (QwtPolar::Axis)
  244. .RE
  245. .PP
  246. \fBSee Also:\fP
  247. .RS 4
  248. \fBsetAxisPen()\fP
  249. .RE
  250. .PP
  251. .SS "const QwtRoundScaleDraw * QwtPolarGrid::azimuthScaleDraw () const"
  252. .PP
  253. \fBReturns:\fP
  254. .RS 4
  255. Scale draw for the azimuth scale
  256. .RE
  257. .PP
  258. \fBSee Also:\fP
  259. .RS 4
  260. \fBsetAzimuthScaleDraw()\fP, \fBscaleDraw()\fP
  261. .RE
  262. .PP
  263. .SS "QwtRoundScaleDraw * QwtPolarGrid::azimuthScaleDraw ()"
  264. .PP
  265. \fBReturns:\fP
  266. .RS 4
  267. Scale draw for the azimuth scale
  268. .RE
  269. .PP
  270. \fBSee Also:\fP
  271. .RS 4
  272. \fBsetAzimuthScaleDraw()\fP, \fBscaleDraw()\fP
  273. .RE
  274. .PP
  275. .SS "void QwtPolarGrid::draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, doubleradius, const QRectF &canvasRect) const\fC [virtual]\fP"
  276. Draw the grid and axes
  277. .PP
  278. \fBParameters:\fP
  279. .RS 4
  280. \fIpainter\fP Painter
  281. .br
  282. \fIazimuthMap\fP Maps azimuth values to values related to 0\&.0, M_2PI
  283. .br
  284. \fIradialMap\fP Maps radius values into painter coordinates\&.
  285. .br
  286. \fIpole\fP Position of the pole in painter coordinates
  287. .br
  288. \fIradius\fP Radius of the complete plot area in painter coordinates
  289. .br
  290. \fIcanvasRect\fP Contents rect of the canvas in painter coordinates
  291. .RE
  292. .PP
  293. .PP
  294. Implements \fBQwtPolarItem\fP\&.
  295. .SS "void QwtPolarGrid::drawAxis (QPainter *painter, intaxisId) const\fC [protected]\fP"
  296. Paint an axis
  297. .PP
  298. \fBParameters:\fP
  299. .RS 4
  300. \fIpainter\fP Painter
  301. .br
  302. \fIaxisId\fP Axis id (QwtPolar::Axis)
  303. .RE
  304. .PP
  305. .SS "void QwtPolarGrid::drawCircles (QPainter *painter, const QRectF &canvasRect, const QPointF &pole, const QwtScaleMap &radialMap, const QList< double > &values) const\fC [protected]\fP"
  306. Draw circles
  307. .PP
  308. \fBParameters:\fP
  309. .RS 4
  310. \fIpainter\fP Painter
  311. .br
  312. \fIcanvasRect\fP Contents rect of the canvas in painter coordinates
  313. .br
  314. \fIpole\fP Position of the pole in painter coordinates
  315. .br
  316. \fIradialMap\fP Maps radius values into painter coordinates\&.
  317. .br
  318. \fIvalues\fP Radial values, indicating the distances from the pole
  319. .RE
  320. .PP
  321. .SS "void QwtPolarGrid::drawRays (QPainter *painter, const QRectF &canvasRect, const QPointF &pole, doubleradius, const QwtScaleMap &azimuthMap, const QList< double > &values) const\fC [protected]\fP"
  322. Draw lines from the pole
  323. .PP
  324. \fBParameters:\fP
  325. .RS 4
  326. \fIpainter\fP Painter
  327. .br
  328. \fIcanvasRect\fP Contents rect of the canvas in painter coordinates
  329. .br
  330. \fIpole\fP Position of the pole in painter coordinates
  331. .br
  332. \fIradius\fP Length of the lines in painter coordinates
  333. .br
  334. \fIazimuthMap\fP Maps azimuth values to values related to 0\&.0, M_2PI
  335. .br
  336. \fIvalues\fP Azimuth values, indicating the direction of the lines
  337. .RE
  338. .PP
  339. .SS "bool QwtPolarGrid::isAxisVisible (intaxisId) const"
  340. .PP
  341. \fBReturns:\fP
  342. .RS 4
  343. true if the axis is visible
  344. .RE
  345. .PP
  346. \fBParameters:\fP
  347. .RS 4
  348. \fIaxisId\fP Axis id (QwtPolar::Axis)
  349. .RE
  350. .PP
  351. \fBSee Also:\fP
  352. .RS 4
  353. \fBshowAxis()\fP
  354. .RE
  355. .PP
  356. .SS "bool QwtPolarGrid::isGridVisible (intscaleId) const"
  357. .PP
  358. \fBReturns:\fP
  359. .RS 4
  360. true if grid lines are enabled
  361. .RE
  362. .PP
  363. \fBParameters:\fP
  364. .RS 4
  365. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  366. .RE
  367. .PP
  368. \fBSee Also:\fP
  369. .RS 4
  370. QwtPolar::Scale, \fBshowGrid()\fP
  371. .RE
  372. .PP
  373. .SS "bool QwtPolarGrid::isMinorGridVisible (intscaleId) const"
  374. .PP
  375. \fBReturns:\fP
  376. .RS 4
  377. true if minor grid lines are enabled
  378. .RE
  379. .PP
  380. \fBParameters:\fP
  381. .RS 4
  382. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  383. .RE
  384. .PP
  385. \fBSee Also:\fP
  386. .RS 4
  387. \fBshowMinorGrid()\fP
  388. .RE
  389. .PP
  390. .SS "QPen QwtPolarGrid::majorGridPen (intscaleId) const"
  391. .PP
  392. \fBReturns:\fP
  393. .RS 4
  394. Pen for painting the major grid lines of a specific scale
  395. .RE
  396. .PP
  397. \fBParameters:\fP
  398. .RS 4
  399. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  400. .RE
  401. .PP
  402. \fBSee Also:\fP
  403. .RS 4
  404. \fBsetMajorGridPen()\fP, \fBminorGridPen()\fP
  405. .RE
  406. .PP
  407. .SS "int QwtPolarGrid::marginHint () const\fC [virtual]\fP"
  408. .PP
  409. \fBReturns:\fP
  410. .RS 4
  411. Number of pixels, that are necessary to paint the azimuth scale
  412. .RE
  413. .PP
  414. \fBSee Also:\fP
  415. .RS 4
  416. QwtRoundScaleDraw::extent()
  417. .RE
  418. .PP
  419. .PP
  420. Reimplemented from \fBQwtPolarItem\fP\&.
  421. .SS "QPen QwtPolarGrid::minorGridPen (intscaleId) const"
  422. .PP
  423. \fBReturns:\fP
  424. .RS 4
  425. Pen for painting the minor grid lines of a specific scale
  426. .RE
  427. .PP
  428. \fBParameters:\fP
  429. .RS 4
  430. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  431. .RE
  432. .PP
  433. .SS "int QwtPolarGrid::rtti () const\fC [virtual]\fP"
  434. .PP
  435. \fBReturns:\fP
  436. .RS 4
  437. QwtPlotItem::Rtti_PolarGrid
  438. .RE
  439. .PP
  440. .PP
  441. Reimplemented from \fBQwtPolarItem\fP\&.
  442. .SS "const QwtScaleDraw * QwtPolarGrid::scaleDraw (intaxisId) const"
  443. Returns the scale draw of a specified axis
  444. .PP
  445. \fBParameters:\fP
  446. .RS 4
  447. \fIaxisId\fP axis index ( QwtPolar::AxisLeft <= axisId <= QwtPolar::AxisBottom)
  448. .RE
  449. .PP
  450. \fBReturns:\fP
  451. .RS 4
  452. specified scaleDraw for axis, or NULL if axis is invalid\&.
  453. .RE
  454. .PP
  455. \fBSee Also:\fP
  456. .RS 4
  457. \fBazimuthScaleDraw()\fP
  458. .RE
  459. .PP
  460. .SS "QwtScaleDraw * QwtPolarGrid::scaleDraw (intaxisId)"
  461. Returns the scale draw of a specified axis
  462. .PP
  463. \fBParameters:\fP
  464. .RS 4
  465. \fIaxisId\fP axis index ( QwtPolar::AxisLeft <= axisId <= QwtPolar::AxisBottom)
  466. .RE
  467. .PP
  468. \fBReturns:\fP
  469. .RS 4
  470. specified scaleDraw for axis, or NULL if axis is invalid\&.
  471. .RE
  472. .PP
  473. \fBSee Also:\fP
  474. .RS 4
  475. \fBsetScaleDraw()\fP, \fBazimuthScaleDraw()\fP
  476. .RE
  477. .PP
  478. .SS "void QwtPolarGrid::setAxisFont (intaxisId, const QFont &font)"
  479. Assign a font for the tick labels of a specific axis
  480. .PP
  481. \fBParameters:\fP
  482. .RS 4
  483. \fIaxisId\fP Axis id (QwtPolar::Axis)
  484. .br
  485. \fIfont\fP new Font
  486. .RE
  487. .PP
  488. .SS "void QwtPolarGrid::setAxisPen (intaxisId, const QPen &pen)"
  489. Assign a pen for painting an axis
  490. .PP
  491. \fBParameters:\fP
  492. .RS 4
  493. \fIaxisId\fP Axis id (QwtPolar::Axis)
  494. .br
  495. \fIpen\fP Pen
  496. .RE
  497. .PP
  498. \fBSee Also:\fP
  499. .RS 4
  500. \fBaxisPen()\fP
  501. .RE
  502. .PP
  503. .SS "void QwtPolarGrid::setAzimuthScaleDraw (QwtRoundScaleDraw *scaleDraw)"
  504. .PP
  505. Set a scale draw for the azimuth scale\&.
  506. .PP
  507. \fBParameters:\fP
  508. .RS 4
  509. \fIscaleDraw\fP object responsible for drawing scales\&.
  510. .RE
  511. .PP
  512. \fBSee Also:\fP
  513. .RS 4
  514. \fBazimuthScaleDraw()\fP, \fBsetScaleDraw()\fP
  515. .RE
  516. .PP
  517. .SS "void QwtPolarGrid::setDisplayFlag (\fBDisplayFlag\fPflag, boolon = \fCtrue\fP)"
  518. Change the display flags
  519. .PP
  520. \fBParameters:\fP
  521. .RS 4
  522. \fIflag\fP See DisplayFlag
  523. .br
  524. \fIon\fP true/false
  525. .RE
  526. .PP
  527. .SS "void QwtPolarGrid::setFont (const QFont &font)"
  528. Assign a font for all scale tick labels
  529. .PP
  530. \fBParameters:\fP
  531. .RS 4
  532. \fIfont\fP Font
  533. .RE
  534. .PP
  535. \fBSee Also:\fP
  536. .RS 4
  537. \fBsetAxisFont()\fP
  538. .RE
  539. .PP
  540. .SS "void QwtPolarGrid::setGridAttribute (\fBGridAttribute\fPattribute, boolon = \fCtrue\fP)"
  541. .PP
  542. Specify an attribute for the grid\&.
  543. .PP
  544. \fBParameters:\fP
  545. .RS 4
  546. \fIattribute\fP Grid attribute
  547. .br
  548. \fIon\fP On/Off
  549. .RE
  550. .PP
  551. /sa GridAttribute, \fBtestGridAttribute()\fP, \fBupdateScaleDiv()\fP, \fBQwtPolarPlot::zoom()\fP, \fBQwtPolarPlot::scaleDiv()\fP
  552. .SS "void QwtPolarGrid::setMajorGridPen (const QPen &pen)"
  553. Assign a pen for the major grid lines
  554. .PP
  555. \fBParameters:\fP
  556. .RS 4
  557. \fIpen\fP Pen
  558. .RE
  559. .PP
  560. \fBSee Also:\fP
  561. .RS 4
  562. \fBsetPen()\fP, \fBsetMinorGridPen()\fP, \fBmajorGridPen\fP
  563. .RE
  564. .PP
  565. .SS "void QwtPolarGrid::setMajorGridPen (intscaleId, const QPen &pen)"
  566. Assign a pen for the major grid lines of a specific scale
  567. .PP
  568. \fBParameters:\fP
  569. .RS 4
  570. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  571. .br
  572. \fIpen\fP Pen
  573. .RE
  574. .PP
  575. \fBSee Also:\fP
  576. .RS 4
  577. \fBsetPen()\fP, \fBsetMinorGridPen()\fP, \fBmajorGridPen\fP
  578. .RE
  579. .PP
  580. .SS "void QwtPolarGrid::setMinorGridPen (const QPen &pen)"
  581. Assign a pen for the minor grid lines
  582. .PP
  583. \fBParameters:\fP
  584. .RS 4
  585. \fIpen\fP Pen
  586. .RE
  587. .PP
  588. \fBSee Also:\fP
  589. .RS 4
  590. \fBsetPen()\fP, \fBsetMajorGridPen()\fP, \fBminorGridPen()\fP
  591. .RE
  592. .PP
  593. .SS "void QwtPolarGrid::setMinorGridPen (intscaleId, const QPen &pen)"
  594. Assign a pen for the minor grid lines of a specific scale
  595. .PP
  596. \fBParameters:\fP
  597. .RS 4
  598. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  599. .br
  600. \fIpen\fP Pen
  601. .RE
  602. .PP
  603. \fBSee Also:\fP
  604. .RS 4
  605. \fBsetPen()\fP, \fBsetMajorGridPen()\fP, \fBminorGridPen\fP
  606. .RE
  607. .PP
  608. .SS "void QwtPolarGrid::setPen (const QPen &pen)"
  609. Assign a pen for all axes and grid lines
  610. .PP
  611. \fBParameters:\fP
  612. .RS 4
  613. \fIpen\fP Pen
  614. .RE
  615. .PP
  616. \fBSee Also:\fP
  617. .RS 4
  618. \fBsetMajorGridPen()\fP, \fBsetMinorGridPen()\fP, \fBsetAxisPen()\fP
  619. .RE
  620. .PP
  621. .SS "void QwtPolarGrid::setScaleDraw (intaxisId, QwtScaleDraw *scaleDraw)"
  622. .PP
  623. Set a scale draw\&.
  624. .PP
  625. \fBParameters:\fP
  626. .RS 4
  627. \fIaxisId\fP axis index ( QwtPolar::AxisLeft <= axisId <= QwtPolar::AxisBottom)
  628. .br
  629. \fIscaleDraw\fP object responsible for drawing scales\&.
  630. .RE
  631. .PP
  632. \fBSee Also:\fP
  633. .RS 4
  634. \fBscaleDraw()\fP, \fBsetAzimuthScaleDraw()\fP
  635. .RE
  636. .PP
  637. .SS "void QwtPolarGrid::showAxis (intaxisId, boolshow = \fCtrue\fP)"
  638. Show/Hide an axis
  639. .PP
  640. \fBParameters:\fP
  641. .RS 4
  642. \fIaxisId\fP Axis id (QwtPolar::Axis)
  643. .br
  644. \fIshow\fP true/false
  645. .RE
  646. .PP
  647. \fBSee Also:\fP
  648. .RS 4
  649. \fBisAxisVisible()\fP
  650. .RE
  651. .PP
  652. .SS "void QwtPolarGrid::showGrid (intscaleId, boolshow = \fCtrue\fP)"
  653. Show/Hide grid lines for a scale
  654. .PP
  655. \fBParameters:\fP
  656. .RS 4
  657. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  658. .br
  659. \fIshow\fP true/false
  660. .RE
  661. .PP
  662. .SS "void QwtPolarGrid::showMinorGrid (intscaleId, boolshow = \fCtrue\fP)"
  663. Show/Hide minor grid lines for a scale
  664. .PP
  665. To display minor grid lines\&. \fBshowGrid()\fP needs to be enabled too\&.
  666. .PP
  667. \fBParameters:\fP
  668. .RS 4
  669. \fIscaleId\fP Scale id ( QwtPolar::Scale )
  670. .br
  671. \fIshow\fP true/false
  672. .RE
  673. .PP
  674. \fBSee Also:\fP
  675. .RS 4
  676. \fBshowGrid\fP
  677. .RE
  678. .PP
  679. .SS "bool QwtPolarGrid::testDisplayFlag (\fBDisplayFlag\fPflag) const"
  680. .PP
  681. \fBReturns:\fP
  682. .RS 4
  683. true, if flag is enabled
  684. .RE
  685. .PP
  686. \fBParameters:\fP
  687. .RS 4
  688. \fIflag\fP See DisplayFlag
  689. .RE
  690. .PP
  691. .SS "bool QwtPolarGrid::testGridAttribute (\fBGridAttribute\fPattribute) const"
  692. .PP
  693. \fBReturns:\fP
  694. .RS 4
  695. true, if attribute is enabled
  696. .RE
  697. .PP
  698. \fBSee Also:\fP
  699. .RS 4
  700. \fBGridAttribute\fP, \fBsetGridAttribute()\fP
  701. .RE
  702. .PP
  703. .SS "void QwtPolarGrid::updateScaleDiv (const QwtScaleDiv &azimuthScaleDiv, const QwtScaleDiv &radialScaleDiv, const QwtInterval &interval)\fC [virtual]\fP"
  704. .PP
  705. Update the item to changes of the axes scale division\&. If AutoScaling is enabled the radial scale is calculated from the interval, otherwise the scales are adopted to the plot scales\&.
  706. .PP
  707. \fBParameters:\fP
  708. .RS 4
  709. \fIazimuthScaleDiv\fP Scale division of the azimuth-scale
  710. .br
  711. \fIradialScaleDiv\fP Scale division of the radius-axis
  712. .br
  713. \fIinterval\fP The interval of the radius-axis, that is visible on the canvas
  714. .RE
  715. .PP
  716. \fBSee Also:\fP
  717. .RS 4
  718. QwtPolarPlot::setGridAttributes()
  719. .RE
  720. .PP
  721. .PP
  722. Reimplemented from \fBQwtPolarItem\fP\&.
  723. .SH "Author"
  724. .PP
  725. Generated automatically by Doxygen for Qwt Polar User's Guide from the source code\&.