Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QwtPolarLayout Class Reference

Layout class for QwtPolarPlot. More...

#include <qwt_polar_layout.h>

Classes

class  LayoutData
 
class  PrivateData
 

Public Types

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

Public Member Functions

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

Protected Member Functions

QRectF layoutLegend (Options options, QRectF &) const
 

Private Attributes

PrivateDatam_data
 

Detailed Description

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.

Member Enumeration Documentation

◆ Option

Options to configure the plot layout engine.

Enumerator
IgnoreScrollbars 

Ignore the dimension of the scrollbars.

IgnoreFrames 

Ignore all frames.

IgnoreTitle 

Ignore the title.

IgnoreLegend 

Ignore the legend.

Definition at line 34 of file qwt_polar_layout.h.

Constructor & Destructor Documentation

◆ QwtPolarLayout()

QwtPolarLayout::QwtPolarLayout ( )
explicit

Constructor.

Definition at line 114 of file qwt_polar_layout.cpp.

◆ ~QwtPolarLayout()

QwtPolarLayout::~QwtPolarLayout ( )
virtual

Destructor.

Definition at line 123 of file qwt_polar_layout.cpp.

Member Function Documentation

◆ activate()

void QwtPolarLayout::activate ( const QwtPolarPlot plot,
const QRectF &  boundingRect,
Options  options = Options() 
)
virtual

Recalculate the geometry of all components.

Parameters
plotPlot to be layout
boundingRectRect where to place the components
optionsOptions
See also
invalidate(), titleRect(), legendRect(), canvasRect()

Definition at line 344 of file qwt_polar_layout.cpp.

◆ canvasRect()

const QRectF & QwtPolarLayout::canvasRect ( ) const
Returns
Geometry for the canvas
See also
activate(), invalidate()

Definition at line 248 of file qwt_polar_layout.cpp.

◆ invalidate()

void QwtPolarLayout::invalidate ( )
virtual

Invalidate the geometry of all components.

See also
activate()

Definition at line 257 of file qwt_polar_layout.cpp.

◆ layoutLegend()

QRectF QwtPolarLayout::layoutLegend ( Options  options,
QRectF &  rect 
) const
protected

Find the geometry for the legend

Parameters
optionsOptions how to layout the legend
rectRectangle where to place the legend
Returns
Geometry for the legend

Definition at line 269 of file qwt_polar_layout.cpp.

◆ legendPosition()

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.

◆ legendRatio()

double QwtPolarLayout::legendRatio ( ) const
Returns
The relative size of the legend in the plot.
See also
setLegendPosition()

Definition at line 219 of file qwt_polar_layout.cpp.

◆ legendRect()

const QRectF & QwtPolarLayout::legendRect ( ) const
Returns
Geometry for the legend
See also
activate(), invalidate()

Definition at line 239 of file qwt_polar_layout.cpp.

◆ setLegendPosition() [1/2]

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

Specify the position of the legend.

Parameters
posThe 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.

◆ setLegendPosition() [2/2]

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

Specify the position of the legend.

Parameters
posThe legend's position.
ratioRatio 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.

◆ setLegendRatio()

void QwtPolarLayout::setLegendRatio ( double  ratio)

Specify the relative size of the legend in the plot

Parameters
ratioRatio 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.

◆ titleRect()

const QRectF & QwtPolarLayout::titleRect ( ) const
Returns
Geometry for the title
See also
activate(), invalidate()

Definition at line 229 of file qwt_polar_layout.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtPolarLayout::m_data
private

Definition at line 76 of file qwt_polar_layout.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51