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"
17#include "qwt_point_polar.h"
49 Q_PROPERTY(QBrush plotBackground READ plotBackground WRITE setPlotBackground)
50 Q_PROPERTY(
double azimuthOrigin READ azimuthOrigin WRITE setAzimuthOrigin)
91 void setTitle(
const QString&);
104 void setAutoReplot(
bool tf =
true);
106 bool autoReplot()
const;
109 void setAutoScale(
int scaleId);
111 bool hasAutoScale(
int scaleId)
const;
114 void setScaleMaxMinor(
int scaleId,
int maxMinor);
116 int scaleMaxMinor(
int scaleId)
const;
119 int scaleMaxMajor(
int scaleId)
const;
121 void setScaleMaxMajor(
int scaleId,
int maxMajor);
131 void setScale(
int scaleId,
double min,
double max,
double step = 0);
141 QwtScaleMap scaleMap(
int scaleId,
double radius)
const;
146 void updateScale(
int scaleId);
149 double azimuthOrigin()
const;
159 double zoomFactor()
const;
169 void setPlotBackground(
const QBrush& c);
171 const QBrush& plotBackground()
const;
174 void setBackgroundColor(
const QColor& c);
176 QColor backgroundColor()
const;
179 virtual void drawCanvas(QPainter*,
const QRectF&)
const;
184 void insertLegend(
QwtAbstractLegend*, LegendPosition = RightLegend,
double ratio = -1.0);
205 QRectF plotRect()
const;
207 QRectF plotRect(
const QRectF&)
const;
210 int plotMarginHint()
const;
215 virtual QwtPolarItem* infoToItem(
const QVariant&)
const;
240 virtual void replot();
244 void setAzimuthOrigin(
double);
248 virtual bool event(QEvent*)
override;
250 virtual void resizeEvent(QResizeEvent*)
override;
253 virtual void updateLayout();
256 virtual void drawItems(QPainter* painter,
261 const QRectF& canvasRect)
const;
Definition qwt_raster_data.h:38
Abstract base class for legend widgets
Definition qwt_abstract_legend.h:47
A class representing an interval
Definition qwt_interval.h:39
A point in polar coordinates
Definition qwt_point_polar.h:45
Canvas of a QwtPolarPlot
Definition qwt_polar_canvas.h:26
A dictionary for polar plot items
Definition qwt_polar_itemdict.h:28
Base class for items on a polar plot
Definition qwt_polar_item.h:35
Layout class for QwtPolarPlot
Definition qwt_polar_layout.h:23
A plotting widget, displaying a polar coordinate system
Definition qwt_polar_plot.h:46
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:58
@ BottomLegend
The legend will be below the canvas
Definition qwt_polar_plot.h:66
@ LeftLegend
The legend will be left from the canvas
Definition qwt_polar_plot.h:60
@ TopLegend
The legend will be between canvas and title
Definition qwt_polar_plot.h:69
@ RightLegend
The legend will be right from the canvas
Definition qwt_polar_plot.h:63
A class for drawing round scales
Definition qwt_round_scale_draw.h:47
A class representing a scale division
Definition qwt_scale_div.h:47
Base class for scale engines
Definition qwt_scale_engine.h:62
A scale map
Definition qwt_scale_map.h:44
A Widget which displays a QwtText
Definition qwt_text_label.h:47
A class representing a text
Definition qwt_text.h:70