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
Abstract base class for legend widgets.
Definition qwt_abstract_legend.h:57
A class representing an interval.
Definition qwt_interval.h:45
A point in polar coordinates.
Definition qwt_point_polar.h:52
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:36
A dictionary for polar plot items.
Definition qwt_polar_itemdict.h:38
Base class for items on a polar plot.
Definition qwt_polar_item.h:44
Layout class for QwtPolarPlot.
Definition qwt_polar_layout.h:33
A plotting widget, displaying a polar coordinate system.
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
Position of the legend, relative to the canvas.
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
A class for drawing round scales.
Definition qwt_round_scale_draw.h:58
A class representing a scale division/表示刻度划分的类
Definition qwt_scale_div.h:53
Base class for scale engines.
Definition qwt_scale_engine.h:76
A scale map.
Definition qwt_scale_map.h:52
A Widget which displays a QwtText.
Definition qwt_text_label.h:55
A class representing a text.
Definition qwt_text.h:93