source: ntrip/branches/BNC_2.12/qwtpolar/qwt_polar_magnifier.h@ 8286

Last change on this file since 8286 was 4272, checked in by mervart, 12 years ago
File size: 1.5 KB
Line 
1/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * QwtPolar Widget Library
3 * Copyright (C) 2008 Uwe Rathmann
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the Qwt License, Version 1.0
7 *****************************************************************************/
8
9#ifndef QWT_POLAR_MAGNIFIER_H
10#define QWT_POLAR_MAGNIFIER_H 1
11
12#include "qwt_polar_global.h"
13#include "qwt_magnifier.h"
14
15class QwtPolarPlot;
16class QwtPolarCanvas;
17
18/*!
19 \brief QwtPolarMagnifier provides zooming, by magnifying in steps.
20
21 Using QwtPlotMagnifier a plot can be zoomed in/out in steps using
22 keys, the mouse wheel or moving a mouse button in vertical direction.
23
24 Together with QwtPolarPanner it is possible to implement
25 an individual navigation of the plot canvas.
26
27 \sa QwtPolarPanner, QwtPolarPlot, QwtPolarCanvas
28*/
29
30class QWT_POLAR_EXPORT QwtPolarMagnifier: public QwtMagnifier
31{
32 Q_OBJECT
33
34public:
35 explicit QwtPolarMagnifier( QwtPolarCanvas * );
36 virtual ~QwtPolarMagnifier();
37
38 void setUnzoomKey( int key, int modifiers );
39 void getUnzoomKey( int &key, int &modifiers ) const;
40
41 QwtPolarPlot *plot();
42 const QwtPolarPlot *plot() const;
43
44 QwtPolarCanvas *canvas();
45 const QwtPolarCanvas *canvas() const;
46
47protected:
48 virtual void rescale( double factor );
49 void unzoom();
50
51 virtual void widgetKeyPressEvent( QKeyEvent * );
52
53private:
54 class PrivateData;
55 PrivateData *d_data;
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.