Changeset 6272 in ntrip
- Timestamp:
- Oct 31, 2014, 6:12:41 PM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 7 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); -
trunk/BNC/src/rinex/availplot.h
r6269 r6272 7 7 #include <qwt_plot_curve.h> 8 8 #include "t_prn.h" 9 10 class t_availData; 9 #include "reqcanalyze.h" 11 10 12 11 class t_availPlot: public QwtPlot { … … 14 13 15 14 public: 16 t_availPlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);15 t_availPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap); 17 16 18 17 private: -
trunk/BNC/src/rinex/dopplot.h
r4683 r6272 6 6 #include <qwt_symbol.h> 7 7 #include <qwt_plot_curve.h> 8 #include "reqcanalyze.h" 8 9 9 10 class t_obsStat; … … 13 14 14 15 public: 15 t_dopPlot(QWidget* parent, t_obsStat* obsStat);16 t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotData); 16 17 17 18 private: -
trunk/BNC/src/rinex/eleplot.cpp
r6269 r6272 61 61 // Constructor 62 62 ////////////////////////////////////////////////////////////////////////////// 63 t_elePlot::t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap)63 t_elePlot::t_elePlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap) 64 64 : QwtPlot(parent) { 65 65 … … 81 81 // Curves 82 82 // ------ 83 int numCurves = availDataMap->size();83 int numCurves = plotDataMap.size(); 84 84 if (numCurves > 0) { 85 85 int iC = 0; 86 QMapIterator<t_prn, t_ availData > it(*availDataMap);86 QMapIterator<t_prn, t_plotData> it(plotDataMap); 87 87 while (it.hasNext()) { 88 88 it.next(); 89 89 ++iC; 90 QString prn= QString(it.key().toString().c_str());91 const t_ availData& availData = it.value();90 QString prn = QString(it.key().toString().c_str()); 91 const t_plotData& plotData = it.value(); 92 92 93 93 // Draw one curve 94 94 // -------------- 95 if ( availData._eleTim.size()) {96 const QVector<double>& xData = availData._eleTim;97 const QVector<double>& yData = availData._eleDeg;95 if (plotData._mjdX24.size()) { 96 const QVector<double>& xData = plotData._mjdX24; 97 const QVector<double>& yData = plotData._eleDeg; 98 98 QColor color = QColor::fromHsv((iC-1)*(359.0/numCurves), 255, 255); 99 99 QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1)); -
trunk/BNC/src/rinex/eleplot.h
r6269 r6272 7 7 #include <qwt_plot_curve.h> 8 8 #include "t_prn.h" 9 #include "reqcanalyze.h" 9 10 10 11 class t_availData; … … 14 15 15 16 public: 16 t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);17 t_elePlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap); 17 18 18 19 private: -
trunk/BNC/src/rinex/reqcanalyze.cpp
r6271 r6272 637 637 void t_reqcAnalyze::dspAvailPlot(const QString& fileName, const QByteArray& title) { 638 638 639 QMap<t_prn, t_plotData> plotData; 640 639 641 if (BNC_CORE->GUIenabled()) { 640 t_availPlot* plotA = new t_availPlot(0, _qcFile._qcEpoSampled);642 t_availPlot* plotA = new t_availPlot(0, plotData); 641 643 plotA->setTitle(title); 642 644 643 t_elePlot* plotZ = new t_elePlot(0, _qcFile._qcEpoSampled);644 645 t_dopPlot* plotD = new t_dopPlot(0, _qcFile._qcEpoSampled);645 t_elePlot* plotZ = new t_elePlot(0, plotData); 646 647 t_dopPlot* plotD = new t_dopPlot(0, plotData); 646 648 647 649 QVector<QWidget*> plots; -
trunk/BNC/src/rinex/reqcanalyze.h
r6270 r6272 33 33 34 34 class t_polarPoint; 35 36 class t_plotData { 37 public: 38 QVector<double> _mjdX24; 39 QVector<double> _PDOP; 40 QVector<double> _L1ok; 41 QVector<double> _L2ok; 42 QVector<double> _L1slip; 43 QVector<double> _L2slip; 44 QVector<double> _L1gap; 45 QVector<double> _L2gap; 46 QVector<double> _eleDeg; 47 }; 35 48 36 49 class t_qcObs {
Note:
See TracChangeset
for help on using the changeset viewer.