Go to the documentation of this file.
55 const QSizeF hint = plot->
legend()->sizeHint();
57 double w = qMin( hint.width(), rect.width() );
58 double h = plot->
legend()->heightForWidth( w );
62 if ( h > rect.height() )
284 if ( hint.height() > rect.height() )
345 const QRectF& boundingRect, Options options )
349 QRectF rect( boundingRect );
420 const int dim = qMin( rect.width(), rect.height() );
virtual void activate(const QwtPolarPlot *, const QRectF &rect, Options options=Options())
Recalculate the geometry of all components.
A plotting widget, displaying a polar coordinate system.
const QRectF & legendRect() const
const QRectF & canvasRect() const
QwtPolarLayout()
Constructor.
@ IgnoreTitle
Ignore the title.
struct QwtPolarLayout::LayoutData::t_legendData legend
QwtAbstractLegend * legend()
QRectF layoutLegend(Options options, QRectF &) const
const QwtText & text() const
Return the text.
@ BottomLegend
The legend will be below the canvas.
@ TopLegend
The legend will be between canvas and title.
QwtPolarLayout * plotLayout()
virtual void invalidate()
struct QwtPolarLayout::LayoutData::t_canvasData canvas
@ LeftLegend
The legend will be left from the canvas.
A class representing a text.
@ IgnoreFrames
Ignore all frames.
A Widget which displays a QwtText.
virtual bool isEmpty() const =0
void setLegendRatio(double ratio)
QwtPolarPlot::LegendPosition legendPosition() const
struct QwtPolarLayout::LayoutData::t_titleData title
QwtPolarPlot::LegendPosition legendPos
double heightForWidth(double width) const
void setFont(const QFont &)
void setLegendPosition(QwtPolarPlot::LegendPosition pos, double ratio)
Specify the position of the legend.
void init(const QwtPolarPlot *, const QRectF &rect)
const QRectF & titleRect() const
@ RightLegend
The legend will be right from the canvas.
@ IgnoreLegend
Ignore the legend.
virtual ~QwtPolarLayout()
Destructor.
QwtPolarLayout::LayoutData layoutData
QwtTextLabel * titleLabel()
@ PaintUsingTextFont
The text has an individual font.
virtual int scrollExtent(Qt::Orientation) const
bool testPaintAttribute(PaintAttribute) const
double radius() const
Returns the radius.
QwtPointPolar zoomPos() const
double legendRatio() const
QwtPolarCanvas * canvas()
double zoomFactor() const
@ IgnoreScrollbars
Ignore the dimension of the scrollbars.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46