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

📄 qwtcurve.3

📁 linux下qt的第三方的一个类
💻 3
📖 第 1 页 / 共 2 页
字号:
\fBQwtCurve::draw\fP, \fBQwtCurve::drawCurve\fP, \fBQwtCurve::drawDots\fP, \fBQwtCurve::drawLines\fP, \fBQwtCurve::drawSpline\fP, \fBQwtCurve::drawSticks\fP .RE.PPDefinition at line 539 of file qwt_curve.cpp..PPReferences closePolyline(), QwtPainter::drawPolygon(), QwtPainter::drawPolyline(), QwtDiMap::transform(), x(), and y()..PPReferenced by drawCurve()..SS "void QwtCurve::drawSticks (QPainter * painter, const \fBQwtDiMap\fP & xMap, const \fBQwtDiMap\fP & yMap, int from, int to)\fC [protected]\fP".PPDraw sticks. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIxMap\fP x map .br\fIyMap\fP y map .br\fIfrom\fP index of the first point to be painted .br\fIto\fP index of the last point to be painted .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::draw\fP, \fBQwtCurve::drawCurve\fP, \fBQwtCurve::drawDots\fP, \fBQwtCurve::drawLines\fP, \fBQwtCurve::drawSpline\fP, \fBQwtCurve::drawSteps\fP .RE.PPDefinition at line 473 of file qwt_curve.cpp..PPReferences QwtPainter::drawLine(), QwtDiMap::transform(), x(), and y()..PPReferenced by drawCurve()..SS "void QwtCurve::drawSymbols (QPainter * painter, \fBQwtSymbol\fP & symbol, const \fBQwtDiMap\fP & xMap, const \fBQwtDiMap\fP & yMap, int from, int to)\fC [protected, virtual]\fP".PPDraw symbols. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIsymbol\fP Curve symbol .br\fIxMap\fP x map .br\fIyMap\fP y map .br\fIfrom\fP index of the first point to be painted .br\fIto\fP index of the last point to be painted .RE.PPDefinition at line 865 of file qwt_curve.cpp..PPReferences QwtSymbol::brush(), QwtSymbol::draw(), QwtSymbol::pen(), QwtSymbol::size(), QwtDiMap::transform(), x(), and y()..PPReferenced by draw()..SS "void QwtCurve::init (const QString & title)\fC [protected]\fP".PPInitialize data members. .PPDefinition at line 22 of file qwt_curve.cpp..PPReferenced by QwtCurve()..SS "double QwtCurve::maxXValue () const".PP\fBboundingRect()\fP.x2() .PPDefinition at line 113 of file qwt_curve.h..SS "double QwtCurve::maxYValue () const".PP\fBboundingRect()\fP.y2() .PPDefinition at line 117 of file qwt_curve.h..SS "double QwtCurve::minXValue () const".PP\fBboundingRect()\fP.x1() .PPDefinition at line 111 of file qwt_curve.h..SS "double QwtCurve::minYValue () const".PP\fBboundingRect()\fP.y1() .PPDefinition at line 115 of file qwt_curve.h..SS "const \fBQwtCurve\fP & QwtCurve::operator= (const \fBQwtCurve\fP & c)".PPCopy Assignment. .PPDefinition at line 69 of file qwt_curve.cpp..PPReferences copy(), and curveChanged()..PPReferenced by QwtPlotCurve::operator=()..SS "int QwtCurve::options () const".PPReturn the current style options. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setOptions\fP .RE.PPDefinition at line 795 of file qwt_curve.cpp..PPReferenced by QwtPlot::curveOptions()..SS "const QPen & QwtCurve::pen () const".PPReturn the pen used to draw the lines. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setPen\fP .RE.PPDefinition at line 165 of file qwt_curve.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::curvePen(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem()..SS "void QwtCurve::setBaseline (double ref)".PPSet the value of the baseline. .PPThe baseline is needed for filling the curve with a brush or the QwtCurve::Sticks drawing style. The default value is 0.0. The interpretation of the baseline depends on the style options. With QwtCurve::Yfx, the baseline is interpreted as a horizontal line at y = \fBbaseline()\fP, with QwtCurve::Yfy, it is interpreted as a vertical line at x = \fBbaseline()\fP. .PP\fBParameters:\fP.RS 4\fIref\fP baseline .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::setBrush()\fP, \fBQwtCurve::setStyle()\fP, \fBQwtCurve::setOptions()\fP .RE.PPDefinition at line 897 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveBaseline()..SS "void QwtCurve::setBrush (const QBrush & brush)".PPAssign a brush. In case of brush.style() != QBrush::NoBrush and \fBstyle()\fP != QwtCurve::Sticks the area between the curve and the baseline will be filled. In case !brush.color().isValid() the area will be filled by pen.color(). The fill algorithm simply connects the first and the last curve point to the baseline. So the curve data has to be sorted (ascending or descending). .PP\fBParameters:\fP.RS 4\fIbrush\fP New brush .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::brush\fP, \fBQwtCurve::setBaseline\fP, \fBQwtCurve::baseline\fP .RE.PPDefinition at line 182 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveBrush()..SS "void QwtCurve::setData (const \fBQwtData\fP & data)".PPInitialize data with a pointer to \fBQwtData\fP..PP\fBParameters:\fP.RS 4\fIdata\fP Data.RE.PP\fBSee also:\fP.RS 4\fBQwtData::copy\fP. .RE.PPDefinition at line 257 of file qwt_curve.cpp..PPReferences QwtData::copy(), and curveChanged()..SS "void QwtCurve::setData (const QwtArray< \fBQwtDoublePoint\fP > & data)".PPInitialize data with an array of points (explicitly shared)..PP\fBParameters:\fP.RS 4\fIdata\fP Data.RE.PP\fBSee also:\fP.RS 4QwtDoublePointData::setData. .RE.PPDefinition at line 243 of file qwt_curve.cpp..PPReferences curveChanged()..SS "void QwtCurve::setData (const QwtArray< double > & xData, const QwtArray< double > & yData)".PPInitialize data with x- and y-arrays (explicitly shared). .PP\fBParameters:\fP.RS 4\fIxData\fP x data .br\fIyData\fP y data.RE.PP\fBSee also:\fP.RS 4QwtData::setData. .RE.PPDefinition at line 228 of file qwt_curve.cpp..PPReferences curveChanged()..SS "void QwtCurve::setData (const double * xData, const double * yData, int size)".PPSet data by copying x- and y-values from specified memory blocks Contrary to \fB\fBQwtPlot::setCurveRawData\fP\fP, this function makes a 'deep copy' of the data. .PP\fBParameters:\fP.RS 4\fIxData\fP pointer to x values .br\fIyData\fP pointer to y values .br\fIsize\fP size of xData and yData.RE.PP\fBSee also:\fP.RS 4QwData::setData. .RE.PPDefinition at line 213 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveData()..SS "void QwtCurve::setOptions (int opt)".PPSpecify options for the drawing style. .PPThe options can be used to modify the drawing style. Options can be or-combined. The following options are defined:.IP "\fBQwtCurve::Auto \fP" 1cThe default setting. For QwtCurve::spline, this means that the type of the spline is determined automatically, depending on the data. For all other styles, this means that y is regarded as a function of x. .IP "\fBQwtCurve::Yfx \fP" 1cDraws y as a function of x (the default). The baseline is interpreted as a horizontal line with y = \fBbaseline()\fP. .IP "\fBQwtCurve::Xfy \fP" 1cDraws x as a function of y. The baseline is interpreted as a vertical line with x = \fBbaseline()\fP. .IP "\fBQwtCurve::Parametric \fP" 1cFor QwtCurve::Spline only. Draws a parametric spline. .IP "\fBQwtCurve::Periodic \fP" 1cFor QwtCurve::Spline only. Draws a periodic spline. .IP "\fBQwtCurve::Inverted \fP" 1cFor QwtCurve::Steps only. Draws a step function from the right to the left..PP.PP\fBParameters:\fP.RS 4\fIopt\fP new options /sa \fBQwtCurve::options()\fP .RE.PPDefinition at line 785 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveOptions()..SS "void QwtCurve::setPen (const QPen & p)".PPAssign a pen. .PP\fBParameters:\fP.RS 4\fIp\fP New pen .RE.PPDefinition at line 152 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setCurvePen()..SS "void QwtCurve::setRawData (const double * xData, const double * yData, int size)".PPInitialize the data by pointing to memory blocks which are not managed by QwtCurve. .PPsetRawData is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying \fBQwtCPointerData\fP class..PP\fBParameters:\fP.RS 4\fIxData\fP pointer to x data .br\fIyData\fP pointer to y data .br\fIsize\fP size of x and y.RE.PP\fBSee also:\fP.RS 4QwtCPointerData::setData. .RE.PPDefinition at line 277 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveRawData()..SS "void QwtCurve::setSplineSize (int s)".PPChange the number of interpolated points. .PP\fBParameters:\fP.RS 4\fIs\fP new size .RE.PP\fBWarning:\fP.RS 4The default is 250 points. .RE.PPDefinition at line 805 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveSplineSize()..SS "void QwtCurve::setStyle (int style, int options = \fC0\fP)".PPSet the curve's drawing style. .PPValid styles are: .IP "\fBQwtCurve::NoCurve \fP" 1cDon't draw a curve. Note: This doesn't affect the symbol.  .IP "\fBQwtCurve::Lines \fP" 1cConnect the points with straight lines. .IP "\fBQwtCurve::Sticks \fP" 1cDraw vertical sticks from a baseline which is defined by \fBsetBaseline()\fP. .IP "\fBQwtCurve::Steps \fP" 1cConnect the points with a step function. The step function is drawn from the left to the right or vice versa, depending on the 'Inverted' option. .IP "\fBQwtCurves::Dots \fP" 1cDraw dots at the locations of the data points. Note: This is different from a dotted line (see \fBsetPen()\fP). .IP "\fBQwtCurve::Spline \fP" 1cInterpolate the points with a spline. The spline type can be specified with \fBsetOptions()\fP, the size of the spline (= number of interpolated points) can be specified with \fBsetSplineSize()\fP. .IP "\fBQwtCurve::UserCurve ... \fP" 1cStyles >= QwtCurve::UserCurve are reserved for derived classes of QwtCurve that overload \fBQwtCurve::draw()\fP with additional application specific curve types. .PP\fBSee also:\fP.RS 4\fBQwtCurve::style()\fP .RE.PPDefinition at line 110 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::setCurveStyle()..SS "void QwtCurve::setSymbol (const \fBQwtSymbol\fP & s)".PPAssign a symbol. .PP\fBParameters:\fP.RS 4\fIs\fP symbol .RE.PP\fBSee also:\fP.RS 4\fBQwtSymbol\fP .RE.PPDefinition at line 132 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setCurveSymbol()..SS "void QwtCurve::setTitle (const QString & title)".PPAssign a title to a curve. .PP\fBParameters:\fP.RS 4\fItitle\fP new title .RE.PPDefinition at line 288 of file qwt_curve.cpp..PPReferences curveChanged()..PPReferenced by QwtPlot::insertCurve(), and QwtPlot::setCurveTitle()..SS "int QwtCurve::splineSize () const".PPReturn the spline size. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setSplineSize\fP .RE.PPDefinition at line 817 of file qwt_curve.cpp..PPReferenced by QwtPlot::curveSplineSize()..SS "int QwtCurve::style () const".PPReturn the current style. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setStyle\fP .RE.PPDefinition at line 122 of file qwt_curve.cpp..PPReferenced by QwtPlot::curveStyle(), and QwtPlot::updateLegendItem()..SS "const \fBQwtSymbol\fP & QwtCurve::symbol () const".PPReturn the current symbol. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setSymbol\fP .RE.PPDefinition at line 142 of file qwt_curve.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::curveSymbol(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem()..SS "const QString & QwtCurve::title () const".PPReturn the title. .PP\fBSee also:\fP.RS 4\fBQwtCurve::setTitle\fP .RE.PPDefinition at line 298 of file qwt_curve.cpp..PPReferenced by QwtPlot::curveTitle(), and QwtPlot::updateLegendItem()..SS "int QwtCurve::verifyRange (int & i1, int & i2)\fC [protected]\fP".PPChecks if a range of indices is valid and corrects it if necessary. .PP\fBParameters:\fP.RS 4\fIi1\fP Index 1 .br\fIi2\fP Index 2 .RE.PPDefinition at line 331 of file qwt_curve.cpp..PPReferences dataSize(), qwtLim(), and qwtSort()..PPReferenced by draw()..SS "double QwtCurve::x (int i) const".PP\fBParameters:\fP.RS 4\fIi\fP index .RE.PP\fBReturns:\fP.RS 4x-value at position i .RE.PPDefinition at line 205 of file qwt_curve.h..PPReferenced by QwtPlot::closestCurve(), drawDots(), drawLines(), drawSpline(), drawSteps(), drawSticks(), and drawSymbols()..SS "double QwtCurve::y (int i) const".PP\fBParameters:\fP.RS 4\fIi\fP index .RE.PP\fBReturns:\fP.RS 4y-value at position i .RE.PPDefinition at line 214 of file qwt_curve.h..PPReferences QwtData::y()..PPReferenced by QwtPlot::closestCurve(), drawDots(), drawLines(), drawSpline(), drawSteps(), drawSticks(), and drawSymbols()..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 + -