QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QwtParasitePlotLayout Class Reference

Layout manager for parasite plots. More...

#include <qwt_parasite_plot_layout.h>

Inheritance diagram for QwtParasitePlotLayout:
QwtPlotLayout

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.
 
QwtPlotLayoutEnginelayoutEngine ()
 
void doActivate (const QwtPlot *plot, const QRectF &plotRect, Options options=Options())
 QwtPlotLayout::activate的具体实现
 

Detailed Description

Layout manager for parasite plots.

Constructor & Destructor Documentation

◆ QwtParasitePlotLayout()

QwtParasitePlotLayout::QwtParasitePlotLayout ( )

Construct a parasite plot layout .

◆ ~QwtParasitePlotLayout()

QwtParasitePlotLayout::~QwtParasitePlotLayout ( )

Destructor .

Member Function Documentation

◆ activate()

void QwtParasitePlotLayout::activate ( const QwtPlot plot,
const QRectF &  plotRect,
Options  options = Options() 
)
overridevirtual

Activate the layout for a parasite plot.

Reimplemented from QwtPlotLayout.

◆ minimumSizeHint()

QSize QwtParasitePlotLayout::minimumSizeHint ( const QwtPlot plot) const
overridevirtual

Get minimum size hint for a parasite plot.

Reimplemented from QwtPlotLayout.

◆ parasiteScaleRect()

QRectF QwtParasitePlotLayout::parasiteScaleRect ( QwtAxisId  aid) const

Get the parasite axis scale rect without offset.


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