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

Last change on this file since 4331 was 4331, checked in by mervart, 12 years ago
File size: 1.2 KB
RevLine 
[4302]1
2#ifndef POLARPLOT_H
3#define POLARPLOT_H
4
5#include <qwt_polar_plot.h>
[4314]6#include <qwt_polar_curve.h>
[4320]7//
8//////////////////////////////////////////////////////////////////////////////
[4316]9class t_polarCurve : public QwtPolarCurve {
10 public:
[4321]11 t_polarCurve() {}
12 virtual ~t_polarCurve() {}
[4316]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
[4320]20//
21//////////////////////////////////////////////////////////////////////////////
[4331]22class t_polarData: public QwtSeriesData<QwtPointPolar> {
[4320]23 public:
[4321]24 t_polarData(size_t size) {
25 _size = size;
26 }
[4331]27 virtual QwtPointPolar sample(size_t ii) const;
[4320]28 virtual size_t size() const {return _size;}
[4321]29 virtual QRectF boundingRect() const {
30 return d_boundingRect;
31 }
[4320]32 protected:
[4322]33 size_t _size;
[4320]34};
35
36//
37//////////////////////////////////////////////////////////////////////////////
[4302]38class t_polarPlot: public QwtPolarPlot {
39 Q_OBJECT
40
41 public:
42 t_polarPlot(QWidget* = 0);
43
44 private:
[4316]45 t_polarCurve* createCurve() const;
[4302]46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.