Changeset 5491 in ntrip for trunk/GnssCenter


Ignore:
Timestamp:
Sep 18, 2013, 3:30:43 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/monitor.cpp

    r5489 r5491  
    252252        double lonDeg = ell[1] * 180.0 / M_PI;
    253253        QString str = QString().sprintf("%d/%d", result->_nGPS, result->_nGLO);
    254         t_worldPlot::t_point* point  = new t_worldPlot::t_point(str, latDeg, lonDeg);
     254        QColor color = result->_nGPS >= 4 ? Qt::black : Qt::red;
     255        t_worldPlot::t_point* point  = new t_worldPlot::t_point(color, str, latDeg, lonDeg);
    255256        points.append(point);
    256257      }
     
    284285        double lonDeg = ell[1] * 180.0 / M_PI;
    285286        QString str   = sat->_prn.c_str();
    286         t_worldPlot::t_point* point  = new t_worldPlot::t_point(str, latDeg, lonDeg);
     287        QColor color = Qt::darkBlue;
     288        t_worldPlot::t_point* point  = new t_worldPlot::t_point(color, str, latDeg, lonDeg);
    287289        points.append(point);
    288290      }
  • trunk/GnssCenter/monitor/worldplot.cpp

    r5490 r5491  
    7373  _markers.clear();
    7474
    75   QColor color(220,20,60);
    76 
    7775  QListIterator<t_point*> ip(points);
    7876  while (ip.hasNext()) {
     
    8179    if (point->_lonDeg > 180.0) point->_lonDeg -= 360.0;
    8280 
    83     QwtSymbol* symbol = new QwtSymbol(QwtSymbol::Rect, QBrush(color),
    84                                       QPen(color), QSize(2,2));
     81    QwtSymbol* symbol = new QwtSymbol(QwtSymbol::Rect, QBrush(point->_color),
     82                                      QPen(point->_color), QSize(2,2));
    8583    QwtPlotMarker* marker = new QwtPlotMarker();
    8684    marker->setValue(point->_lonDeg, point->_latDeg);
     
    9593    font.setPointSize(font.pointSize()*0.8);
    9694    text.setFont(font);
    97     text.setColor(color);
     95    text.setColor(point->_color);
    9896    marker->setLabel(text);
    9997    marker->setSymbol(symbol);
  • trunk/GnssCenter/monitor/worldplot.h

    r5435 r5491  
    1717  class t_point {
    1818   public:
    19     t_point(const QString& name, double latDeg, double lonDeg) {
     19    t_point(const QColor& color, const QString& name, double latDeg, double lonDeg) {
     20      _color  = color;
    2021      _name   = name;
    2122      _latDeg = latDeg;
     
    2324    }
    2425    ~t_point() {}
     26    QColor  _color;
    2527    QString _name;
    2628    double  _latDeg;
Note: See TracChangeset for help on using the changeset viewer.