📄 qwtcompass.3
字号:
.TH "QwtCompass" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtCompass \- .SH SYNOPSIS.br.PPInherits \fBQwtDial\fP..PP.SH "Detailed Description".PP A Compass Widget. QwtCompass is a widget to display and enter directions. It consists of a scale, an optional needle and rose..PP.PP\fBNote:\fP.RS 4The examples/dials example shows how to use QwtCompass. .RE.PP.PPDefinition at line 36 of file qwt_compass.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtCompass\fP (QWidget *parent=0, const char *name=0)".br.ti -1c.RI "virtual \fB~QwtCompass\fP ()".br.ti -1c.RI "void \fBsetRose\fP (QwtCompassRose *rose)".br.ti -1c.RI "const QwtCompassRose * \fBrose\fP () const".br.ti -1c.RI "QwtCompassRose * \fBrose\fP ()".br.ti -1c.RI "const QMap< double, QString > & \fBlabelMap\fP () const".br.ti -1c.RI "QMap< double, QString > & \fBlabelMap\fP ()".br.ti -1c.RI "void \fBsetLabelMap\fP (const QMap< double, QString > &map)".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual QString \fBscaleLabel\fP (double value) const".br.ti -1c.RI "virtual void \fBdrawRose\fP (QPainter *, const QPoint ¢er, int radius, double north, QPalette::ColorGroup) const".br.ti -1c.RI "virtual void \fBdrawScaleContents\fP (QPainter *, const QPoint ¢er, int radius) const".br.ti -1c.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtCompass::QwtCompass (QWidget * parent = \fC0\fP, const char * name = \fC0\fP)".PPConstructor. .PP\fBParameters:\fP.RS 4\fIparent\fP Parent widget .br\fIname\fP Widget name.RE.PPCreate 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 QwtDial::RotateNeedle. Definition at line 34 of file qwt_compass.cpp..PPReferences QwtDial::setOrigin(), QwtDial::setScaleOptions(), and QwtDial::setWrapping()..SS "QwtCompass::~\fBQwtCompass\fP ()\fC [virtual]\fP".PPDestructor. .PPDefinition at line 66 of file qwt_compass.cpp..SH "Member Function Documentation".PP .SS "void QwtCompass::drawRose (QPainter * painter, const QPoint & center, int radius, double north, QPalette::ColorGroup cg) const\fC [protected, virtual]\fP".PPDraw the compass rose.PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIcenter\fP Center of the compass .br\fIradius\fP of the circle, where to paint the rose .br\fInorth\fP Direction pointing north, in degrees counter clockwise .br\fIcg\fP Color group .RE.PPDefinition at line 101 of file qwt_compass.cpp..PPReferenced by drawScaleContents()..SS "void QwtCompass::drawScaleContents (QPainter *, const QPoint & center, int radius) const\fC [protected, virtual]\fP".PPDraw the contents of the scale. .PPReimplemented from \fBQwtDial\fP..PPDefinition at line 72 of file qwt_compass.cpp..PPReferences drawRose(), QwtSliderBase::isValid(), QwtDial::mode(), QwtDial::origin(), and QwtDblRange::value()..SS "void QwtCompass::keyPressEvent (QKeyEvent * kev)\fC [protected, virtual]\fP".PPHandles key events.PPBeside the keys described in \fBQwtDial::keyPressEvent\fP numbers from 1-9 (without 5) set the direction according to their position on the num pad..PP\fBSee also:\fP.RS 4\fBisReadOnly()\fP .RE.PP.PPReimplemented from \fBQwtDial\fP..PPDefinition at line 154 of file qwt_compass.cpp..PPReferences QwtSliderBase::isReadOnly(), QwtDial::keyPressEvent(), QwtDial::mode(), QwtDial::origin(), QwtSliderBase::setValue(), and QwtDblRange::value()..SS "QMap< double, QString > & QwtCompass::labelMap ()".PP\fBReturns:\fP.RS 4map, mapping values to labels .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setLabelMap\fP .RE.PPDefinition at line 223 of file qwt_compass.cpp..SS "const QMap< double, QString > & QwtCompass::labelMap () const".PP\fBReturns:\fP.RS 4map, mapping values to labels .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setLabelMap\fP .RE.PPDefinition at line 214 of file qwt_compass.cpp..SS "QwtCompassRose * QwtCompass::rose ()".PP\fBReturns:\fP.RS 4rose .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setRose\fP .RE.PPDefinition at line 140 of file qwt_compass.cpp..SS "const QwtCompassRose * QwtCompass::rose () const".PP\fBReturns:\fP.RS 4rose .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setRose\fP .RE.PPDefinition at line 131 of file qwt_compass.cpp..SS "QString QwtCompass::scaleLabel (double value) const\fC [protected, virtual]\fP".PPMap a value to a corresponding label .PP\fBParameters:\fP.RS 4\fIvalue\fP Value that will be mapped .RE.PP\fBReturns:\fP.RS 4Label, or QString::null.RE.PPlabel() looks in a map for a corresponding label for value or return QString::null. .PP\fBSee also:\fP.RS 4\fBQwtCompass::labelMap\fP, \fBQwtCompass::setLabelMap\fP .RE.PP.PPReimplemented from \fBQwtDial\fP..PPDefinition at line 255 of file qwt_compass.cpp..SS "void QwtCompass::setLabelMap (const QMap< double, QString > & map)".PPSet a map, mapping values to labels. .PP\fBParameters:\fP.RS 4\fImap\fP value to label map.RE.PPThe values of the major ticks are found by looking into this map. The default map consists of the labels N, NE, E, SE, S, SW, W, NW..PP\fBWarning:\fP.RS 4The map will have no effect for values that are no major tick values. Major ticks can be changed by \fBQwtScaleDraw::setScale\fP.RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::labelMap\fP, \fBQwtCompass::scaleDraw\fP, \fBQwtScaleDraw::setScale\fP .RE.PPDefinition at line 240 of file qwt_compass.cpp..SS "void QwtCompass::setRose (QwtCompassRose * rose)".PPSet a rose for the compass .PP\fBParameters:\fP.RS 4\fIrose\fP Compass rose .RE.PP\fBWarning:\fP.RS 4The rose will be deleted, when a different rose is set or in ~QwtCompass .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::rose\fP .RE.PPDefinition at line 115 of file qwt_compass.cpp..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -