27#ifndef QWT_PLOT_AXIS_ZOOMER_H
28#define QWT_PLOT_AXIS_ZOOMER_H
30#include "qwt_global.h"
31#include "qwt_plot_picker.h"
102 explicit QwtPlotAxisZoomer(QwtAxisId xAxis, QwtAxisId yAxis, QWidget*,
bool doReplot =
true);
108 virtual void setZoomBase(
bool doReplot =
true);
110 virtual void setZoomBase(
const QRectF&);
113 QRectF zoomBase()
const;
115 QRectF zoomRect()
const;
118 virtual void setAxes(QwtAxisId xAxis, QwtAxisId yAxis)
override;
121 void setMaxStackDepth(
int);
123 int maxStackDepth()
const;
131 uint zoomRectIndex()
const;
135 void moveBy(
double dx,
double dy);
137 virtual void moveTo(
const QPointF&);
140 virtual void zoom(
const QRectF&);
142 virtual void zoom(
int offset);
155 virtual void rescale();
158 virtual QSizeF minZoomSize()
const;
166 virtual void begin()
override;
168 virtual bool end(
bool ok =
true)
override;
170 virtual bool accept(QPolygon&)
const override;
174 void init(
bool doReplot);
Definition qwt_plot_axis_zoomer.h:35
virtual void begin()
Open a selection setting the state to active
Definition qwt_picker.cpp:1147
virtual bool accept(QPolygon &) const
Validate and fix up the selection
Definition qwt_picker.cpp:1283
virtual void widgetMouseReleaseEvent(QMouseEvent *)
Handle a mouse release event for the observed widget.
Definition qwt_picker.cpp:973
virtual void widgetKeyPressEvent(QKeyEvent *)
Handle a key press event for the observed widget.
Definition qwt_picker.cpp:1034
QwtPlotAxisZoomer provides stacked zooming for a plot widget
Definition qwt_plot_axis_zoomer.h:96
void zoomed(const QRectF &rect)
QwtPlotPicker provides selections on a plot canvas
Definition qwt_plot_picker.h:29
virtual bool end(bool ok=true) override
End the selection
Definition qwt_plot_picker.cpp:281
virtual void setAxes(QwtAxisId xAxisId, QwtAxisId yAxisId)
Set the x and y axes
Definition qwt_plot_picker.cpp:167