5#ifndef QWT_PLOT_CANVAS_ZOOMER_H
6#define QWT_PLOT_CANVAS_ZOOMER_H
8#include "qwt_canvas_picker.h"
9#include "qwt_axis_id.h"
10#include "qwt_interval.h"
51 QPointer< QwtPlot > plot;
93 virtual void setZoomBase(
bool doReplot =
true);
96 void setAutoReplot(
bool on =
true);
99 bool isAutoReplot()
const;
108 void setMaxStackDepth(
int);
111 int maxStackDepth()
const;
117 uint zoomStateIndex()
const;
121 virtual void zoom(
int offset);
134 virtual void rescale();
136 virtual void widgetMouseReleaseEvent(QMouseEvent*)
override;
137 virtual void widgetKeyPressEvent(QKeyEvent*)
override;
139 virtual void begin()
override;
140 virtual bool end(
bool ok =
true)
override;
141 virtual bool accept(QPolygon&)
const override;
144 void init(
bool doReplot);
148 void moveCurrentState(
double dx,
double dy);
Definition qwt_raster_data.h:38
Definition qwt_plot_axis_zoomer.h:35
Base picker class specifically for canvas
Definition qwt_canvas_picker.h:20
A class representing an interval
Definition qwt_interval.h:39
QwtPlotCanvasZoomer provides zooming for all axes of a plot canvas
Definition qwt_plot_canvas_zoomer.h:82
void zoomed(const QList< QwtPlotCanvasZoomState > &state)
Signal emitted when the plot has been zoomed in or out
A 2-D plotting widget
Definition qwt_plot.h:99
Struct that stores zoom states for all four axes
Definition qwt_plot_canvas_zoomer.h:23