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

📄 qwtplot.3

📁 软件无线电的平台
💻 3
📖 第 1 页 / 共 5 页
字号:
.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveData (long key, const QwtArray< double > & xData, const QwtArray< double > & yData)".PPInitialize curve data with x- and y-arrays (data is explicitly shared). \fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIxData\fP array with x-values .br\fIyData\fP array with y-values .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveData (long key, const double * xData, const double * yData, int size)".PPSet curve data by copying x- and y-values from specified blocks. Contrary to \fB\fBQwtPlot::setCurveRawData\fP\fP, this function makes a 'deep copy' of the data. \fBParameters:\fP.RS 4\fIkey\fP curve key .br\fIxData\fP pointer to x values .br\fIyData\fP pointer to y values .br\fIsize\fP size of xData and yData .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists.RE.PP\fBSee also:\fP.RS 4\fBsetCurveRawData()\fP, \fBQwtCurve::setData\fP .RE.PP.SS "bool QwtPlot::setCurveOptions (long key, int opt)".PPSet the style options of a curve indexed by key. \fBParameters:\fP.RS 4\fIkey\fP The curve's key .br\fIopt\fP curve options .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified curve exists. .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::setOptions\fP for a detailed description of valid options. .RE.PP.SS "bool QwtPlot::setCurvePen (long key, const QPen & pen)".PPAssign a pen to a curve indexed by key. \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .br\fIpen\fP new pen .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveRawData (long key, const double * xData, const double * yData, int size)".PPInitialize the curve data by pointing to memory blocks which are not managed by QwtPlot. \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .br\fIxData\fP pointer to x data .br\fIyData\fP pointer to y data .br\fIsize\fP size of x and y .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists.RE.PP\fBWarning:\fP.RS 4setRawData is provided for efficiency. The programmer should not delete the data during the lifetime of the underlying \fBQwtCPointerData\fP class..RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::setCurveData()\fP, \fBQwtCurve::setRawData\fP .RE.PP.SS "bool QwtPlot::setCurveSplineSize (long key, int s)".PPSet the number of interpolated points of a curve indexed by key. \fBParameters:\fP.RS 4\fIkey\fP key of the curve .br\fIs\fP size of the spline .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveStyle (long key, int s, int options = 0)".PPChange a curve's style. \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .br\fIs\fP display style of the curve .br\fIoptions\fP style options .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP\fBSee also:\fP.RS 4\fBQwtCurve::setStyle()\fP for a detailed description of valid styles. .RE.PP.SS "bool QwtPlot::setCurveSymbol (long key, const \fBQwtSymbol\fP & s)".PPAssign a symbol to a curve indexed by key. \fBParameters:\fP.RS 4\fIkey\fP Key of the curve .br\fIs\fP .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the curve exists .RE.PP.SS "bool QwtPlot::setCurveTitle (long key, const QString & s)".PP\fBParameters:\fP.RS 4\fIkey\fP .br\fIs\fP .RE.PP\fB\fP.RS 4.RE.PP.SS "bool QwtPlot::setCurveXAxis (long key, int axis)".PPAttach a curve to an x axis. \fBParameters:\fP.RS 4\fIkey\fP key of the curve .br\fIaxis\fP x axis to be attached .RE.PP.SS "bool QwtPlot::setCurveYAxis (long key, int axis)".PPAttach a curve to an y axis. \fBParameters:\fP.RS 4\fIkey\fP key of the curve .br\fIaxis\fP y axis to be attached .RE.PP.SS "void QwtPlot::setGridMajPen (const QPen & p)".PPChange the pen for the major gridlines. \fBParameters:\fP.RS 4\fIp\fP new pen .RE.PP.SS "void QwtPlot::setGridMinPen (const QPen & p)".PPChange the pen for the minor gridlines. \fBParameters:\fP.RS 4\fIp\fP new pen .RE.PP.SS "void QwtPlot::setGridPen (const QPen & p)".PPChange the grid's pens for major and minor gridlines. \fBParameters:\fP.RS 4\fIp\fP new pen .RE.PP.SS "void QwtPlot::setGridXAxis (int axis)".PPAttach the grid to an x axis. \fBParameters:\fP.RS 4\fIaxis\fP x axis to be attached .RE.PP.SS "void QwtPlot::setGridYAxis (int axis)".PPAttach the grid to an y axis. \fBParameters:\fP.RS 4\fIaxis\fP y axis to be attached .RE.PP.SS "void QwtPlot::setLegendDisplayPolicy (\fBQwtLegend::LegendDisplayPolicy\fP policy, int mode = -1)".PPSet the identifier display policy of the legend. .PP\fBParameters:\fP.RS 4\fIpolicy\fP new policy. .br\fImode\fP new mode. .RE.PP\fBSee also:\fP.RS 4\fBQwtLegend::setDisplayPolicy\fP, \fBQwtLegend::LegendDisplayPolicy\fP .RE.PP.SS "void QwtPlot::setLegendFont (const QFont & f)".PPChange the font of the legend items. \fBParameters:\fP.RS 4\fIf\fP new font .RE.PP.SS "void QwtPlot::setLegendFrameStyle (int st)".PPChange the legend's frame style. \fBParameters:\fP.RS 4\fIst\fP Frame Style. See Qt manual on QFrame. .RE.PP.SS "void QwtPlot::setLegendPos (int pos, double ratio = 0.0)".PPSpecify the position of the legend within the widget. If the position legend is \fCQwt::Left\fP or \fCQwt::Right\fP the legend will be organized in one column from top to down. Otherwise the legend items will be placed be placed in a table with a best fit number of columns from left to right..PP\fBParameters:\fP.RS 4\fIpos\fP The legend's position. Valid values are \fCQwt::Left\fP, \fCQwt::Right\fP, \fCQwt::Top\fP, \fCQwtBottom\fP. .br\fIratio\fP Ratio between legend and the bounding rect of title, canvas and axes. The legend will be shrinked if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5..RE.PP\fBSee also:\fP.RS 4\fBQwtPlot::legendPos()\fP, \fBQwtPlotLayout::setLegendPos()\fP .RE.PP.SS "void QwtPlot::setMargin (int margin)".PPChange the margin of the plot. The margin is the space around all components..PP\fBParameters:\fP.RS 4\fImargin\fP new margin .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setMargin()\fP, \fBQwtPlot::margin()\fP, \fBQwtPlot::plotLayout()\fP .RE.PP.SS "bool QwtPlot::setMarkerFont (long key, const QFont & f)".PPSpecify a font for a marker's label. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIf\fP New font .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLabel (long key, const QString & text, const QFont & font = QFont(), const QColor & color = QColor(), const QPen & pen = QPen(Qt::NoPen), const QBrush & brush = QBrush(Qt::NoBrush))".PPSet the marker label. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fItext\fP the label text .br\fIfont\fP the font of the label text .br\fIcolor\fP the color of the label text .br\fIpen\fP the pen of the bounding box of the label text .br\fIbrush\fP the brush of the bounding box of the label text .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLabelAlign (long key, int align)".PPSpecify the alignment of a marker's label. The alignment determines the position of the label relative to the marker's position. The default setting is AlignCenter. .PP\fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIalign\fP Alignment: AlignLeft, AlignRight, AlignTop, AlignBottom, AlignHCenter, AlignVCenter, AlignCenter or a combination of them. .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLabelPen (long key, const QPen & p)".PPSpecify a pen for a marker's label. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIp\fP Label pen .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLabelText (long key, const QString & text)".PPAssign a text to the label of a marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fItext\fP Label text .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLinePen (long key, const QPen & p)".PPSpecify a pen for a marker's line. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIp\fP New pen .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerLineStyle (long key, \fBQwtMarker::LineStyle\fP st)".PPSpecify the line style for a marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIst\fP Line style: \fCQwtMarker::HLine, QwtMarker::VLine, QwtMarker::NoLine\fP or a combination of them. .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerPen (long key, const QPen & p)".PPSpecify a pen for a marker's label. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIp\fP New pen .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerPos (long key, double xval, double yval)".PPChange the position of a marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIxval\fP .br\fIyval\fP Position of the marker in axis coordinates. .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerSymbol (long key, const \fBQwtSymbol\fP & s)".PPAssign a symbol to a specified marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIs\fP new symbol .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerXAxis (long key, int axis)".PPAttach the marker to an x axis. \fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists. .RE.PP.SS "bool QwtPlot::setMarkerXPos (long key, double val)".PPSpecify the X position of a marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIval\fP X position of the marker .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerYAxis (long key, int axis)".PPAttach the marker to a Y axis. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIaxis\fP Axis to be attached .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "bool QwtPlot::setMarkerYPos (long key, double val)".PPSpecify the Y position of the marker. \fBParameters:\fP.RS 4\fIkey\fP Marker key .br\fIval\fP Y position of the marker .RE.PP\fBReturns:\fP.RS 4\fCTRUE\fP if the specified marker exists .RE.PP.SS "void QwtPlot::setOutlinePen (const QPen & pn)".PPSpecify a pen for the outline. \fBParameters:\fP.RS 4\fIpn\fP new pen .RE.PP.SS "void QwtPlot::setOutlineStyle (Qwt::Shape os)".PPSpecify the style of the outline. The outline style determines which kind of shape is drawn in the plotting region when the user presses a mouse button or drags the mouse. Valid Styles are: .PP\fBParameters:\fP.RS 4\fIos\fP Outline Style. Valid values are: \fCQwt::HLine\fP, \fCQwt::VLine\fP, \fCQwt::Cross\fP, \fCQwt::Rect\fP, \fCQwt::Ellipse\fP .IP "\fBQwt::Cross \fP" 1cCross hairs are drawn across the plotting area when the user presses a mouse button. The lines intersect at the point where the mouse was pressed and move with the mouse pointer. .IP "\fBQwt::HLine, Qwt::VLine \fP" 1cA horizontal or vertical line appears when the user presses a mouse button. This is useful for moving line markers. .IP "\fBQwt::Rect \fP" 1cA rectangle is displayed when the user drags the mouse. One corner is fixed at the point where the mouse was pressed, and the opposite corner moves with the mouse pointer. This can be used for selecting regions. .IP "\fBQwt::Ellipse \fP" 1cSimilar to Qwt::Rect, but with an ellipse inside a bounding rectangle. .PP.RE.PP\fBSee also:\fP.RS 4\fBenableOutline()\fP .RE.PP.SS "void QwtPlot::setTitle (const QString & t)".PPChange the plot's title. \fBParameters:\fP.RS 4\fIt\fP new title .RE.PP.SS "void QwtPlot::setTitleFont (const QFont & f)".PPChange the title font. \fBParameters:\fP.RS 4\fIf\fP new title font .RE.PP.SS "QSize QwtPlot::sizeHint () const\fC [virtual]\fP".PPReturn sizeHint .PP\fBSee also:\fP.RS 4\fBQwtPlot::minimumSizeHint()\fP .RE.PP.SS "QSizePolicy QwtPlot::sizePolicy () const\fC [virtual]\fP".PPReturn MinimumExpanding/MinimumExpanding. .SS "QString QwtPlot::title () const".PP\fBReturns:\fP.RS 4the plot's title .RE.PP.SS "QFont QwtPlot::titleFont () const".PP\fBReturns:\fP.RS 4the plot's title font .RE.PP.SS "const  QLabel * QwtPlot::titleLabel () const".PP\fBReturns:\fP.RS 4the plot's titel label. .RE.PP.SS "QLabel * QwtPlot::titleLabel ()".PP\fBReturns:\fP.RS 4the plot's titel label. .RE.PP.SS "int QwtPlot::transform (int axis, double value) const".PPTransform a value into a coordinate in the plotting regi

⌨️ 快捷键说明

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