QwtPolarLayout Class Reference

Layout class for QwtPolarPlot. More...

#include <qwt_polar_layout.h>

List of all members.

Public Types

enum  Options {
  IgnoreScrollbars = 1,
  IgnoreFrames = 2,
  IgnoreTitle = 4,
  IgnoreLegend = 8
}

Public Member Functions

 QwtPolarLayout ()
virtual ~QwtPolarLayout ()
void setLegendPosition (QwtPolarPlot::LegendPosition pos, double ratio)
void setLegendPosition (QwtPolarPlot::LegendPosition pos)
QwtPolarPlot::LegendPosition legendPosition () const
void setLegendRatio (double ratio)
double legendRatio () const
virtual QSize minimumSizeHint (const QwtPolarPlot *) const
virtual void activate (const QwtPolarPlot *, const QRect &rect, int options=0)
virtual void invalidate ()
const QRect & titleRect () const
const QRect & legendRect () const
const QRect & canvasRect () const

Protected Member Functions

QRect layoutLegend (int options, const QRect &) const

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 QwtPolarPlot::renderTo() to render its content to a QPaintDevice like a QPrinter, QPixmap/QImage or QSvgRenderer.


Member Enumeration Documentation

Options to configure the plot layout engine

  • IgnoreScrollbars
    Ignore the dimension of the scrollbars. There are no scrollbars, when the plot is rendered to a paint device (QwtPolarPlot::renderTo() ).
  • IgnoreFrames
    Ignore all frames. QwtPolarPlot::renderTo() doesn't paint them.
  • IgnoreTitle
    Ignore the title.
  • IgnoreLegend
    Ignore the legend.

Constructor & Destructor Documentation

QwtPolarLayout::QwtPolarLayout (  )  [explicit]

Constructor.

QwtPolarLayout::~QwtPolarLayout (  )  [virtual]

Destructor.


Member Function Documentation

void QwtPolarLayout::activate ( const QwtPolarPlot plot,
const QRect &  boundingRect,
int  options = 0 
) [virtual]

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()
const QRect & QwtPolarLayout::canvasRect (  )  const
Returns:
Geometry for the canvas
See also:
activate(), invalidate()
void QwtPolarLayout::invalidate (  )  [virtual]

Invalidate the geometry of all components.

See also:
activate()
QRect QwtPolarLayout::layoutLegend ( int  options,
const QRect &  rect 
) const [protected]

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
QwtPolarPlot::LegendPosition QwtPolarLayout::legendPosition (  )  const
Returns:
Position of the legend
See also:
setLegendPosition(), QwtPolarPlot::setLegendPosition(), QwtPolarPlot::legendPosition()
double QwtPolarLayout::legendRatio (  )  const
Returns:
The relative size of the legend in the plot.
See also:
setLegendPosition()
const QRect & QwtPolarLayout::legendRect (  )  const
Returns:
Geometry for the legend
See also:
activate(), invalidate()
QSize QwtPolarLayout::minimumSizeHint ( const QwtPolarPlot  )  const [virtual]

Return a minimum size hint.

See also:
QwtPolarPlot::minimumSizeHint()
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()
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 shrinked 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()
void QwtPolarLayout::setLegendRatio ( double  ratio  ) 

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 shrinked 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.
const QRect & QwtPolarLayout::titleRect (  )  const
Returns:
Geometry for the title
See also:
activate(), invalidate()

Generated on 21 Feb 2013 for Qwt Polar User's Guide by  doxygen 1.6.1