Go to the documentation of this file.
76 return qobject_cast< QwtPolarCanvas* >( parent() );
82 return qobject_cast< QwtPolarCanvas* >( parent() );
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"
virtual ~QwtPolarMagnifier()
Destructor.
QwtPolarCanvas * canvas()
A plotting widget, displaying a polar coordinate system.
Canvas of a QwtPolarPlot.
virtual void rescale(double factor) QWT_OVERRIDE
void zoom(const QwtPointPolar &, double factor)
Translate and in/decrease the zoom factor.
A point in polar coordinates.
QwtMagnifier provides zooming, by magnifying in steps.
virtual void widgetKeyPressEvent(QKeyEvent *)
virtual void widgetKeyPressEvent(QKeyEvent *) QWT_OVERRIDE
void unzoom()
Unzoom the plot widget.
void setAutoReplot(bool tf=true)
Set or reset the autoReplot option.
virtual void replot()
Redraw the plot.
void setUnzoomKey(int key, int modifiers)
QwtPointPolar zoomPos() const
QwtPolarMagnifier(QwtPolarCanvas *)
void getUnzoomKey(int &key, int &modifiers) const
double zoomFactor() const
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46