QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 类型 | Public 成员函数 | Public 属性 | 所有成员列表
QwtPlotLayoutEngine::LayoutData类 参考

Data structure for layout calculation 更多...

#include <qwt_plot_layout_engine.h>

struct  CanvasData
 Data for canvas layout calculation 更多...
 
struct  LabelData
 Data for title/footer label layout calculation 更多...
 
struct  LegendData
 Data for legend layout calculation 更多...
 
struct  ScaleData
 Data for axis scale widget layout calculation 更多...
 

Public 类型

enum  Label { Title , Footer , NumLabels }
 Label type enumeration 更多...
 

Public 成员函数

 LayoutData (const QwtPlot *plot)
 Construct LayoutData from a QwtPlot
 
bool hasSymmetricYAxes () const
 Check if Y axes are symmetric
 
ScaleDataaxisData (QwtAxisId axisId)
 Get scale data for a specific axis (mutable version)
 
const ScaleDataaxisData (QwtAxisId axisId) const
 Get scale data for a specific axis (const version)
 
double tickOffset (int axisPos) const
 Get tick offset for a specific axis position
 

Public 属性

LegendData legendData
 
LabelData labelData [NumLabels]
 
CanvasData canvasData
 
int parasiteCaptionHeight [QwtAxis::AxisPositions]
 

详细描述

Data structure for layout calculation

Contains cached data extracted from plot components for efficient layout calculation.

成员枚举类型说明

◆ Label

Label type enumeration

Identifies title or footer labels in the layout.

枚举值
Title 

Title label

Footer 

Footer label

NumLabels 

Number of label types

构造及析构函数说明

◆ LayoutData()

QwtPlotLayoutEngine::LayoutData::LayoutData ( const QwtPlot plot)

Construct LayoutData from a QwtPlot

Initializes all layout data by extracting information from the plot's components including legend, labels, axes and canvas. For a host plot the outside title caption heights demanded by all parasite plots sharing its bands are aggregated as well, so that the host layout reserves enough space for the captions of every layer.

参数
plotPointer to the QwtPlot

成员函数说明

◆ axisData() [1/2]

QwtPlotLayoutEngine::LayoutData::ScaleData & QwtPlotLayoutEngine::LayoutData::axisData ( QwtAxisId  axisId)

Get scale data for a specific axis (mutable version)

参数
axisIdAxis identifier
返回
Mutable reference to the scale data

◆ axisData() [2/2]

const QwtPlotLayoutEngine::LayoutData::ScaleData & QwtPlotLayoutEngine::LayoutData::axisData ( QwtAxisId  axisId) const

Get scale data for a specific axis (const version)

参数
axisIdAxis identifier
返回
Constant reference to the scale data

◆ hasSymmetricYAxes()

bool QwtPlotLayoutEngine::LayoutData::hasSymmetricYAxes ( ) const

Check if Y axes are symmetric

Determines if both left and right Y axes are visible or both are hidden.

返回
True if both Y axes have the same visibility state

◆ tickOffset()

double QwtPlotLayoutEngine::LayoutData::tickOffset ( int  axisPos) const

Get tick offset for a specific axis position

参数
axisPosAxis position (0-3)
返回
Tick offset value

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