Go to the documentation of this file.
92 w = w->parentWidget();
94 return qobject_cast< QwtPlot* >( w );
100 const QWidget* w =
canvas();
102 w = w->parentWidget();
104 return qobject_cast< const QwtPlot* >( w );
117 factor = qAbs( factor );
118 if ( factor == 1.0 || factor == 0.0 )
121 bool doReplot =
false;
135 double v1 = scaleMap.
s1();
136 double v2 = scaleMap.
s2();
146 const double center = 0.5 * ( v1 + v2 );
147 const double width_2 = 0.5 * ( v2 - v1 ) * factor;
149 v1 = center - width_2;
150 v2 = center + width_2;
171 #include "moc_qwt_plot_magnifier.cpp"
virtual void rescale(double factor) QWT_OVERRIDE
QwtPlotMagnifier(QWidget *)
double invTransform(double p) const
QWidget * canvas()
Return observed plot canvas.
virtual ~QwtPlotMagnifier()
Destructor.
void setAxisScale(QwtAxisId, double min, double max, double stepSize=0)
Disable autoscaling and specify a fixed scale for a selected axis.
void setAutoReplot(bool=true)
Set or reset the autoReplot option.
QwtMagnifier provides zooming, by magnifying in steps.
QwtPlot * plot()
Return plot widget, containing the observed plot canvas.
void setAxisEnabled(QwtAxisId, bool on)
En/Disable an axis.
double transform(double s) const
int QwtAxisId
Axis identifier.
bool isAxisEnabled(QwtAxisId) const
virtual void replot()
Redraw the plot.
const QwtTransform * transformation() const
Get the transformation.
virtual QwtScaleMap canvasMap(QwtAxisId) const
bool isValid(int axisPos)
bool isAxisEnabled[QwtAxis::AxisPositions]
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46