Changeset 8555 in ntrip for trunk/BNC/src/rinex/availplot.cpp
- Timestamp:
- Dec 12, 2018, 12:02:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r8127 r8555 124 124 scaleDrawPrn->_yLabels[iC] = prn; 125 125 126 double eps = 0. 1;126 double eps = 0.0; 127 127 128 // L1 ok Curve 129 // ----------- 130 if (plotData._L1ok.size()) { 131 const QVector<double>& xData = plotData._L1ok; 132 QVector<double> yData(xData.size(), double(iC)+eps); 133 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); 134 curve->setItemAttribute(QwtPlotItem::Legend, false); 135 } 128 for (QMap<char, t_plotData::t_hlpStatus >::const_iterator it = plotData._status.begin(); 129 it != plotData._status.end(); it++) { 136 130 137 // L2 ok Curve 138 // ----------- 139 if (plotData._L2ok.size()) { 140 const QVector<double>& xData = plotData._L2ok; 141 QVector<double> yData(xData.size(), double(iC)-eps); 142 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); 143 curve->setItemAttribute(QwtPlotItem::Legend, false); 144 } 131 const t_plotData::t_hlpStatus& status = it.value(); 145 132 146 // L1 gaps Curve 147 // ------------- 148 if (plotData._L1gap.size()) { 149 const QVector<double>& xData = plotData._L1gap; 150 QVector<double> yData(xData.size(), double(iC)+eps); 151 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); 152 curve->setItemAttribute(QwtPlotItem::Legend, false); 153 } 133 // OK Curve 134 // -------- 135 if (status._ok.size()) { 136 const QVector<double>& xData = status._ok; 137 QVector<double> yData(xData.size(), double(iC)+eps); 138 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); 139 curve->setItemAttribute(QwtPlotItem::Legend, false); 140 } 141 142 // Gaps Curve 143 // ---------- 144 if (status._gap.size()) { 145 const QVector<double>& xData = status._gap; 146 QVector<double> yData(xData.size(), double(iC)+eps); 147 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); 148 curve->setItemAttribute(QwtPlotItem::Legend, false); 149 } 150 151 // Slips Curve 152 // ----------- 153 if (status._slip.size()) { 154 const QVector<double>& xData = status._slip; 155 QVector<double> yData(xData.size(), double(iC)+eps); 156 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); 157 curve->setItemAttribute(QwtPlotItem::Legend, false); 158 } 154 159 155 // L2 gaps Curve 156 // ------------- 157 if (plotData._L2gap.size()) { 158 const QVector<double>& xData = plotData._L2gap; 159 QVector<double> yData(xData.size(), double(iC)-eps); 160 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); 161 curve->setItemAttribute(QwtPlotItem::Legend, false); 162 } 163 164 // L1 slips Curve 165 // -------------- 166 if (plotData._L1slip.size()) { 167 const QVector<double>& xData = plotData._L1slip; 168 QVector<double> yData(xData.size(), double(iC)+eps); 169 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); 170 curve->setItemAttribute(QwtPlotItem::Legend, false); 171 } 172 173 // L2 slips Curve 174 // -------------- 175 if (plotData._L2slip.size()) { 176 const QVector<double>& xData = plotData._L2slip; 177 QVector<double> yData(xData.size(), double(iC)-eps); 178 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); 179 curve->setItemAttribute(QwtPlotItem::Legend, false); 160 eps += 0.1; 180 161 } 181 162 }
Note:
See TracChangeset
for help on using the changeset viewer.