QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
QwtParasitePlotLayout类 参考

寄生绘图的布局管理器 更多...

#include <qwt_parasite_plot_layout.h>

类 QwtParasitePlotLayout 继承关系图:
QwtPlotLayout

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
 
QwtPlotLayoutEnginelayoutEngine ()
 
void doActivate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options())
 QwtPlotLayout::activate的具体实现
 

详细描述

寄生绘图的布局管理器

构造及析构函数说明

◆ QwtParasitePlotLayout()

QwtParasitePlotLayout::QwtParasitePlotLayout ( )

构造寄生绘图布局

◆ ~QwtParasitePlotLayout()

QwtParasitePlotLayout::~QwtParasitePlotLayout ( )

析构函数

成员函数说明

◆ activate()

void QwtParasitePlotLayout::activate ( const QwtPlot plot,
const QRectF &  plotRect,
Options  options = Options() 
)
overridevirtual

激活寄生绘图的布局

重载 QwtPlotLayout .

◆ minimumSizeHint()

QSize QwtParasitePlotLayout::minimumSizeHint ( const QwtPlot plot) const
overridevirtual

获取寄生绘图的最小尺寸提示

重载 QwtPlotLayout .

◆ parasiteScaleRect()

QRectF QwtParasitePlotLayout::parasiteScaleRect ( QwtAxisId  aid) const

Get the parasite axis scale rect without offset

获取寄生轴未偏移时的坐标轴矩形


该类的文档由以下文件生成: