|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
寄生绘图的布局管理器 更多...
#include <qwt_parasite_plot_layout.h>
Public 成员函数 | |
| QwtParasitePlotLayout () | |
| 构造寄生绘图布局 | |
| ~QwtParasitePlotLayout () | |
| 析构函数 | |
| virtual void | activate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options()) override |
| 激活寄生绘图的布局 | |
| virtual QSize | minimumSizeHint (const QwtPlot *plot) const override |
| 获取寄生绘图的最小尺寸提示 | |
| QRectF | parasiteScaleRect (QwtAxisId aid) const |
| Get the parasite axis scale rect without offset | |
Public 成员函数 继承自 QwtPlotLayout | |
| QwtPlotLayout () | |
| 构造函数 | |
| virtual | ~QwtPlotLayout () |
| 析构函数 | |
| void | setCanvasMargin (int margin, int axis=-1) |
| 设置指定坐标轴位置的画布边距 | |
| int | canvasMargin (int axisId) const |
| 获取指定坐标轴位置的画布边距 | |
| void | setAlignCanvasToScales (bool) |
| 设置所有坐标轴的画布对齐标志 | |
| void | setAlignCanvasToScale (int axisId, bool) |
| 设置指定坐标轴的画布对齐设置 | |
| bool | alignCanvasToScale (int axisId) const |
| 获取指定坐标轴的画布对齐设置 | |
| void | setSpacing (int) |
| 设置绘图组件之间的间距 | |
| int | spacing () const |
| 获取绘图组件之间的间距 | |
| void | setLegendPosition (QwtPlot::LegendPosition pos, double ratio) |
| 设置图例位置及比例 | |
| void | setLegendPosition (QwtPlot::LegendPosition pos) |
| 设置图例位置 | |
| QwtPlot::LegendPosition | legendPosition () const |
| 获取图例位置 | |
| void | setLegendRatio (double ratio) |
| 设置图例在绘图中的相对大小 | |
| double | legendRatio () const |
| 获取图例在绘图中的相对大小 | |
| virtual void | invalidate () |
| 使所有组件的几何区域无效 | |
| QRectF | titleRect () const |
| 获取标题的几何区域 | |
| QRectF | footerRect () const |
| 获取页脚的几何区域 | |
| QRectF | legendRect () const |
| 获取图例的几何区域 | |
| QRectF | scaleRect (QwtAxisId) const |
| 获取坐标轴的几何区域 | |
| QRectF | canvasRect () const |
| 获取画布的几何区域 | |
额外继承的成员函数 | |
Public 类型 继承自 QwtPlotLayout | |
| enum | Option { AlignScales = 0x01 , IgnoreScrollbars = 0x02 , IgnoreFrames = 0x04 , IgnoreLegend = 0x08 , IgnoreTitle = 0x10 , IgnoreFooter = 0x20 } |
| 用于配置绘图布局引擎的选项 更多... | |
Protected 成员函数 继承自 QwtPlotLayout | |
| void | setTitleRect (const QRectF &) |
| Set the geometry for the title | |
| void | setFooterRect (const QRectF &) |
| Set the geometry for the footer | |
| void | setLegendRect (const QRectF &) |
| Set the geometry for the legend | |
| void | setScaleRect (QwtAxisId, const QRectF &) |
| Set the geometry for an axis | |
| void | setCanvasRect (const QRectF &) |
| Set the geometry for the canvas | |
| QwtPlotLayoutEngine * | layoutEngine () |
| void | doActivate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options()) |
| QwtPlotLayout::activate的具体实现 | |
寄生绘图的布局管理器
| QwtParasitePlotLayout::QwtParasitePlotLayout | ( | ) |
构造寄生绘图布局
| QwtParasitePlotLayout::~QwtParasitePlotLayout | ( | ) |
析构函数
|
overridevirtual |
激活寄生绘图的布局
重载 QwtPlotLayout .
|
overridevirtual |
获取寄生绘图的最小尺寸提示
重载 QwtPlotLayout .
| QRectF QwtParasitePlotLayout::parasiteScaleRect | ( | QwtAxisId | aid | ) | const |
Get the parasite axis scale rect without offset
获取寄生轴未偏移时的坐标轴矩形