Qwt User's Guide: qwt_plot_magnifier.h Source File

- Main Page
- Related Pages
- Classes
- Files

- File List

# qwt_plot_magnifier.h

    00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
    00002  * Qwt Widget Library
    00003  * Copyright (C) 1997   Josef Wilgen
    00004  * Copyright (C) 2002   Uwe Rathmann
    00005  *
    00006  * This library is free software; you can redistribute it and/or
    00007  * modify it under the terms of the Qwt License, Version 1.0
    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