Uwe Rathmann | 28 Apr 21:00

Re: clear zoom stack

On Monday 28 April 2008 13:34, Gianni Ambrosio wrote:

> I need to synchronize several QwtPlot objects. To do that I basically
> call a zoom(rect). But since the plots may also have an independent zoom
> I cannot live with the actual zoom stack during synchronization. That
> means I have to clear the previous zoom stack.

What about zoomer->setZoomBase(false); ?

> - zoomer->zoom(0)
> - set the flag to true to reset the default behaviour

The zoomer always uses QwtPlotZoomer::rescale() to change the axis scales. 
This should be a better place for such a flag.

Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane