9#ifndef QWT_POLAR_PLOT_H
10#define QWT_POLAR_PLOT_H
12#include "qwt_global.h"
14#include "qwt_polar_itemdict.h"
15#include "qwt_interval.h"
16#include "qwt_scale_map.h"
64 Q_PROPERTY(QBrush plotBackground READ plotBackground WRITE setPlotBackground)
65 Q_PROPERTY(
double azimuthOrigin READ azimuthOrigin WRITE setAzimuthOrigin)
122 void setTitle(
const QString&);
135 void setAutoReplot(
bool tf =
true);
137 bool autoReplot()
const;
140 void setAutoScale(
int scaleId);
142 bool hasAutoScale(
int scaleId)
const;
145 void setScaleMaxMinor(
int scaleId,
int maxMinor);
147 int scaleMaxMinor(
int scaleId)
const;
150 int scaleMaxMajor(
int scaleId)
const;
152 void setScaleMaxMajor(
int scaleId,
int maxMajor);
162 void setScale(
int scaleId,
double min,
double max,
double step = 0);
172 QwtScaleMap scaleMap(
int scaleId,
double radius)
const;
177 void updateScale(
int scaleId);
180 double azimuthOrigin()
const;
190 double zoomFactor()
const;
200 void setPlotBackground(
const QBrush& c);
202 const QBrush& plotBackground()
const;
205 virtual void drawCanvas(QPainter*,
const QRectF&)
const;
210 void insertLegend(
QwtAbstractLegend*, LegendPosition = RightLegend,
double ratio = -1.0);
231 QRectF plotRect()
const;
233 QRectF plotRect(
const QRectF&)
const;
236 int plotMarginHint()
const;
241 virtual QwtPolarItem* infoToItem(
const QVariant&)
const;
269 virtual void replot();
273 void setAzimuthOrigin(
double);
277 virtual bool event(QEvent*)
override;
279 virtual void resizeEvent(QResizeEvent*)
override;
282 virtual void updateLayout();
285 virtual void drawItems(QPainter* painter,
290 const QRectF& canvasRect)
const;
Definition qwt_dyngrid_layout.h:33
图例控件的抽象基类
Definition qwt_abstract_legend.h:57
表示区间的类
Definition qwt_interval.h:45
极坐标点
Definition qwt_point_polar.h:52
QwtPolarPlot 的画布
Definition qwt_polar_canvas.h:36
极坐标绘图项的字典
Definition qwt_polar_itemdict.h:38
极坐标绘图项的基类
Definition qwt_polar_item.h:44
QwtPolarPlot 的布局类
Definition qwt_polar_layout.h:33
显示极坐标系的绘图控件
Definition qwt_polar_plot.h:61
void layoutChanged()
A signal that is emitted, whenever the layout of the plot has been recalculated 当绘图的布局重新计算时发出的信号
void itemAttached(QwtPolarItem *plotItem, bool on)
A signal indicating, that an item has been attached/detached 表示绘图项已附加/分离的信号
void legendDataChanged(const QVariant &itemInfo, const QList< QwtLegendData > &data)
A signal with the attributes how to update the legend entries for a plot item 包含如何更新绘图项图例条目属性的信号
LegendPosition
图例相对于画布的位置
Definition qwt_polar_plot.h:80
@ BottomLegend
The legend will be below the canvas
Definition qwt_polar_plot.h:88
@ LeftLegend
The legend will be left from the canvas
Definition qwt_polar_plot.h:82
@ TopLegend
The legend will be between canvas and title
Definition qwt_polar_plot.h:91
@ RightLegend
The legend will be right from the canvas
Definition qwt_polar_plot.h:85
用于绘制圆形刻度的类
Definition qwt_round_scale_draw.h:58
A class representing a scale division/表示刻度划分的类
Definition qwt_scale_div.h:53
刻度引擎的基类
Definition qwt_scale_engine.h:76
刻度映射
Definition qwt_scale_map.h:52
显示 QwtText 的控件
Definition qwt_text_label.h:55
表示文本的类
Definition qwt_text.h:93