Rev | Line | |
---|
[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] | 9 | class 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] | 22 | class 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] | 38 | class 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.