QwtDialNeedle.3 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .TH "QwtDialNeedle" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtDialNeedle \- Base class for needles that can be used in a \fBQwtDial\fP\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_dial_needle\&.h>\fP
  11. .PP
  12. Inherited by \fBQwtCompassMagnetNeedle\fP, \fBQwtCompassWindArrow\fP, and \fBQwtDialSimpleNeedle\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtDialNeedle\fP ()"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "virtual \fB~QwtDialNeedle\fP ()"
  21. .br
  22. .RI "Destructor\&. "
  23. .ti -1c
  24. .RI "virtual void \fBsetPalette\fP (const QPalette &)"
  25. .br
  26. .ti -1c
  27. .RI "const QPalette & \fBpalette\fP () const"
  28. .br
  29. .ti -1c
  30. .RI "virtual void \fBdraw\fP (QPainter *painter, const QPointF &center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const"
  31. .br
  32. .in -1c
  33. .SS "Protected Member Functions"
  34. .in +1c
  35. .ti -1c
  36. .RI "virtual void \fBdrawNeedle\fP (QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0"
  37. .br
  38. .RI "Draw the needle\&. "
  39. .ti -1c
  40. .RI "virtual void \fBdrawKnob\fP (QPainter *, double width, const QBrush &, bool sunken) const"
  41. .br
  42. .RI "Draw the knob\&. "
  43. .in -1c
  44. .SH "Detailed Description"
  45. .PP
  46. Base class for needles that can be used in a \fBQwtDial\fP\&.
  47. \fBQwtDialNeedle\fP is a pointer that indicates a value by pointing to a specific direction\&.
  48. .PP
  49. \fBSee also\fP
  50. .RS 4
  51. \fBQwtDial\fP, \fBQwtCompass\fP
  52. .RE
  53. .PP
  54. .SH "Member Function Documentation"
  55. .PP
  56. .SS "void QwtDialNeedle::draw (QPainter * painter, const QPointF & center, double length, double direction, QPalette::ColorGroup colorGroup = \fCQPalette::Active\fP) const\fC [virtual]\fP"
  57. Draw the needle
  58. .PP
  59. \fBParameters\fP
  60. .RS 4
  61. \fIpainter\fP Painter
  62. .br
  63. \fIcenter\fP Center of the dial, start position for the needle
  64. .br
  65. \fIlength\fP Length of the needle
  66. .br
  67. \fIdirection\fP Direction of the needle, in degrees counter clockwise
  68. .br
  69. \fIcolorGroup\fP Color group, used for painting
  70. .RE
  71. .PP
  72. .SS "virtual void QwtDialNeedle::drawNeedle (QPainter * painter, double length, QPalette::ColorGroup colorGroup) const\fC [protected]\fP, \fC [pure virtual]\fP"
  73. .PP
  74. Draw the needle\&. The origin of the needle is at position (0\&.0, 0\&.0 ) pointing in direction 0\&.0 ( = east )\&.
  75. .PP
  76. The painter is already initialized with translation and rotation\&.
  77. .PP
  78. \fBParameters\fP
  79. .RS 4
  80. \fIpainter\fP Painter
  81. .br
  82. \fIlength\fP Length of the needle
  83. .br
  84. \fIcolorGroup\fP Color group, used for painting
  85. .RE
  86. .PP
  87. \fBSee also\fP
  88. .RS 4
  89. \fBsetPalette()\fP, \fBpalette()\fP
  90. .RE
  91. .PP
  92. .PP
  93. Implemented in \fBQwtCompassWindArrow\fP, \fBQwtCompassMagnetNeedle\fP, and \fBQwtDialSimpleNeedle\fP\&.
  94. .SS "const QPalette & QwtDialNeedle::palette () const"
  95. .PP
  96. \fBReturns\fP
  97. .RS 4
  98. the palette of the needle\&.
  99. .RE
  100. .PP
  101. .SS "void QwtDialNeedle::setPalette (const QPalette & palette)\fC [virtual]\fP"
  102. Sets the palette for the needle\&.
  103. .PP
  104. \fBParameters\fP
  105. .RS 4
  106. \fIpalette\fP New Palette
  107. .RE
  108. .PP
  109. .SH "Author"
  110. .PP
  111. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.