Rev | Line | |
---|
[5419] | 1 | #ifndef GnssCenter_WORLDPLOT_H
|
---|
| 2 | #define GnssCenter_WORLDPLOT_H
|
---|
| 3 |
|
---|
| 4 | #include <qwt_plot.h>
|
---|
| 5 |
|
---|
| 6 | class QwtPlotZoomer;
|
---|
[5435] | 7 | class QwtPlotMarker;
|
---|
[5419] | 8 |
|
---|
| 9 | namespace GnssCenter {
|
---|
| 10 |
|
---|
| 11 | class t_worldPlot : public QwtPlot {
|
---|
| 12 | Q_OBJECT
|
---|
| 13 | public:
|
---|
| 14 | t_worldPlot();
|
---|
| 15 | ~t_worldPlot();
|
---|
[5435] | 16 |
|
---|
| 17 | class t_point {
|
---|
| 18 | public:
|
---|
| 19 | t_point(const QString& name, double latDeg, double lonDeg) {
|
---|
| 20 | _name = name;
|
---|
| 21 | _latDeg = latDeg;
|
---|
| 22 | _lonDeg = lonDeg;
|
---|
| 23 | }
|
---|
| 24 | ~t_point() {}
|
---|
| 25 | QString _name;
|
---|
| 26 | double _latDeg;
|
---|
| 27 | double _lonDeg;
|
---|
| 28 | };
|
---|
[5419] | 29 |
|
---|
| 30 | public slots:
|
---|
[5435] | 31 | void slotNewPoints(const QList<t_point*>& points);
|
---|
[5419] | 32 | void slotPrint();
|
---|
| 33 |
|
---|
| 34 | private:
|
---|
[5435] | 35 | QwtPlotZoomer* _zoomer;
|
---|
| 36 | QList<QwtPlotMarker*> _markers;
|
---|
| 37 |
|
---|
[5419] | 38 | };
|
---|
| 39 |
|
---|
| 40 | } // namespace GnssCenter
|
---|
| 41 |
|
---|
| 42 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.