Layout engine for QwtPlot.
More...
#include <qwt_plot_layout.h>
|
| void | setTitleRect (const QRectF &) |
| | Set the geometry for the title.
|
| |
| void | setFooterRect (const QRectF &) |
| | Set the geometry for the footer.
|
| |
| void | setLegendRect (const QRectF &) |
| | Set the geometry for the legend.
|
| |
| void | setScaleRect (QwtAxisId, const QRectF &) |
| | Set the geometry for an axis.
|
| |
| void | setCanvasRect (const QRectF &) |
| | Set the geometry for the canvas.
|
| |
|
QwtPlotLayoutEngine * | layoutEngine () |
| |
| void | doActivate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options()) |
| | QwtPlotLayout::activate的具体实现
|
| |
Layout engine for QwtPlot.
◆ Option
Options to configure the plot layout engine.
| Enumerator |
|---|
| AlignScales | Unused
.
|
| IgnoreScrollbars | Ignore the dimension of the scrollbars.
|
| IgnoreFrames | Ignore all frames
.
|
| IgnoreLegend | Ignore the legend
.
|
| IgnoreTitle | Ignore the title
.
|
| IgnoreFooter | Ignore the footer
.
|
◆ QwtPlotLayout()
| QwtPlotLayout::QwtPlotLayout |
( |
| ) |
|
|
explicit |
◆ ~QwtPlotLayout()
| QwtPlotLayout::~QwtPlotLayout |
( |
| ) |
|
|
virtual |
◆ activate()
| void QwtPlotLayout::activate |
( |
const QwtPlot * |
plot, |
|
|
const QRectF & |
plotRect, |
|
|
Options |
options = Options() |
|
) |
| |
|
virtual |
◆ alignCanvasToScale()
| bool QwtPlotLayout::alignCanvasToScale |
( |
int |
axisPos | ) |
const |
Get the align-canvas-to-axis-scales setting for a specific axis.
◆ canvasMargin()
| int QwtPlotLayout::canvasMargin |
( |
int |
axisPos | ) |
const |
Get the canvas margin for a specific axis position.
◆ canvasRect()
| QRectF QwtPlotLayout::canvasRect |
( |
| ) |
const |
Get the geometry for the canvas.
◆ doActivate()
| void QwtPlotLayout::doActivate |
( |
const QwtPlot * |
plot, |
|
|
const QRectF & |
plotRect, |
|
|
Options |
options = Options() |
|
) |
| |
|
protected |
QwtPlotLayout::activate的具体实现
- Parameters
-
◆ footerRect()
| QRectF QwtPlotLayout::footerRect |
( |
| ) |
const |
Get the geometry for the footer.
◆ invalidate()
| void QwtPlotLayout::invalidate |
( |
| ) |
|
|
virtual |
Invalidate the geometry of all components.
◆ legendPosition()
◆ legendRatio()
| double QwtPlotLayout::legendRatio |
( |
| ) |
const |
Get the relative size of the legend in the plot.
◆ legendRect()
| QRectF QwtPlotLayout::legendRect |
( |
| ) |
const |
Get the geometry for the legend.
◆ minimumSizeHint()
| QSize QwtPlotLayout::minimumSizeHint |
( |
const QwtPlot * |
plot | ) |
const |
|
virtual |
◆ scaleRect()
| QRectF QwtPlotLayout::scaleRect |
( |
QwtAxisId |
axisId | ) |
const |
Get the geometry for a scale axis.
◆ setAlignCanvasToScale()
| void QwtPlotLayout::setAlignCanvasToScale |
( |
int |
axisPos, |
|
|
bool |
on |
|
) |
| |
Set the align-canvas-to-axis-scales setting for a specific axis.
◆ setAlignCanvasToScales()
| void QwtPlotLayout::setAlignCanvasToScales |
( |
bool |
on | ) |
|
Set the align-canvas-to-axis-scales flag for all axes.
◆ setCanvasMargin()
| void QwtPlotLayout::setCanvasMargin |
( |
int |
margin, |
|
|
int |
axisPos = -1 |
|
) |
| |
Set the canvas margin for a specific axis position.
◆ setCanvasRect()
| void QwtPlotLayout::setCanvasRect |
( |
const QRectF & |
rect | ) |
|
|
protected |
◆ setFooterRect()
| void QwtPlotLayout::setFooterRect |
( |
const QRectF & |
rect | ) |
|
|
protected |
◆ setLegendPosition() [1/2]
◆ setLegendPosition() [2/2]
Set the legend position with a specified ratio.
◆ setLegendRatio()
| void QwtPlotLayout::setLegendRatio |
( |
double |
ratio | ) |
|
Set the relative size of the legend in the plot.
◆ setLegendRect()
| void QwtPlotLayout::setLegendRect |
( |
const QRectF & |
rect | ) |
|
|
protected |
Set the geometry for the legend.
This method is intended to be used from derived layouts overloading activate()
- Parameters
-
| rect | Rectangle for the legend |
- See also
- legendRect(), activate()
◆ setScaleRect()
| void QwtPlotLayout::setScaleRect |
( |
QwtAxisId |
axisId, |
|
|
const QRectF & |
rect |
|
) |
| |
|
protected |
Set the geometry for an axis.
This method is intended to be used from derived layouts overloading activate()
- Parameters
-
| axisId | Axis |
| rect | Rectangle for the scale |
- See also
- scaleRect(), activate()
◆ setSpacing()
| void QwtPlotLayout::setSpacing |
( |
int |
spacing | ) |
|
Set the spacing between plot components.
◆ setTitleRect()
| void QwtPlotLayout::setTitleRect |
( |
const QRectF & |
rect | ) |
|
|
protected |
◆ spacing()
| int QwtPlotLayout::spacing |
( |
| ) |
const |
Get the spacing between plot components.
◆ titleRect()
| QRectF QwtPlotLayout::titleRect |
( |
| ) |
const |
Get the geometry for the title.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_layout.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_layout.cpp