Changeset 5486 in ntrip for trunk/GnssCenter/monitor/monitor.cpp
- Timestamp:
- Sep 18, 2013, 2:54:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5482 r5486 76 76 _thriftClient = 0; 77 77 _results = 0; 78 _satellites = 0; 78 79 79 80 // Read Settings, Set Title, Enable/Disable Actions … … 95 96 delete _results; 96 97 } 98 if (_satellites) { 99 while (!_satellites->empty()) { 100 delete _satellites->back(); 101 _satellites->pop_back(); 102 } 103 delete _satellites; 104 } 97 105 } 98 106 … … 163 171 connect(_thriftClient, SIGNAL(message(QByteArray)), this, SLOT(slotMessage(QByteArray))); 164 172 _thriftClient->start(); 165 slotPlot Results();173 slotPlot(); 166 174 } 167 175 enableActions(); … … 202 210 // 203 211 ///////////////////////////////////////////////////////////////////////////// 204 void t_monitor:: slotPlotResults() {212 void t_monitor::putThriftSatellites(std::vector<t_thriftSatellite*>* satellites) { 205 213 QMutexLocker locker(&_mutex); 206 214 if (_satellites) { 215 while (!_satellites->empty()) { 216 delete _satellites->back(); 217 _satellites->pop_back(); 218 } 219 delete _satellites; 220 } 221 _satellites = satellites; 222 } 223 224 // 225 ///////////////////////////////////////////////////////////////////////////// 226 void t_monitor::slotPlot() { 227 QMutexLocker locker(&_mutex); 228 plotResults(); 229 plotSatellites(); 230 if (_thriftClient) { 231 QTimer::singleShot(1000, this, SLOT(slotPlotResults())); 232 } 233 } 234 235 // 236 ///////////////////////////////////////////////////////////////////////////// 237 void t_monitor::plotResults() { 207 238 if (_results) { 208 239 QList<t_worldPlot::t_point*> points; … … 232 263 } 233 264 } 234 235 if (_thriftClient) { 236 QTimer::singleShot(1000, this, SLOT(slotPlotResults())); 237 } 238 } 265 } 266 267 // 268 ///////////////////////////////////////////////////////////////////////////// 269 void t_monitor::plotSatellites() { 270 if (_satellites) { 271 } 272 }
Note:
See TracChangeset
for help on using the changeset viewer.