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

QwtPlot 的布局引擎 更多...

#include <qwt_plot_layout.h>

类 QwtPlotLayout 继承关系图:
QwtParasitePlotLayout

class  PrivateData
 

Public 类型

enum  Option {
  AlignScales = 0x01 , IgnoreScrollbars = 0x02 , IgnoreFrames = 0x04 , IgnoreLegend = 0x08 ,
  IgnoreTitle = 0x10 , IgnoreFooter = 0x20
}
 用于配置绘图布局引擎的选项 更多...
 

Public 成员函数

 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 QSize minimumSizeHint (const QwtPlot *) const
 计算绘图的最小尺寸提示
 
virtual void activate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options())
 根据给定的外框矩形,重新计算所有绘图组件的几何位置
 
virtual void invalidate ()
 使所有组件的几何区域无效
 
QRectF titleRect () const
 获取标题的几何区域
 
QRectF footerRect () const
 获取页脚的几何区域
 
QRectF legendRect () const
 获取图例的几何区域
 
QRectF scaleRect (QwtAxisId) const
 获取坐标轴的几何区域
 
QRectF canvasRect () const
 获取画布的几何区域
 

Protected 成员函数

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的具体实现
 

详细描述

QwtPlot 的布局引擎

成员枚举类型说明

◆ Option

用于配置绘图布局引擎的选项

枚举值
AlignScales 

未使用

IgnoreScrollbars 

忽略滚动条的尺寸

IgnoreFrames 

忽略所有边框

IgnoreLegend 

忽略图例

IgnoreTitle 

忽略标题

IgnoreFooter 

忽略页脚

构造及析构函数说明

◆ QwtPlotLayout()

QwtPlotLayout::QwtPlotLayout ( )
explicit

构造函数

◆ ~QwtPlotLayout()

QwtPlotLayout::~QwtPlotLayout ( )
virtual

析构函数

成员函数说明

◆ activate()

void QwtPlotLayout::activate ( const QwtPlot plot,
const QRectF &  plotRect,
Options  options = Options() 
)
virtual

根据给定的外框矩形,重新计算所有绘图组件的几何位置

QwtParasitePlotLayout 重载.

◆ alignCanvasToScale()

bool QwtPlotLayout::alignCanvasToScale ( int  axisPos) const

获取指定坐标轴的画布对齐设置

◆ canvasMargin()

int QwtPlotLayout::canvasMargin ( int  axisPos) const

获取指定坐标轴位置的画布边距

◆ canvasRect()

QRectF QwtPlotLayout::canvasRect ( ) const

获取画布的几何区域

◆ doActivate()

void QwtPlotLayout::doActivate ( const QwtPlot plot,
const QRectF &  plotRect,
Options  options = Options() 
)
protected

QwtPlotLayout::activate的具体实现

参数
plotRect
options

◆ footerRect()

QRectF QwtPlotLayout::footerRect ( ) const

获取页脚的几何区域

◆ invalidate()

void QwtPlotLayout::invalidate ( )
virtual

使所有组件的几何区域无效

◆ legendPosition()

QwtPlot::LegendPosition QwtPlotLayout::legendPosition ( ) const

获取图例位置

◆ legendRatio()

double QwtPlotLayout::legendRatio ( ) const

获取图例在绘图中的相对大小

◆ legendRect()

QRectF QwtPlotLayout::legendRect ( ) const

获取图例的几何区域

◆ minimumSizeHint()

QSize QwtPlotLayout::minimumSizeHint ( const QwtPlot plot) const
virtual

计算绘图的最小尺寸提示

QwtParasitePlotLayout 重载.

◆ scaleRect()

QRectF QwtPlotLayout::scaleRect ( QwtAxisId  axisId) const

获取坐标轴的几何区域

◆ setAlignCanvasToScale()

void QwtPlotLayout::setAlignCanvasToScale ( int  axisPos,
bool  on 
)

设置指定坐标轴的画布对齐设置

◆ setAlignCanvasToScales()

void QwtPlotLayout::setAlignCanvasToScales ( bool  on)

设置所有坐标轴的画布对齐标志

◆ setCanvasMargin()

void QwtPlotLayout::setCanvasMargin ( int  margin,
int  axisPos = -1 
)

设置指定坐标轴位置的画布边距

◆ setCanvasRect()

void QwtPlotLayout::setCanvasRect ( const QRectF &  rect)
protected

Set the geometry for the canvas

This method is intended to be used from derived layouts overloading activate()

参见
canvasRect(), activate()

◆ setFooterRect()

void QwtPlotLayout::setFooterRect ( const QRectF &  rect)
protected

Set the geometry for the footer

This method is intended to be used from derived layouts overloading activate()

参见
footerRect(), activate()

◆ setLegendPosition() [1/2]

void QwtPlotLayout::setLegendPosition ( QwtPlot::LegendPosition  pos)

设置图例位置

◆ setLegendPosition() [2/2]

void QwtPlotLayout::setLegendPosition ( QwtPlot::LegendPosition  pos,
double  ratio 
)

设置图例位置及比例

◆ setLegendRatio()

void QwtPlotLayout::setLegendRatio ( double  ratio)

设置图例在绘图中的相对大小

◆ setLegendRect()

void QwtPlotLayout::setLegendRect ( const QRectF &  rect)
protected

Set the geometry for the legend

This method is intended to be used from derived layouts overloading activate()

参数
rectRectangle for the legend
参见
legendRect(), activate()

◆ setScaleRect()

void QwtPlotLayout::setScaleRect ( QwtAxisId  axisId,
const QRectF &  rect 
)
protected

Set the geometry for an axis

This method is intended to be used from derived layouts overloading activate()

参数
axisIdAxis
rectRectangle for the scale
参见
scaleRect(), activate()

◆ setSpacing()

void QwtPlotLayout::setSpacing ( int  spacing)

设置绘图组件之间的间距

◆ setTitleRect()

void QwtPlotLayout::setTitleRect ( const QRectF &  rect)
protected

Set the geometry for the title

This method is intended to be used from derived layouts overloading activate()

参见
titleRect(), activate()

◆ spacing()

int QwtPlotLayout::spacing ( ) const

获取绘图组件之间的间距

◆ titleRect()

QRectF QwtPlotLayout::titleRect ( ) const

获取标题的几何区域


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