|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
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 | |
| ScaleData & | axisData (QwtAxisId axisId) |
| Get scale data for a specific axis (mutable version) | |
| const ScaleData & | axisData (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.
| 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.
| plot | Pointer to the QwtPlot |
| QwtPlotLayoutEngine::LayoutData::ScaleData & QwtPlotLayoutEngine::LayoutData::axisData | ( | QwtAxisId | axisId | ) |
Get scale data for a specific axis (mutable version)
| axisId | Axis identifier |
| const QwtPlotLayoutEngine::LayoutData::ScaleData & QwtPlotLayoutEngine::LayoutData::axisData | ( | QwtAxisId | axisId | ) | const |
Get scale data for a specific axis (const version)
| axisId | Axis identifier |
| 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.
| double QwtPlotLayoutEngine::LayoutData::tickOffset | ( | int | axisPos | ) | const |
Get tick offset for a specific axis position
| axisPos | Axis position (0-3) |