112 const int key =
event->key();
113 const int state =
event->modifiers();
131 factor = qAbs( factor );
132 if ( factor == 1.0 || factor == 0.0 )
140 double newZoomFactor = plt->
zoomFactor() * factor;
142 if ( newZoomFactor >= 1.0 )
150 plt->
zoom( zoomPos, newZoomFactor );
171 #include "moc_qwt_polar_magnifier.cpp"
A plotting widget, displaying a polar coordinate system.
double zoomFactor() const
A point in polar coordinates.
virtual void rescale(double factor) QWT_OVERRIDE
QwtPointPolar zoomPos() const
void getUnzoomKey(int &key, int &modifiers) const
QwtMagnifier provides zooming, by magnifying in steps.
void setAutoReplot(bool tf=true)
Set or reset the autoReplot option.
virtual void widgetKeyPressEvent(QKeyEvent *) QWT_OVERRIDE
void zoom(const QwtPointPolar &, double factor)
Translate and in/decrease the zoom factor.
QwtPolarCanvas * canvas()
Canvas of a QwtPolarPlot.
void unzoom()
Unzoom the plot widget.
void setUnzoomKey(int key, int modifiers)
QwtPolarMagnifier(QwtPolarCanvas *)
virtual void widgetKeyPressEvent(QKeyEvent *)
virtual void replot()
Redraw the plot.
virtual ~QwtPolarMagnifier()
Destructor.