QWT API (中文) 7.0.1
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
32class QWT_EXPORT QwtPolarLayout
33{
34 public:
35
37 enum Option
38 {
40 IgnoreScrollbars = 0x01,
41
43 IgnoreFrames = 0x02,
44
46 IgnoreTitle = 0x04,
47
49 IgnoreLegend = 0x08
50 };
51
52 Q_DECLARE_FLAGS( Options, Option )
53
54
55 explicit QwtPolarLayout();
57 virtual ~QwtPolarLayout();
58
60 void setLegendPosition( QwtPolarPlot::LegendPosition pos, double ratio );
62 void setLegendPosition( QwtPolarPlot::LegendPosition pos );
64 QwtPolarPlot::LegendPosition legendPosition() const;
65
67 void setLegendRatio( double ratio );
69 double legendRatio() const;
70
72 virtual void activate( const QwtPolarPlot*,
73 const QRectF& rect, Options options = Options() );
74
76 virtual void invalidate();
77
79 const QRectF& titleRect() const;
81 const QRectF& legendRect() const;
83 const QRectF& canvasRect() const;
84
85 class LayoutData;
86
87 protected:
88 QRectF layoutLegend( Options options, QRectF& ) const;
89
90 private:
91 class PrivateData;
92 PrivateData* m_data;
93};
94
95Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarLayout::Options )
96
97#endif
QwtPolarPlot 的布局类
Definition qwt_polar_layout.h:33
Option
Options to configure the plot layout engine
Definition qwt_polar_layout.h:38
显示极坐标系的绘图控件
Definition qwt_polar_plot.h:61
LegendPosition
图例相对于画布的位置
Definition qwt_polar_plot.h:80