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

📄 qwtcurve.3

📁 软件无线电的平台
💻 3
📖 第 1 页 / 共 2 页
字号:
\fIpainter\fP Painter .br\fIxMap\fP x map .br\fIyMap\fP y map .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::draw\fP, \fBQwtCurve::drawCurve\fP, \fBQwtCurve::drawDots\fP, \fBQwtCurve::drawLines\fP, \fBQwtCurve::drawSteps\fP, \fBQwtCurve::drawSticks\fP .RE.PP.SS "void QwtCurve::drawSteps (QPainter * painter, const \fBQwtDiMap\fP & xMap, const \fBQwtDiMap\fP & yMap, int from, int to)\fC [protected]\fP".PPDraw step function. \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::drawSticks\fP .RE.PP.SS "void QwtCurve::drawSticks (QPainter * painter, const \fBQwtDiMap\fP & xMap, const \fBQwtDiMap\fP & yMap, int from, int to)\fC [protected]\fP".PPDraw sticks. \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.PP.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. \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.PP.SS "void QwtCurve::init (const QString & title)\fC [protected]\fP".PPInitialize data members. .SS "double QwtCurve::maxXValue () const".PP\fBboundingRect()\fP.x2() .SS "double QwtCurve::maxYValue () const".PP\fBboundingRect()\fP.y2() .SS "double QwtCurve::minXValue () const".PP\fBboundingRect()\fP.x1() .SS "double QwtCurve::minYValue () const".PP\fBboundingRect()\fP.y1() .SS "const  \fBQwtCurve\fP & QwtCurve::operator= (const \fBQwtCurve\fP & c)".PPCopy Assignment. .SS "int QwtCurve::options () const".PPReturn the current style options. \fBSee also:\fP.RS 4\fBQwtCurve::setOptions\fP .RE.PP.SS "const  QPen & QwtCurve::pen () const".PPReturn the pen used to draw the lines. \fBSee also:\fP.RS 4\fBQwtCurve::setPen\fP .RE.PP.SS "void QwtCurve::setBaseline (double ref)".PPSet the value of the baseline. The 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.PP.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). \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.PP.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.PP.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.PP.SS "void QwtCurve::setData (const QwtArray< double > & xData, const QwtArray< double > & yData)".PPInitialize data with x- and y-arrays (explicitly shared). \fBParameters:\fP.RS 4\fIxData\fP x data .br\fIyData\fP y data.RE.PP\fBSee also:\fP.RS 4QwtData::setData. .RE.PP.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. \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.PP.SS "void QwtCurve::setOptions (int opt)".PPSpecify options for the drawing style. The 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.PP.SS "void QwtCurve::setPen (const QPen & p)".PPAssign a pen. \fBParameters:\fP.RS 4\fIp\fP New pen .RE.PP.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. setRawData 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.PP.SS "void QwtCurve::setSplineSize (int s)".PPChange the number of interpolated points. \fBParameters:\fP.RS 4\fIs\fP new size .RE.PP\fBWarning:\fP.RS 4The default is 250 points. .RE.PP.SS "void QwtCurve::setStyle (int style, int options = 0)".PPSet the curve's drawing style. Valid 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.PP.SS "void QwtCurve::setSymbol (const \fBQwtSymbol\fP & s)".PPAssign a symbol. \fBParameters:\fP.RS 4\fIs\fP symbol .RE.PP\fBSee also:\fP.RS 4\fBQwtSymbol\fP .RE.PP.SS "void QwtCurve::setTitle (const QString & title)".PPAssign a title to a curve. \fBParameters:\fP.RS 4\fItitle\fP new title .RE.PP.SS "int QwtCurve::splineSize () const".PPReturn the spline size. \fBSee also:\fP.RS 4\fBQwtCurve::setSplineSize\fP .RE.PP.SS "int QwtCurve::style () const".PPReturn the current style. \fBSee also:\fP.RS 4\fBQwtCurve::setStyle\fP .RE.PP.SS "const  \fBQwtSymbol\fP & QwtCurve::symbol () const".PPReturn the current symbol. \fBSee also:\fP.RS 4\fBQwtCurve::setSymbol\fP .RE.PP.SS "const  QString & QwtCurve::title () const".PPReturn the title. \fBSee also:\fP.RS 4\fBQwtCurve::setTitle\fP .RE.PP.SS "int QwtCurve::verifyRange (int & i1, int & i2)\fC [protected]\fP".PPChecks if a range of indices is valid and corrects it if necessary. \fBParameters:\fP.RS 4\fIi1\fP Index 1 .br\fIi2\fP Index 2 .RE.PP.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.PP.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.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 + -