9#include "qwt_polar_panner.h"
10#include "qwt_polar_plot.h"
11#include "qwt_polar_canvas.h"
12#include "qwt_scale_div.h"
13#include "qwt_point_polar.h"
19 connect(
this, SIGNAL(
panned(
int,
int)),
31 return qobject_cast< QwtPolarCanvas* >( parent() );
37 return qobject_cast< const QwtPolarCanvas* >( parent() );
71 if (
plot == NULL || ( dx == 0 && dy == 0 ) )
77 if ( map.
s1() <= map.
s2() )
118#include "moc_qwt_polar_panner.cpp"
QwtPanner provides panning of a widget.
virtual void widgetMousePressEvent(QMouseEvent *)
void panned(int dx, int dy)
A point in polar coordinates.
double radius() const
Returns the radius.
void setRadius(double)
Sets the radius to radius.
void setPoint(const QPointF &)
Canvas of a QwtPolarPlot.
QwtPolarCanvas * canvas()
virtual ~QwtPolarPanner()
Destructor.
virtual void widgetMousePressEvent(QMouseEvent *) override
QwtPolarPanner(QwtPolarCanvas *)
Create a plot panner for a polar plot canvas.
virtual void movePlot(int dx, int dy)
A plotting widget, displaying a polar coordinate system.
QwtScaleMap scaleMap(int scaleId, double radius) const
QwtPointPolar zoomPos() const
virtual void replot()
Redraw the plot.
void zoom(const QwtPointPolar &, double factor)
Translate and in/decrease the zoom factor.
double zoomFactor() const
void setAutoReplot(bool tf=true)
Set or reset the autoReplot option.
double transform(double s) const
double invTransform(double p) const