|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Layout manager for parasite plots. More...
#include <qwt_parasite_plot_layout.h>
Public Member Functions | |
| QwtParasitePlotLayout () | |
| Construct a parasite plot layout . | |
| ~QwtParasitePlotLayout () | |
| Destructor . | |
| virtual void | activate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options()) override |
| Activate the layout for a parasite plot. | |
| virtual QSize | minimumSizeHint (const QwtPlot *plot) const override |
| Get minimum size hint for a parasite plot. | |
| QRectF | parasiteScaleRect (QwtAxisId aid) const |
| Get the parasite axis scale rect without offset. | |
Public Member Functions inherited from QwtPlotLayout | |
| QwtPlotLayout () | |
| Constructor. | |
| virtual | ~QwtPlotLayout () |
| Destructor. | |
| void | setCanvasMargin (int margin, int axis=-1) |
| Set the canvas margin for a specific axis position. | |
| int | canvasMargin (int axisId) const |
| Get the canvas margin for a specific axis position. | |
| void | setAlignCanvasToScales (bool) |
| Set the align-canvas-to-axis-scales flag for all axes. | |
| void | setAlignCanvasToScale (int axisId, bool) |
| Set the align-canvas-to-axis-scales setting for a specific axis. | |
| bool | alignCanvasToScale (int axisId) const |
| Get the align-canvas-to-axis-scales setting for a specific axis. | |
| void | setSpacing (int) |
| Set the spacing between plot components. | |
| int | spacing () const |
| Get the spacing between plot components. | |
| void | setLegendPosition (QwtPlot::LegendPosition pos, double ratio) |
| Set the legend position with a specified ratio. | |
| void | setLegendPosition (QwtPlot::LegendPosition pos) |
| Set the legend position. | |
| QwtPlot::LegendPosition | legendPosition () const |
| Get the legend position. | |
| void | setLegendRatio (double ratio) |
| Set the relative size of the legend in the plot. | |
| double | legendRatio () const |
| Get the relative size of the legend in the plot. | |
| virtual void | invalidate () |
| Invalidate the geometry of all components. | |
| QRectF | titleRect () const |
| Get the geometry for the title. | |
| QRectF | footerRect () const |
| Get the geometry for the footer. | |
| QRectF | legendRect () const |
| Get the geometry for the legend. | |
| QRectF | scaleRect (QwtAxisId) const |
| Get the geometry for a scale axis. | |
| QRectF | canvasRect () const |
| Get the geometry for the canvas. | |
Additional Inherited Members | |
Public Types inherited from QwtPlotLayout | |
| enum | Option { AlignScales = 0x01 , IgnoreScrollbars = 0x02 , IgnoreFrames = 0x04 , IgnoreLegend = 0x08 , IgnoreTitle = 0x10 , IgnoreFooter = 0x20 } |
| Options to configure the plot layout engine. More... | |
Protected Member Functions inherited from QwtPlotLayout | |
| 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 manager for parasite plots.
| QwtParasitePlotLayout::QwtParasitePlotLayout | ( | ) |
Construct a parasite plot layout .
| QwtParasitePlotLayout::~QwtParasitePlotLayout | ( | ) |
Destructor .
|
overridevirtual |
Activate the layout for a parasite plot.
Reimplemented from QwtPlotLayout.
|
overridevirtual |
Get minimum size hint for a parasite plot.
Reimplemented from QwtPlotLayout.
| QRectF QwtParasitePlotLayout::parasiteScaleRect | ( | QwtAxisId | aid | ) | const |
Get the parasite axis scale rect without offset.