Changeset 6279 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Oct 31, 2014, 7:11:02 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

    r6273 r6279  
    6161// Constructor
    6262//////////////////////////////////////////////////////////////////////////////
    63 t_dopPlot::t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap)
     63t_dopPlot::t_dopPlot(QWidget* parent, const t_plotData& plotData)
    6464: QwtPlot(parent) {
    6565
     
    9090  setAxisTitle(QwtPlot::yLeft,  textNumSat);
    9191  double maxNumSat = 20.0;
    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       }
    102     }
     92  for (int ii = 0; ii < plotData._numSat.size(); ii++) {
     93    if (maxNumSat < plotData._numSat[ii]) {
     94      maxNumSat = plotData._numSat[ii] + 5;
     95    }
    10396  }
    10497  setAxisScale(QwtPlot::yLeft,  0,  maxNumSat);
     
    111104  // Curves
    112105  // ------
    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();
    118 
    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     }
     106  if (plotData._mjdX24.size() > 0) {
     107    QwtPlotCurve* curveNumSat = new QwtPlotCurve(textNumSat);
     108    curveNumSat->setXAxis(QwtPlot::xBottom);
     109    curveNumSat->setYAxis(QwtPlot::yLeft);
     110    curveNumSat->setSamples(plotData._mjdX24, plotData._numSat);
     111    curveNumSat->setPen(QPen(textNumSat.color()));
     112    curveNumSat->attach(this);
     113   
     114    QwtPlotCurve* curvePDOP = new QwtPlotCurve(textPDOP);
     115    curvePDOP->setXAxis(QwtPlot::xBottom);
     116    curvePDOP->setYAxis(QwtPlot::yRight);
     117    curvePDOP->setSamples(plotData._mjdX24, plotData._PDOP);
     118    curvePDOP->setPen(QPen(textPDOP.color()));
     119    curvePDOP->attach(this);
    133120  }
    134121 
  • trunk/BNC/src/rinex/dopplot.h

    r6273 r6279  
    1212
    1313public:
    14  t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap);
     14 t_dopPlot(QWidget* parent, const t_plotData& plotData);
    1515
    1616private:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6278 r6279  
    667667  }
    668668
     669  t_plotData plotData;
     670
    669671  if (BNC_CORE->GUIenabled()) {
    670672    t_availPlot* plotA = new t_availPlot(0, plotDataMap);
     
    673675    t_elePlot* plotZ = new t_elePlot(0, plotDataMap);
    674676
    675     t_dopPlot* plotD = new t_dopPlot(0, plotDataMap);
     677    t_dopPlot* plotD = new t_dopPlot(0, plotData);
    676678
    677679    QVector<QWidget*> plots;
Note: See TracChangeset for help on using the changeset viewer.