⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwtcompass.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtCompass" 3 "4 Nov 2003" "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.PP.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 &center, int radius, double north, QPalette::ColorGroup) const ".br.ti -1c.RI "virtual void \fBdrawScaleContents\fP (QPainter *, const  QPoint &center, 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 = 0, const char * name = 0)".PPConstructor. \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. .SS "QwtCompass::~\fBQwtCompass\fP ()\fC [virtual]\fP".PPDestructor. .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.PP.SS "void QwtCompass::drawScaleContents (QPainter *, const QPoint & center, int radius) const\fC [protected, virtual]\fP".PPDraw the contents of the scale. Reimplemented from \fBQwtDial\fP..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.PPReimplemented from \fBQwtDial\fP..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.PP.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.PP.SS "QwtCompassRose * QwtCompass::rose ()".PP\fBReturns:\fP.RS 4rose .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setRose\fP .RE.PP.SS "const  QwtCompassRose * QwtCompass::rose () const".PP\fBReturns:\fP.RS 4rose .RE.PP\fBSee also:\fP.RS 4\fBQwtCompass::setRose\fP .RE.PP.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.PPReimplemented from \fBQwtDial\fP..SS "void QwtCompass::setLabelMap (const QMap< double, QString > & map)".PPSet a map, mapping values to labels. \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.PP.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.PP.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 + -