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"
50 Q_PROPERTY( QBrush plotBackground READ plotBackground WRITE setPlotBackground )
51 Q_PROPERTY(
double azimuthOrigin READ azimuthOrigin WRITE setAzimuthOrigin )
89 void setTitle(
const QString& );
90 void setTitle(
const QwtText& );
97 void setAutoReplot(
bool tf =
true );
98 bool autoReplot()
const;
100 void setAutoScale(
int scaleId );
101 bool hasAutoScale(
int scaleId )
const;
103 void setScaleMaxMinor(
int scaleId,
int maxMinor );
104 int scaleMaxMinor(
int scaleId )
const;
106 int scaleMaxMajor(
int scaleId )
const;
107 void setScaleMaxMajor(
int scaleId,
int maxMajor );
113 void setScale(
int scaleId,
double min,
double max,
double step = 0 );
115 void setScaleDiv(
int scaleId,
const QwtScaleDiv& );
119 QwtScaleMap scaleMap(
int scaleId,
double radius )
const;
122 void updateScale(
int scaleId );
124 double azimuthOrigin()
const;
130 double zoomFactor()
const;
137 void setPlotBackground (
const QBrush& c );
138 const QBrush& plotBackground()
const;
140 virtual void drawCanvas( QPainter*,
const QRectF& )
const;
145 LegendPosition = RightLegend,
double ratio = -1.0 );
158 QRectF plotRect()
const;
159 QRectF plotRect(
const QRectF& )
const;
161 int plotMarginHint()
const;
164 virtual QwtPolarItem* infoToItem(
const QVariant& )
const;
194 virtual void replot();
196 void setAzimuthOrigin(
double );
199 virtual bool event( QEvent* ) QWT_OVERRIDE;
200 virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
202 virtual void updateLayout();
204 virtual void drawItems( QPainter* painter,
206 const QPointF& pole,
double radius,
207 const QRectF& canvasRect )
const;
213 void initPlot(
const QwtText& );
Definition qwt_dyngrid_layout.h:33
Abstract base class for legend widgets.
Definition qwt_abstract_legend.h:50
A class representing an interval.
Definition qwt_interval.h:40
A point in polar coordinates.
Definition qwt_point_polar.h:46
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:28
A dictionary for polar plot items.
Definition qwt_polar_itemdict.h:29
Base class for items on a polar plot.
Definition qwt_polar_item.h:38
Layout class for QwtPolarPlot.
Definition qwt_polar_layout.h:24
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:47
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:60
@ BottomLegend
The legend will be below the canvas.
Definition qwt_polar_plot.h:68
@ LeftLegend
The legend will be left from the canvas.
Definition qwt_polar_plot.h:62
@ TopLegend
The legend will be between canvas and title.
Definition qwt_polar_plot.h:71
@ RightLegend
The legend will be right from the canvas.
Definition qwt_polar_plot.h:65
A class for drawing round scales.
Definition qwt_round_scale_draw.h:49
A class representing a scale division/表示刻度划分的类
Definition qwt_scale_div.h:53
Base class for scale engines./刻度引擎的基类
Definition qwt_scale_engine.h:67
A scale map.
Definition qwt_scale_map.h:44
A Widget which displays a QwtText.
Definition qwt_text_label.h:44
A class representing a text.
Definition qwt_text.h:69