QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
QwtPlotLayoutEngine::LayoutData Class Reference

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.
 
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 Attributes

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

Detailed Description

Data structure for layout calculation.

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

Member Enumeration Documentation

◆ Label

Label type enumeration.

Identifies title or footer labels in the layout.

Enumerator
Title 

Title label.

Footer 

Footer label.

NumLabels 

Number of label types.

Constructor & Destructor Documentation

◆ 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.

Parameters
plotPointer to the QwtPlot

Member Function Documentation

◆ axisData() [1/2]

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

Get scale data for a specific axis (mutable version)

Parameters
axisIdAxis identifier
Returns
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)

Parameters
axisIdAxis identifier
Returns
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.

Returns
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.

Parameters
axisPosAxis position (0-3)
Returns
Tick offset value

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