Changeset 5491 in ntrip for trunk/GnssCenter
- Timestamp:
- Sep 18, 2013, 3:30:43 PM (11 years ago)
- Location:
- trunk/GnssCenter/monitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5489 r5491 252 252 double lonDeg = ell[1] * 180.0 / M_PI; 253 253 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); 255 256 points.append(point); 256 257 } … … 284 285 double lonDeg = ell[1] * 180.0 / M_PI; 285 286 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); 287 289 points.append(point); 288 290 } -
trunk/GnssCenter/monitor/worldplot.cpp
r5490 r5491 73 73 _markers.clear(); 74 74 75 QColor color(220,20,60);76 77 75 QListIterator<t_point*> ip(points); 78 76 while (ip.hasNext()) { … … 81 79 if (point->_lonDeg > 180.0) point->_lonDeg -= 360.0; 82 80 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)); 85 83 QwtPlotMarker* marker = new QwtPlotMarker(); 86 84 marker->setValue(point->_lonDeg, point->_latDeg); … … 95 93 font.setPointSize(font.pointSize()*0.8); 96 94 text.setFont(font); 97 text.setColor( color);95 text.setColor(point->_color); 98 96 marker->setLabel(text); 99 97 marker->setSymbol(symbol); -
trunk/GnssCenter/monitor/worldplot.h
r5435 r5491 17 17 class t_point { 18 18 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; 20 21 _name = name; 21 22 _latDeg = latDeg; … … 23 24 } 24 25 ~t_point() {} 26 QColor _color; 25 27 QString _name; 26 28 double _latDeg;
Note:
See TracChangeset
for help on using the changeset viewer.