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

📄 qwtplotlayout.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtPlotLayout" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtPlotLayout \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP Layout class for \fBQwtPlot\fP. Organizes the geometry for the different \fBQwtPlot\fP components. .PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBOptions\fP { \fBAlignScales\fP =  1, \fBIgnoreScrollbars\fP =  2, \fBIgnoreFrames\fP =  4, \fBIgnoreMargin\fP =  8, \fBIgnoreLegend\fP =  16 }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtPlotLayout\fP ()".br.ti -1c.RI "virtual \fB~QwtPlotLayout\fP ()".br.ti -1c.RI "void \fBsetMargin\fP (int)".br.ti -1c.RI "int \fBmargin\fP () const ".br.ti -1c.RI "void \fBsetCanvasMargin\fP (int margin, int axis=-1)".br.ti -1c.RI "int \fBcanvasMargin\fP (int axis) const ".br.ti -1c.RI "void \fBsetAlignCanvasToScales\fP (bool)".br.ti -1c.RI "bool \fBalignCanvasToScales\fP () const ".br.ti -1c.RI "void \fBsetSpacing\fP (int)".br.ti -1c.RI "int \fBspacing\fP () const ".br.ti -1c.RI "void \fBsetLegendPos\fP (int pos, double ratio=0.0)".br.ti -1c.RI "int \fBlegendPos\fP () const ".br.ti -1c.RI "double \fBlegendRatio\fP () const ".br.ti -1c.RI "virtual QSize \fBminimumSizeHint\fP (const  \fBQwtPlot\fP *) const ".br.ti -1c.RI "virtual void \fBactivate\fP (const  \fBQwtPlot\fP *, const  QRect &rect, int options=0)".br.ti -1c.RI "virtual void \fBinvalidate\fP ()".br.ti -1c.RI "const  QRect & \fBtitleRect\fP () const ".br.ti -1c.RI "const  QRect & \fBlegendRect\fP () const ".br.ti -1c.RI "const  QRect & \fBscaleRect\fP (int axis) const ".br.ti -1c.RI "const  QRect & \fBcanvasRect\fP () const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "QRect \fBlayoutLegend\fP (int options, const  QRect &) const ".br.ti -1c.RI "QRect \fBalignLegend\fP (const  QRect &canvasRect, const  QRect &legendRect) const ".br.ti -1c.RI "void \fBexpandLineBreaks\fP (int options, const  QRect &rect, int &dimTitle, int dimAxes[QwtPlot::axisCnt]) const ".br.ti -1c.RI "void \fBalignScales\fP (int options, QRect &canvasRect, QRect scaleRect[QwtPlot::axisCnt]) const ".br.in -1c.SS "Protected Attributes".in +1c.ti -1c.RI "QRect \fBd_titleRect\fP".br.ti -1c.RI "QRect \fBd_legendRect\fP".br.ti -1c.RI "QRect \fBd_scaleRect\fP [QwtPlot::axisCnt]".br.ti -1c.RI "QRect \fBd_canvasRect\fP".br.ti -1c.RI "QwtPlotLayoutData * \fBd_layoutData\fP".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtPlotLayout::QwtPlotLayout ()".PPConstructor. .SS "QwtPlotLayout::~\fBQwtPlotLayout\fP ()\fC [virtual]\fP".PPDestructor. .SH "Member Function Documentation".PP .SS "void QwtPlotLayout::activate (const \fBQwtPlot\fP * plot, const QRect & plotRect, int options = 0)\fC [virtual]\fP".PPRecalculate the geometry of all components. \fBParameters:\fP.RS 4\fIplot\fP Plot to be layout .br\fIplotRect\fP Rect where to place the components .br\fIoptions\fP Options.RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::invalidate()\fP, \fBQwtPlotLayout::titleRect()\fP, \fBQwtPlotLayout::legendRect()\fP, \fBQwtPlotLayout::scaleRect()\fP, \fBQwtPlotLayout::canvasRect()\fP .RE.PP.SS "bool QwtPlotLayout::alignCanvasToScales () const".PPReturn the align-canvas-to-axis-scales setting. The canvas may:.IP "\(bu" 2extend beyond the axis scale ends to maximize its size.IP "\(bu" 2align with the axis scale ends to control its size..PP.PP\fBReturns:\fP.RS 4align-canvas-to-axis-scales setting .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setAlignCanvasToScales\fP, \fBQwtPlotLayout::setCanvasMargin()\fP .RE.PP\fBNote:\fP.RS 4In this context the term 'scale' means the backbone of a scale. .RE.PP.SS "QRect QwtPlotLayout::alignLegend (const QRect & canvasRect, const QRect & legendRect) const\fC [protected]\fP".PPAlign the legend to the canvas .PP\fBParameters:\fP.RS 4\fIcanvasRect\fP Geometry of the canvas .br\fIlegendRect\fP Maximum geometry for the legend .RE.PP\fBReturns:\fP.RS 4Geometry for the aligned legend .RE.PP.SS "void QwtPlotLayout::alignScales (int options, QRect & canvasRect, QRect scaleRect[QwtPlot::axisCnt]) const\fC [protected]\fP".PPAlign the ticks of the axis to the canvas borders using the empty corners. .SS "int QwtPlotLayout::canvasMargin (int axis) const".PP\fBReturns:\fP.RS 4Margin around the scale tick borders .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setCanvasMargin()\fP .RE.PP.SS "const  QRect & QwtPlotLayout::canvasRect () const".PP\fBReturns:\fP.RS 4Geometry for the canvas .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::activate()\fP, \fBQwtPlotLayout::invalidate()\fP .RE.PP.SS "void QwtPlotLayout::expandLineBreaks (int options, const QRect & rect, int & dimTitle, int dimAxis[QwtPlot::axisCnt]) const\fC [protected]\fP".PPExpand all line breaks in text labels, and calculate the height of their widgets in orientation of the text..PP\fBParameters:\fP.RS 4\fIoptions\fP Options how to layout the legend .br\fIrect\fP Bounding rect for title, axes and canvas. .br\fIdimTitle\fP Expanded height of the title widget .br\fIdimAxis\fP Expanded heights of the axis in axis orientation. .RE.PP.SS "void QwtPlotLayout::invalidate ()\fC [virtual]\fP".PPInvalidate the geometry of all components. .PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::activate()\fP .RE.PP.SS "QRect QwtPlotLayout::layoutLegend (int options, const QRect & rect) const\fC [protected]\fP".PPFind the geometry for the legend .PP\fBParameters:\fP.RS 4\fIoptions\fP Options how to layout the legend .br\fIrect\fP Rectangle where to place the legend .RE.PP\fBReturns:\fP.RS 4Geometry for the legend .RE.PP.SS "int QwtPlotLayout::legendPos () const".PP\fBReturns:\fP.RS 4Position of the legend .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setLegendPos()\fP, \fBQwtPlot::setLegendPos()\fP, \fBQwtPlot::legendPos()\fP .RE.PP.SS "double QwtPlotLayout::legendRatio () const".PP\fBReturns:\fP.RS 4Position of the legend .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setLegendPos()\fP, \fBQwtPlot::setLegendPos()\fP .RE.PP.SS "const  QRect & QwtPlotLayout::legendRect () const".PP\fBReturns:\fP.RS 4Geometry for the legend .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::activate()\fP, \fBQwtPlotLayout::invalidate()\fP .RE.PP.SS "int QwtPlotLayout::margin () const".PP\fBReturns:\fP.RS 4margin .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setMargin()\fP, \fBQwtPlotLayout::spacing()\fP, \fBQwtPlot::margin()\fP .RE.PP.SS "QSize QwtPlotLayout::minimumSizeHint (const \fBQwtPlot\fP * plot) const\fC [virtual]\fP".PPReturn a minimum size hint. \fBSee also:\fP.RS 4\fBQwtPlot::minimumSizeHint()\fP .RE.PP.SS "const  QRect & QwtPlotLayout::scaleRect (int axis) const".PP\fBParameters:\fP.RS 4\fIaxis\fP Axis index .RE.PP\fBReturns:\fP.RS 4Geometry for the scale .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::activate()\fP, \fBQwtPlotLayout::invalidate()\fP .RE.PP.SS "void QwtPlotLayout::setAlignCanvasToScales (bool alignCanvasToScales)".PPChange the align-canvas-to-axis-scales setting. The canvas may:.IP "\(bu" 2extend beyond the axis scale ends to maximize its size,.IP "\(bu" 2align with the axis scale ends to control its size..PP.PP\fBParameters:\fP.RS 4\fIalignCanvasToScales\fP New align-canvas-to-axis-scales setting.RE.PP\fBSee also:\fP.RS 4QwtPlotLayout::alignCanvasToTicks, \fBQwtPlotLayout::setCanvasMargin()\fP .RE.PP\fBNote:\fP.RS 4In this context the term 'scale' means the backbone of a scale. .RE.PP\fBWarning:\fP.RS 4In case of alignCanvasToScales == TRUE canvasMargin will have no effect .RE.PP.SS "void QwtPlotLayout::setCanvasMargin (int margin, int axis = -1)".PPChange a margin of the canvas. The margin is the space above/below the scale ticks. A negative margin will be set to -1, excluding the borders of the scales..PP\fBParameters:\fP.RS 4\fImargin\fP New margin .br\fIaxis\fP One of \fBQwtPlot::Axis\fP. Specifies where the position of the margin. -1 means margin at all borders. .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::canvasMargin()\fP.RE.PP\fBWarning:\fP.RS 4The canvas will have no effect when alignCanvasToScales is TRUE .RE.PP.SS "void QwtPlotLayout::setLegendPos (int pos, double ratio = 0.0)".PPSpecify the position of the legend. \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::setLegendPos()\fP .RE.PP.SS "void QwtPlotLayout::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::margin()\fP, \fBQwtPlotLayout::setSpacing()\fP, \fBQwtPlot::setMargin()\fP .RE.PP.SS "void QwtPlotLayout::setSpacing (int spacing)".PPChange the spacing of the plot. The spacing is the distance between the plot components..PP\fBParameters:\fP.RS 4\fIspacing\fP new spacing .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::setMargin()\fP, \fBQwtPlotLayout::spacing()\fP .RE.PP.SS "int QwtPlotLayout::spacing () const".PP\fBReturns:\fP.RS 4spacing .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::margin()\fP, \fBQwtPlotLayout::setSpacing()\fP .RE.PP.SS "const  QRect & QwtPlotLayout::titleRect () const".PP\fBReturns:\fP.RS 4Geometry for the title .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotLayout::activate()\fP, \fBQwtPlotLayout::invalidate()\fP .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 + -