📄 qwtplot.3
字号:
.PPDefinition at line 299 of file qwt_plot.cpp..SS "\fBQwtPlotCanvas\fP * QwtPlot::canvas ()".PP\fBReturns:\fP.RS 4the plot's canvas .RE.PPDefinition at line 291 of file qwt_plot.cpp..PPReferenced by canvasBackground(), canvasLineWidth(), drawCurve(), QwtPlotLayout::minimumSizeHint(), setCanvasBackground(), and setCanvasLineWidth()..SS "const QColor & QwtPlot::canvasBackground () const".PPNothing else than: \fBcanvas()\fP->palette().color( QPalette::Normal, QColorGroup::Background);.PP\fBReturns:\fP.RS 4the background color of the plotting area. .RE.PPDefinition at line 771 of file qwt_plot.cpp..PPReferences canvas()..PPReferenced by QwtPlotPrintFilter::apply(), and printCanvas()..SS "int QwtPlot::canvasLineWidth () const".PPNothing else than: \fBcanvas()\fP->lineWidth(), left for compatibility only. .PP\fBReturns:\fP.RS 4the border width of the plotting area .RE.PPDefinition at line 793 of file qwt_plot.cpp..PPReferences canvas()..SS "\fBQwtDiMap\fP QwtPlot::canvasMap (int axis) const".PP\fBParameters:\fP.RS 4\fIaxis\fP Axis .RE.PP\fBReturns:\fP.RS 4Map for the axis on the canvas. With this map pixel coordinates can translated to plot coordinates and vice versa. .RE.PP\fBSee also:\fP.RS 4\fBQwtDiMap\fP, \fBQwtPlot::transform\fP, \fBQwtPlot::invTransform\fP .RE.PPDefinition at line 675 of file qwt_plot.cpp..PPReferences axisEnabled(), QwtPlotLayout::canvasMargin(), QwtScale::endBorderDist(), QwtScaleDiv::hBound(), QwtScaleDiv::lBound(), QwtScaleDiv::logScale(), margin(), plotLayout(), QwtAutoScale::scaleDiv(), QwtDiMap::setDblRange(), QwtDiMap::setIntRange(), and QwtScale::startBorderDist()..PPReferenced by closestCurve(), closestMarker(), drawCanvas(), drawCurve(), QwtPlotPicker::invTransform(), invTransform(), QwtPlotPicker::transform(), and transform()..SS "void QwtPlot::changeAxisOptions (int axis, int opt, bool value)".PPChange specified autoscaling options of an axis. .PP\fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fIopt\fP Set of or'ed options .br\fIvalue\fP Value to be assigned to all the specified options (TRUE or FALSE) .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::changeOptions\fP .RE.PPDefinition at line 229 of file qwt_plot_axis.cpp..PPReferences autoRefresh(), axisValid(), and QwtAutoScale::changeOptions()..SS "void QwtPlot::clear ()\fC [slot]\fP".PPRemove all curves and markers. .PPDefinition at line 932 of file qwt_plot.cpp..PPReferences QwtLegend::clear()..SS "long QwtPlot::closestCurve (int xpos, int ypos, int & dist, double & xval, double & yval, int & index) const".PPFind the curve which is closest to a point in the plotting area..PPDetermines the position and index of the closest data point. .PP\fBParameters:\fP.RS 4\fIxpos\fP .br\fIypos\fP coordinates of a point in the plotting region .RE.PP\fBReturn values:\fP.RS 4\fIxval\fP .br\fIyval\fP values of the closest point in the curve's data array .br\fIdist\fP -- distance in points between (xpos, ypos) and the closest data point .br\fIindex\fP -- index of the closest point in the curve's data array .RE.PP\fBReturns:\fP.RS 4Key of the closest curve or 0 if no curve was found. .RE.PPDefinition at line 50 of file qwt_plot_curve.cpp..PPReferences axis(), canvasMap(), curveIterator(), QwtCurve::dataSize(), qwtSqr(), QwtCurve::x(), QwtPlotMappedItem::xAxis(), QwtDiMap::xTransform(), QwtCurve::y(), and QwtPlotMappedItem::yAxis()..SS "long QwtPlot::closestCurve (int xpos, int ypos, int & dist) const".PPFind the curve which is closest to a specified point in the plotting area. .PP\fBParameters:\fP.RS 4\fIxpos\fP .br\fIypos\fP position in the plotting region .RE.PP\fBReturn values:\fP.RS 4\fIdist\fP distance in points between (xpos, ypos) and the closest data point .RE.PP\fBReturns:\fP.RS 4Key of the closest curve or 0 if no curve was found. .RE.PPDefinition at line 30 of file qwt_plot_curve.cpp..SS "long QwtPlot::closestMarker (int xpos, int ypos, int & dist) const".PPFind the marker which is closest to a given point. .PP\fBParameters:\fP.RS 4\fIxpos\fP .br\fIypos\fP coordinates of a point in the plotting region .RE.PP\fBReturn values:\fP.RS 4\fIdist\fP Distance in points between the marker and the specified point. .RE.PP\fBReturns:\fP.RS 4Key of the closest marker or 0 if no marker was found .RE.PPDefinition at line 29 of file qwt_plot_marker.cpp..PPReferences axis(), canvasMap(), QwtMarker::lineStyle(), markerIterator(), qwtSqr(), QwtSymbol::style(), QwtMarker::symbol(), QwtPlotMappedItem::xAxis(), QwtDiMap::xTransform(), QwtPlotMarker::xValue(), QwtPlotMappedItem::yAxis(), and QwtPlotMarker::yValue()..SS "const \fBQwtPlotCurve\fP * QwtPlot::curve (long key) const".PPFind and return an existing curve. .PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBReturns:\fP.RS 4The curve for the given key or 0 if key is not valid. .RE.PPDefinition at line 307 of file qwt_plot_curve.cpp..SS "\fBQwtPlotCurve\fP * QwtPlot::curve (long key)".PPFind and return an existing curve. .PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBReturns:\fP.RS 4The curve for the given key or 0 if key is not valid. .RE.PPDefinition at line 297 of file qwt_plot_curve.cpp..PPReferenced by drawCanvasItems(), drawCurve(), enableLegend(), insertCurve(), and updateLegendItem()..SS "double QwtPlot::curveBaseline (long key) const".PPReturn the baseline offset for a specified curve. .PP\fBParameters:\fP.RS 4\fIkey\fP curve key .RE.PP\fBReturns:\fP.RS 4Baseline offset of the specified curve, or 0 if the curve doesn't exist .RE.PP\fBSee also:\fP.RS 4\fBsetCurveBaseline()\fP .RE.PPDefinition at line 626 of file qwt_plot_curve.cpp..PPReferences QwtCurve::baseline()..SS "QBrush QwtPlot::curveBrush (long key) const".PP\fBReturns:\fP.RS 4the pen of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::setCurveBrush()\fP, \fBQwtCurve::setBrush()\fP .RE.PPDefinition at line 124 of file qwt_plot_curve.cpp..PPReferences QwtCurve::brush()..SS "QwtPlotCurveIterator QwtPlot::curveIterator () const".PPReturn an iterator for the plot curves. .PPDefinition at line 16 of file qwt_plot_curve.cpp..PPReferenced by closestCurve(), curveKeys(), drawCanvasItems(), enableLegend(), setLegendDisplayPolicy(), and updateAxes()..SS "QwtArray< long > QwtPlot::curveKeys () const".PP\fBReturns:\fP.RS 4an array containing the keys of all curves .RE.PPDefinition at line 162 of file qwt_plot_curve.cpp..PPReferences curveIterator()..SS "int QwtPlot::curveOptions (long key) const".PP\fBReturns:\fP.RS 4the drawing options of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PPDefinition at line 133 of file qwt_plot_curve.cpp..PPReferences QwtCurve::options()..SS "QPen QwtPlot::curvePen (long key) const".PP\fBReturns:\fP.RS 4the brush of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PPDefinition at line 113 of file qwt_plot_curve.cpp..PPReferences QwtCurve::pen()..SS "int QwtPlot::curveSplineSize (long key) const".PP\fBReturns:\fP.RS 4the spline size of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PPDefinition at line 143 of file qwt_plot_curve.cpp..PPReferences QwtCurve::splineSize()..SS "int QwtPlot::curveStyle (long key) const".PP\fBReturns:\fP.RS 4the style of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBSee also:\fP.RS 4\fBsetCurveStyle()\fP .RE.PPDefinition at line 91 of file qwt_plot_curve.cpp..PPReferences QwtCurve::style()..SS "\fBQwtSymbol\fP QwtPlot::curveSymbol (long key) const".PPthe symbol of the curve indexed by key .PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBReturns:\fP.RS 4The symbol of the specified curve. If the key is invalid, a symbol of type 'NoSymbol'. .RE.PPDefinition at line 103 of file qwt_plot_curve.cpp..PPReferences QwtCurve::symbol()..SS "QString QwtPlot::curveTitle (long key) const".PP\fBReturns:\fP.RS 4the title of the curve indexed by key .RE.PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PPDefinition at line 153 of file qwt_plot_curve.cpp..PPReferences QwtCurve::title()..SS "int QwtPlot::curveXAxis (long key) const".PPReturn the index of the x axis to which a curve is mapped. .PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBReturns:\fP.RS 4x axis of the curve or -1 if the key is invalid. .RE.PPDefinition at line 180 of file qwt_plot_curve.cpp..PPReferences QwtPlotMappedItem::xAxis()..SS "int QwtPlot::curveYAxis (long key) const".PPthe index of the y axis to which a curve is mapped .PP\fBParameters:\fP.RS 4\fIkey\fP Key of the curve .RE.PP\fBReturns:\fP.RS 4y axis of the curve or -1 if the key is invalid. .RE.PPDefinition at line 192 of file qwt_plot_curve.cpp..PPReferences QwtPlotMappedItem::yAxis()..SS "void QwtPlot::drawCanvas (QPainter * painter)\fC [protected, virtual]\fP".PPRedraw the canvas. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter used for drawing.RE.PP\fBWarning:\fP.RS 4drawCanvas calls drawCanvasItems what is also used for printing. Applications that like to add individual plot items better overload \fBQwtPlot::drawCanvasItems\fP .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::drawCanvasItems\fP .RE.PPDefinition at line 567 of file qwt_plot.cpp..PPReferences canvasMap(), and drawCanvasItems()..SS "void QwtPlot::drawCanvasItems (QPainter * painter, const QRect & rect, const QwtArray< \fBQwtDiMap\fP > & map, const \fBQwtPlotPrintFilter\fP & pfilter) const\fC [protected, virtual]\fP".PPRedraw the canvas items. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter used for drawing .br\fIrect\fP Bounding rectangle where to paint .br\fImap\fP QwtPlot::axisCnt maps, mapping between plot and paint device coordinates .br\fIpfilter\fP Plot print filter .RE.PPDefinition at line 585 of file qwt_plot.cpp..PPReferences curve(), curveIterator(), QwtMarker::draw(), QwtCurve::draw(), QwtGrid::draw(), QwtPlotItem::enabled(), marker(), markerIterator(), QwtPlotPrintFilter::options(), QwtPlotMappedItem::xAxis(), QwtPlotMarker::xValue(), QwtPlotMappedItem::yAxis(), and QwtPlotMarker::yValue()..PPReferenced by drawCanvas(), and printCanvas()..SS "void QwtPlot::drawContents (QPainter * p)\fC [protected, virtual]\fP".PPdrawContents .PPDefinition at line 548 of file qwt_plot.cpp..SS "void QwtPlot::drawCurve (long key, int from = \fC0\fP, int to = \fC-1\fP)".PPDraw a set of points of a curve. When observing an measurement while it is running, new points have to be added to an existing curve. drawCurve can be used to display them avoiding a complete redraw of the canvas. .PP\fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIfrom\fP index of the first point to be painted .br\fIto\fP index of the last point to be painted. If to < 0 the curve will be painted to its last point. .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::draw\fP .RE.PPDefinition at line 641 of file qwt_plot.cpp..PPReferences QwtPlotCanvas::cache(), QwtPlotCanvas::cacheMode(), canvas(), canvasMap(), curve(), QwtCurve::draw(), QwtPlotMappedItem::xAxis(), and QwtPlotMappedItem::yAxis()..SS "void QwtPlot::enableAxis (int axis, bool tf = \fCTRUE\fP)".PPEnable or disable a specified axis. .PPWhen an axis is disabled, this only means that it is not visible on the screen. Curves, markers and can be attached to disabled axes, and transformation of screen coordinates into values works as normal..PPOnly xBottom and yLeft are enabled by default. .PP\fBParameters:\fP.RS 4\fIaxis\fP axis index .br\fItf\fP \fCTRUE\fP (enabled) or \fCFALSE\fP (disabled) .RE.PPDefinition at line 251 of file qwt_plot_axis.cpp..PPReferences axisValid(), and updateLayout()..SS "void QwtPlot::enableGridX (bool tf = \fCTRUE\fP)".PPEnable or disable vertical gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable (FALSE). Defaults to TRUE. .RE.PPDefinition at line 32 of file qwt_plot_grid.cpp..PPReferences QwtGrid::enableX()..SS "void QwtPlot::enableGridXMin (bool tf = \fCTRUE\fP)".PPEnable or disable vertical gridlines for the minor scale marks. .PP\fBParameters:\fP.RS 4\fItf\fP enable (TRUE) or disable (FALSE). Defaults to TRUE. .RE.PPDefinition at line 51 of file qwt_plot_grid.cpp..PPReferences QwtGrid::enableXMin()..SS "void QwtPlot::enableGridY (bool tf = \fCTRUE\fP)".PPEnable or disable horizontal gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable (FALSE). Defaults to TRUE. .RE.PPDefinition at line 42 of file qwt_plot_grid.cpp..PPReferences QwtGrid::enableY()..SS "void QwtPlot::enableGridYMin (bool tf = \fCTRUE\fP)".PPEnable or disable horizontal gridlines for the minor scale marks. .PP\fBParameters:\fP.RS 4\fItf\fP enable (TRUE) or disable (FALSE). Defaults to TRUE. .RE.PPDefinition at line 60 of file qwt_plot_grid.cpp..PPReferences QwtGrid::enableYMin()..SS "void QwtPlot::enableLegend (bool enable, long curveKey = \fC-1\fP)".PPEnable or disable the legend. .PP\fBParameters:\fP.RS 4\fIenable\fP \fCTRUE\fP (enabled) or \fCFALSE\fP (disabled) .br\fIcurveKey\fP Key of a existing curve. If curveKey < 0 the legends for all curves will be updated. .RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::setAutoLegend()\fP .PP\fBQwtPlot::setLegendPosition()\fP .RE.PPDefinition at line 988 of file qwt_plot.cpp..PPReferences QwtLegend::clear(), curve(), curveIterator(), QwtLegend::findItem(), insertLegendItem(), QwtLegend::itemCount(), and updateLayout().
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -