QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
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
22class QWT_EXPORT QwtPolarLayout
23{
24public:
26 enum Option
27 {
29 IgnoreScrollbars = 0x01,
30
32 IgnoreFrames = 0x02,
33
35 IgnoreTitle = 0x04,
36
38 IgnoreLegend = 0x08
39 };
40
41 Q_DECLARE_FLAGS(Options, Option)
42
43
44 explicit QwtPolarLayout();
46 virtual ~QwtPolarLayout();
47
49 void setLegendPosition(QwtPolarPlot::LegendPosition pos, double ratio);
51 void setLegendPosition(QwtPolarPlot::LegendPosition pos);
53 QwtPolarPlot::LegendPosition legendPosition() const;
54
56 void setLegendRatio(double ratio);
58 double legendRatio() const;
59
61 virtual void activate(const QwtPolarPlot*, const QRectF& rect, Options options = Options());
62
64 virtual void invalidate();
65
67 const QRectF& titleRect() const;
69 const QRectF& legendRect() const;
71 const QRectF& canvasRect() const;
72
73 class LayoutData;
74
75protected:
76 QRectF layoutLegend(Options options, QRectF&) const;
77
78private:
79 QWT_DECLARE_PRIVATE(QwtPolarLayout)
80};
81
82Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPolarLayout::Options)
83
84#endif
Definition qwt_polar_layout.cpp:17
Layout class for QwtPolarPlot
Definition qwt_polar_layout.h:23
Option
Options to configure the plot layout engine
Definition qwt_polar_layout.h:27
virtual ~QwtPolarLayout()
Destructor
A plotting widget, displaying a polar coordinate system
Definition qwt_polar_plot.h:46
LegendPosition
Position of the legend, relative to the canvas
Definition qwt_polar_plot.h:58