Changeset 8558 in ntrip
- Timestamp:
- Dec 12, 2018, 3:28:46 PM (6 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r8557 r8558 560 560 const t_qcFrq& qcFrq = qcSat._qcFrq[iFrq]; 561 561 if (QString(it1.value()[ii]) == qcFrq._rnxType2ch.left(1)) { 562 dataMP._data<< (new t_polarPoint(qcSat._azDeg, 90.0 - qcSat._eleDeg, qcFrq._stdMP));563 dataSN._data<< (new t_polarPoint(qcSat._azDeg, 90.0 - qcSat._eleDeg, qcFrq._SNR));562 (*dataMP._data) << (new t_polarPoint(qcSat._azDeg, 90.0 - qcSat._eleDeg, qcFrq._stdMP)); 563 (*dataSN._data) << (new t_polarPoint(qcSat._azDeg, 90.0 - qcSat._eleDeg, qcFrq._SNR)); 564 564 } 565 565 } … … 593 593 while (it.hasNext()) { 594 594 const t_skyPlotData& plotData = it.next(); 595 const QVector<t_polarPoint*> &data = plotData._data;596 for (int ii = 0; ii < data .size(); ii++) {597 double val = data .at(ii)->_value;595 const QVector<t_polarPoint*>* data = plotData._data; 596 for (int ii = 0; ii < data->size(); ii++) { 597 double val = data->at(ii)->_value; 598 598 if (maxValue < val) { 599 599 maxValue = val; … … 609 609 while (it.hasNext()) { 610 610 t_skyPlotData& plotData = it.next(); 611 QVector<t_polarPoint*> &data = plotData._data;611 QVector<t_polarPoint*>* data = plotData._data; 612 612 QwtText title(plotData._title); 613 613 QFont font = title.font(); font.setPointSize(font.pointSize()-1); title.setFont(font); 614 614 t_polarPlot* plot = new t_polarPlot(title, scaleInterval, BNC_CORE->mainWindow()); 615 plot->addCurve( &data);615 plot->addCurve(data); 616 616 plots << plot; 617 617 } -
trunk/BNC/src/rinex/reqcanalyze.h
r8557 r8558 59 59 class t_skyPlotData { 60 60 public: 61 t_skyPlotData() {} 61 t_skyPlotData() { 62 _data = new QVector<t_polarPoint*>; 63 } 62 64 ~t_skyPlotData() {} 63 65 void clear() { 64 for (int ii = 0; ii < _data .size(); ii++) {65 delete _data .at(ii);66 for (int ii = 0; ii < _data->size(); ii++) { 67 delete _data->at(ii); 66 68 } 67 69 } 68 QString _title;69 QVector<t_polarPoint*> _data;70 QString _title; 71 QVector<t_polarPoint*>* _data; 70 72 }; 71 73
Note:
See TracChangeset
for help on using the changeset viewer.