|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
Data structure for layout calculation. More...
#include <qwt_plot_layout_engine.h>
Classes | |
| struct | CanvasData |
| Data for canvas layout calculation. More... | |
| struct | LabelData |
| Data for title/footer label layout calculation. More... | |
| struct | LegendData |
| Data for legend layout calculation. More... | |
| struct | ScaleData |
| Data for axis scale widget layout calculation. More... | |
Public Types | |
| enum | Label { Title , Footer , NumLabels } |
| Label type enumeration. More... | |
Public Member Functions | |
| 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 Attributes | |
| 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) |