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

Last change on this file since 4329 was 4329, 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//////////////////////////////////////////////////////////////////////////////
9class t_polarCurve : public QwtPolarCurve {
10 public:
11 t_polarCurve() {}
12 virtual ~t_polarCurve() {}
13 protected:
14 virtual void drawSymbols (QPainter* painter, const QwtSymbol& symbol,
15 const QwtScaleMap& azimuthMap,
16 const QwtScaleMap& radialMap,
17 const QPointF& pole, int from, int to) const;
18};
19
20//
21//////////////////////////////////////////////////////////////////////////////
22class t_polarPoint : public QwtPointPolar {
23 public:
24 t_polarPoint(double az, double zen, double value) : QwtPointPolar(az, zen) {
25 _value = value;
26 }
27 ~t_polarPoint() {}
28 double _value; // the third coordinate
29};
30
31//
32//////////////////////////////////////////////////////////////////////////////
33class t_polarData: public QwtSeriesData<t_polarPoint> {
34 public:
35 t_polarData(size_t size) {
36 _size = size;
37 }
38 virtual t_polarPoint sample(size_t ii) const;
39 virtual size_t size() const {return _size;}
40 virtual QRectF boundingRect() const {
41 return d_boundingRect;
42 }
43 protected:
44 size_t _size;
45};
46
47//
48//////////////////////////////////////////////////////////////////////////////
49class t_polarPlot: public QwtPolarPlot {
50 Q_OBJECT
51
52 public:
53 t_polarPlot(QWidget* = 0);
54
55 private:
56 t_polarCurve* createCurve() const;
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.