1
.TH "QwtDialSimpleNeedle" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtDialNeedle\fP.
11
.SH "Detailed Description"
13
A needle for dial widgets.
15
The following colors are used:
28
\fBQwtDial\fP, \fBQwtCompass\fP
33
Definition at line 73 of file qwt_dial_needle.h.
38
.RI "enum \fBStyle\fP { \fBArrow\fP, \fBRay\fP, \fBTriangleStyle\fP, \fBThinStyle\fP, \fBStyle1\fP, \fBStyle2\fP, \fBNoSymbol\fP = -1, \fBEllipse\fP, \fBRect\fP, \fBDiamond\fP, \fBTriangle\fP, \fBDTriangle\fP, \fBUTriangle\fP, \fBLTriangle\fP, \fBRTriangle\fP, \fBCross\fP, \fBXCross\fP, \fBHLine\fP, \fBVLine\fP, \fBStar1\fP, \fBStar2\fP, \fBHexagon\fP, \fBStyleCnt\fP }"
41
.SS "Public Member Functions"
45
.RI "\fBQwtDialSimpleNeedle\fP (\fBStyle\fP, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray)"
48
.RI "virtual void \fBdraw\fP (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const"
51
.RI "void \fBsetWidth\fP (int width)"
54
.RI "int \fBwidth\fP () const"
57
.SS "Static Public Member Functions"
61
.RI "static void \fBdrawArrowNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)"
64
.RI "static void \fBdrawRayNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int width, double direction, bool hasKnob)"
67
.SH "Member Enumeration Documentation"
69
.SS "enum \fBQwtDialSimpleNeedle::Style\fP"
73
Definition at line 77 of file qwt_dial_needle.h.
74
.SH "Constructor & Destructor Documentation"
76
.SS "QwtDialSimpleNeedle::QwtDialSimpleNeedle (\fBStyle\fP style, bool hasKnob = \fCtrue\fP, const QColor & mid = \fCQt::gray\fP, const QColor & base = \fCQt::darkGray\fP)"
80
Definition at line 91 of file qwt_dial_needle.cpp.
82
References QwtDialNeedle::palette(), and QwtDialNeedle::setPalette().
83
.SH "Member Function Documentation"
85
.SS "void QwtDialSimpleNeedle::draw (QPainter * painter, const QPoint & center, int length, double direction, QPalette::ColorGroup colorGroup = \fCQPalette::Active\fP) const\fC [virtual]\fP"
93
\fIcenter\fP Center of the dial, start position for the needle
95
\fIlength\fP Length of the needle
97
\fIdirection\fP Direction of the needle, in degrees counter clockwise
99
\fIcolorGroup\fP Color group, used for painting
104
Implements \fBQwtDialNeedle\fP.
106
Definition at line 132 of file qwt_dial_needle.cpp.
108
References drawArrowNeedle(), drawRayNeedle(), and QwtDialNeedle::palette().
109
.SS "void QwtDialSimpleNeedle::drawArrowNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, int width, double direction, bool hasKnob)\fC [static]\fP"
111
Draw a needle looking like an arrow
113
Definition at line 202 of file qwt_dial_needle.cpp.
115
References QwtDialNeedle::drawKnob().
117
Referenced by draw().
118
.SS "void QwtDialSimpleNeedle::drawRayNeedle (QPainter * painter, const QPalette & palette, QPalette::ColorGroup colorGroup, const QPoint & center, int length, int width, double direction, bool hasKnob)\fC [static]\fP"
120
Draw a needle looking like a ray
122
Definition at line 150 of file qwt_dial_needle.cpp.
124
References QwtDialNeedle::drawKnob().
126
Referenced by draw().
127
.SS "void QwtDialSimpleNeedle::setWidth (int width)"
129
Set the width of the needle.
131
Definition at line 110 of file qwt_dial_needle.cpp.
132
.SS "int QwtDialSimpleNeedle::width () const"
136
the width of the needle
141
Definition at line 118 of file qwt_dial_needle.cpp.
145
Generated automatically by Doxygen for Qwt User's Guide from the source code.