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

📄 qwtplot.3

📁 软件无线电的平台
💻 3
📖 第 1 页 / 共 5 页
字号:
\fBReturn values:\fP.RS 4\fImx\fP .br\fImy\fP Marker position .RE.PP.SS "\fBQwtSymbol\fP QwtPlot::markerSymbol (long key) const".PP\fBReturns:\fP.RS 4a marker's symbol .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Marker key .RE.PP.SS "int QwtPlot::markerXAxis (long key) const".PP\fBReturns:\fP.RS 4the x axis to which a marker is attached .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Marker key .RE.PP.SS "int QwtPlot::markerYAxis (long key) const".PP\fBReturns:\fP.RS 4the y axis to which a marker is attached .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Marker key .RE.PP.SS "QSize QwtPlot::minimumSizeHint () const\fC [virtual]\fP".PPReturn a minimum size hint. .SS "bool QwtPlot::outlineEnabled () const".PP\fBReturns:\fP.RS 4\fCTRUE\fP if the outline feature is enabled .RE.PP.SS "const  QPen & QwtPlot::outlinePen () const".PP\fBReturns:\fP.RS 4the pen used to draw outlines .RE.PP.SS "Qwt::Shape QwtPlot::outlineStyle () const".PP\fBReturns:\fP.RS 4the outline style .RE.PP\fBSee also:\fP.RS 4\fBsetOutlineStyle()\fP .RE.PP.SS "const  \fBQwtPlotLayout\fP * QwtPlot::plotLayout () const".PP\fBReturns:\fP.RS 4the plot's layout .RE.PP.SS "\fBQwtPlotLayout\fP * QwtPlot::plotLayout ()".PP\fBReturns:\fP.RS 4the plot's layout .RE.PP.SS "void QwtPlot::plotMouseMoved (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when the mouse is moved in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::canvasMap()\fP .RE.PP.SS "void QwtPlot::plotMousePressed (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when the mouse is pressed in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::canvasMap()\fP .RE.PP.SS "void QwtPlot::plotMouseReleased (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when a mouse button has been released in the plot canvas. The coordinates are pixel values referring to the plot canvas. They can be translated using the canvasMaps. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object, event coordinates referring to the plot canvas .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::canvasMap()\fP .RE.PP.SS "void QwtPlot::print (QPainter * painter, const QRect & plotRect, const \fBQwtPlotPrintFilter\fP & pfilter = \fBQwtPlotPrintFilter\fP()) const\fC [virtual]\fP".PPPaint the plot into a given rectangle. Paint the contents of a QwtPlot instance into a given rectangle. \fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIplotRect\fP Bounding rectangle .br\fIpfilter\fP Print filter .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotPrintFilter\fP .RE.PP.SS "void QwtPlot::print (QPaintDevice & paintDev, const \fBQwtPlotPrintFilter\fP & pfilter = \fBQwtPlotPrintFilter\fP()) const".PPPrint the plot to a \fCQPaintDevice\fP (\fCQPrinter\fP) This function prints the contents of a QwtPlot instance to \fCQPaintDevice\fP object. The size is derived from its device metrics. \fBParameters:\fP.RS 4\fIpaintDev\fP device to paint on, often a printer .br\fIpfilter\fP print filter .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::print\fP .PP\fBQwtPlotPrintFilter\fP.RE.PP\fBWarning:\fP.RS 4Printing on a QPrinter(QPrinter::HighResolution) printer may expose a nasty bug in Qt. The problem concerns scaling of fonts: a given font should use 8 times more pixels on a 600 dpi paint device than on a 75 dpi paint device..RE.PPHigh resolution print tests on a Mandrake-8.2 system with a 75 dpi screen show (test program available on request):.IP "\(bu" 2Qt finds more fonts with the X Font Server enabled than disabled (use qtconfig). On the test system this has no consequences for the print quality..IP "\(bu" 2Qt-3.0.7 finds significantly more fonts than its successors and printing works fine..IP "\(bu" 2Qt-3.1.2 finds less fonts than Qt-3.0.7 with the X Font Server enabled and printing fine..IP "\(bu" 2Qt-3.2.0 finds less fonts than Qt-3.0.7 and printing only works for rich text. All plain text is printed at 75 dpi instead of 600 dpi. Some standard X Window fonts as 'Helvetica [Adobe]' do not print well as rich text..IP "\(bu" 2Qt-3.2.1 finds a few more fonts than Qt-3.2.0 and some standard non-scalable X Window fonts as 'Helvetica [Adobe]' do not print well as rich and plain text..IP "\(bu" 2Qt-3.2.2 still has problems with the same fonts as Qt-3.2.1, but there is improvement (text printed with non-scalable X Windows fonts is barely readable and looks ugly, because Qt gets the font metrics wrong)..PP.PPRecommendations:.IP "\(bu" 2Do not use Qt-3.2.0..IP "\(bu" 2Do not use non-scalable fonts for printing, especially if you print to postscript files that are to be included in other documents..PP.PPWe will continue to report the bug. .SS "void QwtPlot::printCanvas (QPainter * painter, const QRect & canvasRect, const QwtArray< \fBQwtDiMap\fP > & map, const \fBQwtPlotPrintFilter\fP & pfilter) const\fC [protected, virtual]\fP".PPPrint the canvas into a given rectangle..PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fImap\fP Maps mapping between plot and paint device coordinates .br\fIcanvasRect\fP Bounding rectangle .br\fIpfilter\fP Print filter .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotPrintFilter\fP .RE.PP.SS "void QwtPlot::printLegend (QPainter * painter, const QRect & rect) const\fC [protected, virtual]\fP".PPPrint the legend into a given rectangle..PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIrect\fP Bounding rectangle .RE.PP.SS "void QwtPlot::printScale (QPainter * painter, int axis, int startDist, int endDist, int baseDist, const QRect & rect) const\fC [protected, virtual]\fP".PPPaint a scale into a given rectangle. Paint the scale into a given rectangle. \fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIaxis\fP Axis .br\fIstartDist\fP Start border distance .br\fIendDist\fP End border distance .br\fIbaseDist\fP Base distance .br\fIrect\fP Bounding rectangle .RE.PP.SS "void QwtPlot::printTitle (QPainter * painter, const QRect & rect) const\fC [protected, virtual]\fP".PPPrint the title into a given rectangle..PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIrect\fP Bounding rectangle .RE.PP.SS "bool QwtPlot::removeCurve (long key)".PPremove the curve indexed by key \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP.SS "void QwtPlot::removeCurves ()".PPRemove all curves. .SS "bool QwtPlot::removeMarker (long key)".PPRemove the marker indexed by key. \fBParameters:\fP.RS 4\fIkey\fP unique key .RE.PP.SS "void QwtPlot::removeMarkers ()".PPRemove all markers. .SS "void QwtPlot::replot ()\fC [virtual]\fP".PPRedraw the plot If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible. \fBSee also:\fP.RS 4\fBsetAutoReplot()\fP .RE.PP.SS "void QwtPlot::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP".PPResize and update internal layout. .SS "void QwtPlot::setAutoLegend (bool tf)".PPSet or reset the autoLegend option If the autoLegend option is set, a item will be added to the legend whenever a curve is inserted. The autoLegend option is set to FALSE by default, which means that the user has to call enableLegend. .PP\fBParameters:\fP.RS 4\fItf\fP \fCTRUE\fP or \fCFALSE\fP. Defaults to \fCFALSE\fP. .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::enableLegend()\fP .RE.PP.SS "void QwtPlot::setAutoReplot (bool tf = TRUE)".PPSet or reset the autoReplot option If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call \fBreplot()\fP explicitly if necessary. The autoReplot option is set to FALSE by default, which means that the user has to call \fBreplot()\fP in order to make changes visible. .PP\fBParameters:\fP.RS 4\fItf\fP \fCTRUE\fP or \fCFALSE\fP. Defaults to \fCTRUE\fP. .RE.PP\fBSee also:\fP.RS 4\fBreplot()\fP .RE.PP.SS "void QwtPlot::setAxisAutoScale (int axis)".PPEnable autoscaling for a specified axis. This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling is enabled by default..PP\fBParameters:\fP.RS 4\fIaxis\fP axis index .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::setAxisScale()\fP .RE.PP.SS "void QwtPlot::setAxisFont (int axis, const QFont & f)".PPChange the font of an axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIf\fP font .RE.PP\fBWarning:\fP.RS 4This function changes the font of the tick labels, not of the axis title. .RE.PP.SS "void QwtPlot::setAxisLabelFormat (int axis, char f, int prec, int fieldwidth = 0)".PPChange the number format for the major scale of a selected axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIf\fP format .br\fIprec\fP precision .br\fIfieldwidth\fP minimum fieldwidth .RE.PP\fBSee also:\fP.RS 4QString::sprintf in the Qt manual .RE.PP.SS "void QwtPlot::setAxisMargins (int axis, double mlo, double mhi)".PPAssign margins to a specified axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fImlo\fP margin at the lower end of the scale .br\fImhi\fP margin at the upper end of the scale .RE.PP\fBWarning:\fP.RS 4If the scale is logarithmic, the margins are measured in decades .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setMargins\fP .RE.PP.SS "void QwtPlot::setAxisMaxMajor (int axis, int maxMajor)".PPSet the maximum number of major scale intervals for a specified axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fImaxMajor\fP maximum number of major steps .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setMaxMajor\fP .RE.PP.SS "void QwtPlot::setAxisMaxMinor (int axis, int maxMinor)".PPSet the maximum number of minor scale intervals for a specified axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fImaxMinor\fP maximum number of minor steps .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setMaxMinor\fP .RE.PP.SS "void QwtPlot::setAxisOptions (int axis, int opt)".PPReset scale options and set specified options for a specified axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIopt\fP set of options .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setOptions\fP .RE.PP.SS "void QwtPlot::setAxisReference (int axis, double value)".PPSet a reference value for a specified axis. The reference value is used by some autoscaling modes. .PP\fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIvalue\fP reference value .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setReference\fP, \fBQwtPlot::setAxisOptions()\fP .RE.PP.SS "void QwtPlot::setAxisScale (int axis, double min, double max, double step = 0)".PPDisable autoscaling and specify a fixed scale for a selected axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fImin\fP .br\fImax\fP minimum and maximum of the scale .br\fIstep\fP Major step size. If \fCstep == 0\fP, the step size is calculated automatically using the maxMajor setting. .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::setAxisMaxMajor()\fP .RE.PP.SS "void QwtPlot::setAxisScaleDraw (int axis, \fBQwtScaleDraw\fP * scaleDraw)".PPSet a scale draw. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIscaleDraw\fP object responsible for drawing scales..RE.PPBy passing scaleDraw it is possible to extend \fBQwtScaleDraw\fP functionality and let it take place in QwtPlot. Please note that scaleDraw has to be created with new and will be deleted by the corresponding \fBQwtScale\fP member ( like a child object )..PP\fBSee also:\fP.RS 4\fBQwtScaleDraw\fP, \fBQwtScale\fP .RE.PP\fBWarning:\fP.RS 4The attributes of scaleDraw will be overwritten by those of the previous \fBQwtScaleDraw\fP. .RE.PP.SS "void QwtPlot::setAxisTitle (int axis, const QString & t)".PPChange the title of a specified axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIt\fP axis title .RE.PP.SS "void QwtPlot::setAxisTitleAlignment (int axis, int align)".PPChange the title alignment of a selected axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIalign\fP or'd Qt::Alignment flags. .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setTitleAlignment\fP .RE.PP.SS "void QwtPlot::setAxisTitleFont (int axis, const QFont & f)".PPChange the title font of a selected axis. \fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIf\fP font .RE.PP.SS "void QwtPlot::setCanvasBackground (const QColor & c)".PPChange the background of the plotting area. Sets c to QColorGroup::Background of all colorgroups of the palette of the canvas. Using \fBcanvas()\fP->setPalette() is a more powerful way to set these colors. .PP\fBParameters:\fP.RS 4\fIc\fP new background color .RE.PP.SS "void QwtPlot::setCanvasLineWidth (int w)".PPChange the border width of the plotting area Nothing else than \fBcanvas()\fP->setLineWidth(w), left for compatibility only. \fBParameters:\fP.RS 4\fIw\fP new border width .RE.PP.SS "bool QwtPlot::setCurveBaseline (long key, double ref)".PPSet the baseline for a specified curve. The baseline is needed for the curve style QwtCurve::Sticks, .PP\fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIref\fP baseline offset from zero .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::setBaseline\fP .RE.PP.SS "bool QwtPlot::setCurveBrush (long key, const QBrush & brush)".PPAssign a brush to a curve indexed by key The brush will be used to fill the area between the curve and the baseline. \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .br\fIbrush\fP new brush .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::setBrush\fP for further details. .PPQwtPlot::brush(), \fBQwtPlot::setCurveBaseline\fP .RE.PP.SS "bool QwtPlot::setCurveData (long key, const \fBQwtData\fP & data)".PPInitialize curve data with any \fBQwtData\fP object. \fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIdata\fP Data .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveData (long key, const QwtArray< \fBQwtDoublePoint\fP > & data)".PPInitialize curve data with a array of points (explicitly shared). \fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIdata\fP Data .RE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -