Qwt User's Guide 6.3.0

Loading...
Searching...
No Matches
qwt_polar_layout.h
1/******************************************************************************
2 * QwtPolar Widget Library
3 * Copyright (C) 2008 Uwe Rathmann
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the Qwt License, Version 1.0
7 *****************************************************************************/
8
9#ifndef QWT_POLAR_LAYOUT_H
10#define QWT_POLAR_LAYOUT_H
11
12#include "qwt_global.h"
13#include "qwt_polar_plot.h"
14
23 class QWT_EXPORT QwtPolarLayout
24{
25 public:
26
28 enum Option
29 {
31 IgnoreScrollbars = 0x01,
32
34 IgnoreFrames = 0x02,
35
37 IgnoreTitle = 0x04,
38
40 IgnoreLegend = 0x08
41 };
42
43 Q_DECLARE_FLAGS( Options, Option )
44
45 explicit QwtPolarLayout();
46 virtual ~QwtPolarLayout();
47
48 void setLegendPosition( QwtPolarPlot::LegendPosition pos, double ratio );
49 void setLegendPosition( QwtPolarPlot::LegendPosition pos );
50 QwtPolarPlot::LegendPosition legendPosition() const;
51
52 void setLegendRatio( double ratio );
53 double legendRatio() const;
54
55 virtual void activate( const QwtPolarPlot*,
56 const QRectF& rect, Options options = Options() );
57
58 virtual void invalidate();
59
60 const QRectF& titleRect() const;
61 const QRectF& legendRect() const;
62 const QRectF& canvasRect() const;
63
64 class LayoutData;
65
66 protected:
67 QRectF layoutLegend( Options options, QRectF& ) const;
68
69 private:
70 class PrivateData;
71 PrivateData* m_data;
72};
73
74Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarLayout::Options )
75
76#endif
QwtPolarLayout
Layout class for QwtPolarPlot.
Definition qwt_polar_layout.h:24
QwtPolarLayout::Option
Option
Options to configure the plot layout engine.
Definition qwt_polar_layout.h:29
QwtPolarLayout::Options
QFlags< Option > Options
Definition qwt_polar_layout.h:43
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:47
QwtPolarPlot::LegendPosition
LegendPosition
Definition qwt_polar_plot.h:60