QWT 7.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QwtPlotLayoutEngine::Dimensions Struct Reference

Public Member Functions

int dimAxis (QwtAxisId axisId) const
 获取指定轴的占用尺寸 / Get the stored dimension for a given axis
 
void setDimAxis (QwtAxisId axisId, int dim)
 设置指定轴的占用尺寸 / Set the stored dimension for a given axis
 
int dimAxes (int axisPos) const
 按轴位置索引读取尺寸 / Read dimension by axis position index
 
int dimYAxes () const
 左右 Y 轴总宽度之和 / Sum width of left and right Y axes
 
int dimXAxes () const
 上下 X 轴总高度之和 / Sum height of top and bottom X axes
 
QRectF centered (const QRectF &rect, const QRectF &labelRect) const
 Center a label rectangle within available space / 在可用空间内居中标签矩形
 
QRectF innerRect (const QRectF &rect) const
 Calculate inner rectangle after accounting for axis dimensions / 计算考虑轴尺寸后的内部矩形
 

Public Attributes

int dimTitle
 
int dimFooter
 

Member Function Documentation

◆ centered()

QRectF QwtPlotLayoutEngine::Dimensions::centered ( const QRectF &  rect,
const QRectF &  labelRect 
) const

Center a label rectangle within available space / 在可用空间内居中标签矩形

This method adjusts the label rectangle to be centered horizontally within the available space after accounting for Y axis dimensions.

此方法调整标签矩形,在考虑Y轴尺寸后在可用空间内水平居中。

Parameters
rectThe available rectangle / 可用矩形区域
labelRectThe label rectangle to center / 要居中的标签矩形
Returns
Centered label rectangle / 居中后的标签矩形

◆ dimAxes()

int QwtPlotLayoutEngine::Dimensions::dimAxes ( int  axisPos) const

按轴位置索引读取尺寸 / Read dimension by axis position index

Parameters
axisPos轴位置枚举值 / axis position enum value
Returns
对应轴的像素尺寸 / pixel size of the axis

◆ dimAxis()

int QwtPlotLayoutEngine::Dimensions::dimAxis ( QwtAxisId  axisId) const

获取指定轴的占用尺寸 / Get the stored dimension for a given axis

Parameters
axisId轴 ID(QwtAxis::XTop …)/ axis identifier
Returns
该轴所占像素宽度或高度 / the reserved pixels for this axis

◆ dimXAxes()

int QwtPlotLayoutEngine::Dimensions::dimXAxes ( ) const

上下 X 轴总高度之和 / Sum height of top and bottom X axes

Returns
总像素高度 / combined height in pixels

◆ dimYAxes()

int QwtPlotLayoutEngine::Dimensions::dimYAxes ( ) const

左右 Y 轴总宽度之和 / Sum width of left and right Y axes

Returns
总像素宽度 / combined width in pixels

◆ innerRect()

QRectF QwtPlotLayoutEngine::Dimensions::innerRect ( const QRectF &  rect) const

Calculate inner rectangle after accounting for axis dimensions / 计算考虑轴尺寸后的内部矩形

This method calculates the available space for the canvas after reserving space for all axes.

此方法计算为所有轴保留空间后,画布的可用空间。

Parameters
rectThe outer rectangle / 外部矩形区域
Returns
Inner rectangle for canvas / 画布的内部矩形区域

◆ setDimAxis()

void QwtPlotLayoutEngine::Dimensions::setDimAxis ( QwtAxisId  axisId,
int  dim 
)

设置指定轴的占用尺寸 / Set the stored dimension for a given axis

Parameters
axisId轴 ID / axis identifier
dim新的像素尺寸 / new dimension in pixels

The documentation for this struct was generated from the following files: