QwtCompass.3 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .TH "QwtCompass" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtCompass \- A Compass Widget\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_compass\&.h>\fP
  11. .PP
  12. Inherits \fBQwtDial\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtCompass\fP (QWidget *parent=NULL)"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "virtual \fB~QwtCompass\fP ()"
  21. .br
  22. .RI "Destructor\&. "
  23. .ti -1c
  24. .RI "void \fBsetRose\fP (\fBQwtCompassRose\fP *\fBrose\fP)"
  25. .br
  26. .ti -1c
  27. .RI "const \fBQwtCompassRose\fP * \fBrose\fP () const"
  28. .br
  29. .ti -1c
  30. .RI "\fBQwtCompassRose\fP * \fBrose\fP ()"
  31. .br
  32. .in -1c
  33. .SS "Protected Member Functions"
  34. .in +1c
  35. .ti -1c
  36. .RI "virtual void \fBdrawRose\fP (QPainter *, const QPointF &center, double radius, double north, QPalette::ColorGroup) const"
  37. .br
  38. .ti -1c
  39. .RI "virtual void \fBdrawScaleContents\fP (QPainter *, const QPointF &center, double radius) const"
  40. .br
  41. .ti -1c
  42. .RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
  43. .br
  44. .in -1c
  45. .SS "Additional Inherited Members"
  46. .SH "Detailed Description"
  47. .PP
  48. A Compass Widget\&.
  49. \fBQwtCompass\fP is a widget to display and enter directions\&. It consists of a scale, an optional needle and rose\&.
  50. .PP
  51. .PP
  52. \fBNote\fP
  53. .RS 4
  54. The examples/dials example shows how to use \fBQwtCompass\fP\&.
  55. .RE
  56. .PP
  57. .SH "Constructor & Destructor Documentation"
  58. .PP
  59. .SS "QwtCompass::QwtCompass (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
  60. .PP
  61. Constructor\&.
  62. .PP
  63. \fBParameters\fP
  64. .RS 4
  65. \fIparent\fP Parent widget
  66. .RE
  67. .PP
  68. Create a compass widget with a scale, no needle and no rose\&. The default origin is 270\&.0 with no valid value\&. It accepts mouse and keyboard inputs and has no step size\&. The default mode is \fBQwtDial::RotateNeedle\fP\&.
  69. .SH "Member Function Documentation"
  70. .PP
  71. .SS "void QwtCompass::drawRose (QPainter * painter, const QPointF & center, double radius, double north, QPalette::ColorGroup cg) const\fC [protected]\fP, \fC [virtual]\fP"
  72. Draw the compass rose
  73. .PP
  74. \fBParameters\fP
  75. .RS 4
  76. \fIpainter\fP Painter
  77. .br
  78. \fIcenter\fP Center of the compass
  79. .br
  80. \fIradius\fP of the circle, where to paint the rose
  81. .br
  82. \fInorth\fP Direction pointing north, in degrees counter clockwise
  83. .br
  84. \fIcg\fP Color group
  85. .RE
  86. .PP
  87. .SS "void QwtCompass::drawScaleContents (QPainter * painter, const QPointF & center, double radius) const\fC [protected]\fP, \fC [virtual]\fP"
  88. Draw the contents of the scale
  89. .PP
  90. \fBParameters\fP
  91. .RS 4
  92. \fIpainter\fP Painter
  93. .br
  94. \fIcenter\fP Center of the content circle
  95. .br
  96. \fIradius\fP Radius of the content circle
  97. .RE
  98. .PP
  99. .PP
  100. Reimplemented from \fBQwtDial\fP\&.
  101. .SS "void QwtCompass::keyPressEvent (QKeyEvent * kev)\fC [protected]\fP, \fC [virtual]\fP"
  102. Handles key events
  103. .PP
  104. Beside the keys described in \fBQwtDial::keyPressEvent\fP numbers from 1-9 (without 5) set the direction according to their position on the num pad\&.
  105. .PP
  106. \fBSee also\fP
  107. .RS 4
  108. \fBisReadOnly()\fP
  109. .RE
  110. .PP
  111. .PP
  112. Reimplemented from \fBQwtAbstractSlider\fP\&.
  113. .SS "\fBQwtCompassRose\fP * QwtCompass::rose ()"
  114. .PP
  115. \fBReturns\fP
  116. .RS 4
  117. rose
  118. .RE
  119. .PP
  120. \fBSee also\fP
  121. .RS 4
  122. \fBsetRose()\fP
  123. .RE
  124. .PP
  125. .SS "const \fBQwtCompassRose\fP * QwtCompass::rose () const"
  126. .PP
  127. \fBReturns\fP
  128. .RS 4
  129. rose
  130. .RE
  131. .PP
  132. \fBSee also\fP
  133. .RS 4
  134. \fBsetRose()\fP
  135. .RE
  136. .PP
  137. .SS "void QwtCompass::setRose (\fBQwtCompassRose\fP * rose)"
  138. Set a rose for the compass
  139. .PP
  140. \fBParameters\fP
  141. .RS 4
  142. \fIrose\fP Compass rose
  143. .RE
  144. .PP
  145. \fBWarning\fP
  146. .RS 4
  147. The rose will be deleted, when a different rose is set or in ~QwtCompass
  148. .RE
  149. .PP
  150. \fBSee also\fP
  151. .RS 4
  152. \fBrose()\fP
  153. .RE
  154. .PP
  155. .SH "Author"
  156. .PP
  157. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.