QwtPolarLayout(3) Qwt User's Guide QwtPolarLayout(3)

QwtPolarLayout - Layout class for QwtPolarPlot.

#include <qwt_polar_layout.h>


enum Option { IgnoreScrollbars = 0x01, IgnoreFrames = 0x02, IgnoreTitle = 0x04, IgnoreLegend = 0x08 }
Options to configure the plot layout engine. typedef QFlags< Option > Options


QwtPolarLayout ()
Constructor. virtual ~QwtPolarLayout ()
Destructor. void setLegendPosition (QwtPolarPlot::LegendPosition pos, double ratio)
Specify the position of the legend. void setLegendPosition (QwtPolarPlot::LegendPosition pos)
Specify the position of the legend. QwtPolarPlot::LegendPosition legendPosition () const
void setLegendRatio (double ratio)
double legendRatio () const
virtual void activate (const QwtPolarPlot *, const QRectF &rect, Options options=Options())
Recalculate the geometry of all components. virtual void invalidate ()
const QRectF & titleRect () const
const QRectF & legendRect () const
const QRectF & canvasRect () const


QRectF layoutLegend (Options options, QRectF &) const

Layout class for QwtPolarPlot.

Organizes the geometry for the different QwtPolarPlot components. It is used by the QwtPolar widget to organize its internal widgets or by QwtPolarRnderer to render its content to a QPaintDevice like a QPrinter, QPixmap/QImage or QSvgRenderer.

Definition at line 23 of file qwt_polar_layout.h.

An ORed combination of Option values.

Definition at line 43 of file qwt_polar_layout.h.

Options to configure the plot layout engine.

Enumerator

Ignore the dimension of the scrollbars.
Ignore all frames.
Ignore the title.
Ignore the legend.

Definition at line 28 of file qwt_polar_layout.h.

Recalculate the geometry of all components.

Parameters

plot Plot to be layout
boundingRect Rect where to place the components
options Options

See also

invalidate(), titleRect(), legendRect(), canvasRect()

Definition at line 344 of file qwt_polar_layout.cpp.

Returns

Geometry for the canvas

See also

activate(), invalidate()

Definition at line 248 of file qwt_polar_layout.cpp.

Invalidate the geometry of all components.

See also

activate()

Definition at line 257 of file qwt_polar_layout.cpp.

Find the geometry for the legend

Parameters

options Options how to layout the legend
rect Rectangle where to place the legend

Returns

Geometry for the legend

Definition at line 269 of file qwt_polar_layout.cpp.

QwtPolarPlot::LegendPosition QwtPolarLayout::legendPosition () const

Returns

Position of the legend

See also

setLegendPosition(), QwtPolarPlot::setLegendPosition(), QwtPolarPlot::legendPosition()

Definition at line 196 of file qwt_polar_layout.cpp.

Returns

The relative size of the legend in the plot.

See also

setLegendPosition()

Definition at line 219 of file qwt_polar_layout.cpp.

Returns

Geometry for the legend

See also

activate(), invalidate()

Definition at line 239 of file qwt_polar_layout.cpp.

void QwtPolarLayout::setLegendPosition (QwtPolarPlot::LegendPosition pos)

Specify the position of the legend.

Parameters

pos The legend's position. Valid values are QwtPolarPlot::LeftLegend, QwtPolarPlot::RightLegend, QwtPolarPlot::TopLegend, QwtPolarPlot::BottomLegend.

See also

QwtPolarPlot::setLegendPosition()

Definition at line 186 of file qwt_polar_layout.cpp.

void QwtPolarLayout::setLegendPosition (QwtPolarPlot::LegendPosition pos, double ratio)

Specify the position of the legend.

Parameters

pos The legend's position.
ratio Ratio between legend and the bounding rect of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.

See also

QwtPolarPlot::setLegendPosition()

Definition at line 141 of file qwt_polar_layout.cpp.

Specify the relative size of the legend in the plot

Parameters

ratio Ratio between legend and the bounding rect of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.

Definition at line 210 of file qwt_polar_layout.cpp.

Returns

Geometry for the title

See also

activate(), invalidate()

Definition at line 229 of file qwt_polar_layout.cpp.

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Sun Jul 18 2021 Version 6.2.0