source: ntrip/trunk/BNC/src/rinex/polarplot.h@ 4320

Last change on this file since 4320 was 4320, checked in by mervart, 12 years ago
File size: 1.5 KB
Line 
1
2#ifndef POLARPLOT_H
3#define POLARPLOT_H
4
5#include <qwt_polar_plot.h>
6#include <qwt_polar_curve.h>
7
8//
9//////////////////////////////////////////////////////////////////////////////
10class t_polarCurve : public QwtPolarCurve {
11 public:
12 t_polarCurve();
13 virtual ~t_polarCurve();
14 protected:
15 virtual void drawSymbols (QPainter* painter, const QwtSymbol& symbol,
16 const QwtScaleMap& azimuthMap,
17 const QwtScaleMap& radialMap,
18 const QPointF& pole, int from, int to) const;
19};
20
21//
22//////////////////////////////////////////////////////////////////////////////
23class t_polarPoint : public QwtPointPolar {
24 public:
25 t_polarPoint(double azimuth, double zenith) : QwtPointPolar(azimuth, zenith) {}
26 ~t_polarPoint() {}
27 double zz; // the third coordinate
28};
29
30//
31//////////////////////////////////////////////////////////////////////////////
32class t_polarData: public QwtSeriesData<t_polarPoint> {
33 public:
34 t_polarData(size_t size);
35 virtual t_polarPoint sample(size_t ii) const;
36 virtual size_t size() const {return _size;}
37 virtual QRectF boundingRect() const;
38 protected:
39 QwtInterval _zenithInterval;
40 QwtInterval _azimuthInterval;
41 size_t _size;
42};
43
44//
45//////////////////////////////////////////////////////////////////////////////
46class t_polarPlot: public QwtPolarPlot {
47 Q_OBJECT
48
49 public:
50 t_polarPlot(QWidget* = 0);
51 ~t_polarPlot();
52
53 public slots:
54
55 private:
56 t_polarCurve* createCurve() const;
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.