Changeset 6272 in ntrip for trunk/BNC/src/rinex/availplot.cpp
- Timestamp:
- Oct 31, 2014, 6:12:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r6269 r6272 71 71 // Constructor 72 72 ////////////////////////////////////////////////////////////////////////////// 73 t_availPlot::t_availPlot(QWidget* parent, 74 QMap<t_prn, t_availData>* availDataMap) 75 : QwtPlot(parent) { 73 t_availPlot::t_availPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap) : 74 QwtPlot(parent) { 76 75 77 76 setCanvasBackground(QColor(Qt::white)); … … 116 115 // ------ 117 116 int iC = 0; 118 QMapIterator<t_prn, t_ availData > it(*availDataMap);117 QMapIterator<t_prn, t_plotData > it(plotDataMap); 119 118 while (it.hasNext()) { 120 119 it.next(); 121 120 ++iC; 122 QString prn= QString(it.key().toString().c_str());123 const t_ availData& availData = it.value();121 QString prn = QString(it.key().toString().c_str()); 122 const t_plotData& plotData = it.value(); 124 123 125 124 scaleDrawPrn->_yLabels[iC] = prn; … … 129 128 // L1 ok Curve 130 129 // ----------- 131 if ( availData._L1ok.size()) {132 const QVector<double>& xData = availData._L1ok;130 if (plotData._L1ok.size()) { 131 const QVector<double>& xData = plotData._L1ok; 133 132 QVector<double> yData(xData.size(), double(iC)+eps); 134 133 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); … … 138 137 // L2 ok Curve 139 138 // ----------- 140 if ( availData._L2ok.size()) {141 const QVector<double>& xData = availData._L2ok;139 if (plotData._L2ok.size()) { 140 const QVector<double>& xData = plotData._L2ok; 142 141 QVector<double> yData(xData.size(), double(iC)-eps); 143 142 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); … … 147 146 // L1 gaps Curve 148 147 // ------------- 149 if ( availData._L1gap.size()) {150 const QVector<double>& xData = availData._L1gap;148 if (plotData._L1gap.size()) { 149 const QVector<double>& xData = plotData._L1gap; 151 150 QVector<double> yData(xData.size(), double(iC)+eps); 152 151 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); … … 156 155 // L2 gaps Curve 157 156 // ------------- 158 if ( availData._L2gap.size()) {159 const QVector<double>& xData = availData._L2gap;157 if (plotData._L2gap.size()) { 158 const QVector<double>& xData = plotData._L2gap; 160 159 QVector<double> yData(xData.size(), double(iC)-eps); 161 160 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); … … 165 164 // L1 slips Curve 166 165 // -------------- 167 if ( availData._L1slip.size()) {168 const QVector<double>& xData = availData._L1slip;166 if (plotData._L1slip.size()) { 167 const QVector<double>& xData = plotData._L1slip; 169 168 QVector<double> yData(xData.size(), double(iC)+eps); 170 169 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); … … 174 173 // L2 slips Curve 175 174 // -------------- 176 if ( availData._L2slip.size()) {177 const QVector<double>& xData = availData._L2slip;175 if (plotData._L2slip.size()) { 176 const QVector<double>& xData = plotData._L2slip; 178 177 QVector<double> yData(xData.size(), double(iC)-eps); 179 178 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData);
Note:
See TracChangeset
for help on using the changeset viewer.