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:
|
---|
[5491] | 19 | t_point(const QColor& color, const QString& name, double latDeg, double lonDeg) {
|
---|
| 20 | _color = color;
|
---|
[5435] | 21 | _name = name;
|
---|
| 22 | _latDeg = latDeg;
|
---|
| 23 | _lonDeg = lonDeg;
|
---|
| 24 | }
|
---|
| 25 | ~t_point() {}
|
---|
[5491] | 26 | QColor _color;
|
---|
[5435] | 27 | QString _name;
|
---|
| 28 | double _latDeg;
|
---|
| 29 | double _lonDeg;
|
---|
| 30 | };
|
---|
[5419] | 31 |
|
---|
| 32 | public slots:
|
---|
[5435] | 33 | void slotNewPoints(const QList<t_point*>& points);
|
---|
[5419] | 34 | void slotPrint();
|
---|
| 35 |
|
---|
| 36 | private:
|
---|
[5435] | 37 | QwtPlotZoomer* _zoomer;
|
---|
| 38 | QList<QwtPlotMarker*> _markers;
|
---|
| 39 |
|
---|
[5419] | 40 | };
|
---|
| 41 |
|
---|
| 42 | } // namespace GnssCenter
|
---|
| 43 |
|
---|
| 44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.