00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_PLOT_MAGNIFIER_H
00011 #define QWT_PLOT_MAGNIFIER_H 1
00012
00013 #include "qwt_global.h"
00014 #include "qwt_magnifier.h"
00015
00016 class QwtPlotCanvas;
00017 class QwtPlot;
00018
00030 class QWT_EXPORT QwtPlotMagnifier: public QwtMagnifier
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 explicit QwtPlotMagnifier( QwtPlotCanvas * );
00036 virtual ~QwtPlotMagnifier();
00037
00038 void setAxisEnabled( int axis, bool on );
00039 bool isAxisEnabled( int axis ) const;
00040
00041 QwtPlotCanvas *canvas();
00042 const QwtPlotCanvas *canvas() const;
00043
00044 QwtPlot *plot();
00045 const QwtPlot *plot() const;
00046
00047 protected:
00048 virtual void rescale( double factor );
00049
00050 private:
00051 class PrivateData;
00052 PrivateData *d_data;
00053 };
00054
00055 #endif