Changeset 6273 in ntrip


Ignore:
Timestamp:
Oct 31, 2014, 6:21:52 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/dopplot.cpp

    r6261 r6273  
    6161// Constructor
    6262//////////////////////////////////////////////////////////////////////////////
    63 t_dopPlot::t_dopPlot(QWidget* parent, t_obsStat* obsStat)
     63t_dopPlot::t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap)
    6464: QwtPlot(parent) {
    6565
     
    9090  setAxisTitle(QwtPlot::yLeft,  textNumSat);
    9191  double maxNumSat = 20.0;
    92   if (obsStat) {
    93     for (int ii = 0; ii < obsStat->_numSat.size(); ii++) {
    94       if (maxNumSat < obsStat->_numSat[ii]) {
    95         maxNumSat = obsStat->_numSat[ii] + 5;
    96       }
     92  if (plotDataMap.size() > 0) {
     93    QMapIterator<t_prn, t_plotData> it(plotDataMap);
     94    while (it.hasNext()) {
     95      it.next();
     96      const t_plotData& plotData = it.value();
     97      for (int ii = 0; ii < plotData._numSat.size(); ii++) {
     98        if (maxNumSat < plotData._numSat[ii]) {
     99          maxNumSat = plotData._numSat[ii] + 5;
     100        }
     101      }
    97102    }
    98103  }
     
    106111  // Curves
    107112  // ------
    108   if (obsStat) {
     113  if (plotDataMap.size() > 0) {
     114    QMapIterator<t_prn, t_plotData> it(plotDataMap);
     115    while (it.hasNext()) {
     116      it.next();
     117      const t_plotData& plotData = it.value();
    109118
    110     QwtPlotCurve* curveNumSat = new QwtPlotCurve(textNumSat);
    111     curveNumSat->setXAxis(QwtPlot::xBottom);
    112     curveNumSat->setYAxis(QwtPlot::yLeft);
    113     curveNumSat->setSamples(obsStat->_mjdX24, obsStat->_numSat);
    114     curveNumSat->setPen(QPen(textNumSat.color()));
    115     curveNumSat->attach(this);
    116 
    117     QwtPlotCurve* curvePDOP = new QwtPlotCurve(textPDOP);
    118     curvePDOP->setXAxis(QwtPlot::xBottom);
    119     curvePDOP->setYAxis(QwtPlot::yRight);
    120     curvePDOP->setSamples(obsStat->_mjdX24, obsStat->_PDOP);
    121     curvePDOP->setPen(QPen(textPDOP.color()));
    122     curvePDOP->attach(this);
     119      QwtPlotCurve* curveNumSat = new QwtPlotCurve(textNumSat);
     120      curveNumSat->setXAxis(QwtPlot::xBottom);
     121      curveNumSat->setYAxis(QwtPlot::yLeft);
     122      curveNumSat->setSamples(plotData._mjdX24, plotData._numSat);
     123      curveNumSat->setPen(QPen(textNumSat.color()));
     124      curveNumSat->attach(this);
     125     
     126      QwtPlotCurve* curvePDOP = new QwtPlotCurve(textPDOP);
     127      curvePDOP->setXAxis(QwtPlot::xBottom);
     128      curvePDOP->setYAxis(QwtPlot::yRight);
     129      curvePDOP->setSamples(plotData._mjdX24, plotData._PDOP);
     130      curvePDOP->setPen(QPen(textPDOP.color()));
     131      curvePDOP->attach(this);
     132    }
    123133  }
    124134 
  • trunk/BNC/src/rinex/dopplot.h

    r6272 r6273  
    88#include "reqcanalyze.h"
    99
    10 class t_obsStat;
    11 
    1210class t_dopPlot: public QwtPlot {
    1311 Q_OBJECT
    1412
    1513public:
    16   t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotData);
     14 t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap);
    1715
    1816private:
  • trunk/BNC/src/rinex/reqcanalyze.h

    r6272 r6273  
    3737 public:
    3838  QVector<double> _mjdX24;
     39  QVector<double> _numSat;
    3940  QVector<double> _PDOP;
    4041  QVector<double> _L1ok;
Note: See TracChangeset for help on using the changeset viewer.