12 #ifndef QWT_PLOT_ZOOMER_H
13 #define QWT_PLOT_ZOOMER_H
16 #if QT_VERSION < 0x040000
17 #include <qvaluestack.h>
22 #include "qwt_double_rect.h"
23 #include "qwt_plot_picker.h"
56 explicit QwtPlotZoomer(
int xAxis,
int yAxis,
int selectionFlags,
58 bool doReplot =
true);
62 virtual void setZoomBase(
bool doReplot =
true);
63 virtual void setZoomBase(
const QwtDoubleRect &);
65 QwtDoubleRect zoomBase()
const;
66 QwtDoubleRect zoomRect()
const;
68 virtual void setAxis(
int xAxis,
int yAxis);
70 void setMaxStackDepth(
int);
71 int maxStackDepth()
const;
73 #if QT_VERSION < 0x040000
74 const QValueStack<QwtDoubleRect> &zoomStack()
const;
75 void setZoomStack(
const QValueStack<QwtDoubleRect> &,
76 int zoomRectIndex = -1);
78 const QStack<QwtDoubleRect> &zoomStack()
const;
79 void setZoomStack(
const QStack<QwtDoubleRect> &,
80 int zoomRectIndex = -1);
82 uint zoomRectIndex()
const;
87 void moveBy(
double x,
double y);
88 virtual void move(
double x,
double y);
90 virtual void zoom(
const QwtDoubleRect &);
91 virtual void zoom(
int up);
101 void zoomed(
const QwtDoubleRect &rect);
104 virtual void rescale();
106 virtual QwtDoubleSize minZoomSize()
const;
111 virtual void begin();
112 virtual bool end(
bool ok =
true);
113 virtual bool accept(QwtPolygon &)
const;
116 void init(
int selectionFlags,
DisplayMode trackerMode,
bool doReplot);