Changeset 4592 in ntrip for trunk/BNC


Ignore:
Timestamp:
Aug 30, 2012, 12:24:58 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4591 r4592  
    5656    const QString&         prn       = it.key();
    5757    const t_availData&     availData = it.value();
    58     const QVector<double>& epochs    = availData._L1ok;
    5958
    6059    scaleDrawPrn->_yLabels[iC] = prn;
    6160
    62     double xData[epochs.size()];
    63     double yData[epochs.size()];
    64     for (int ii = 0; ii < epochs.size(); ii++) {
    65       xData[ii] = epochs[ii];
    66       yData[ii] = iC;
    67     }
    68 
     61    // L1 ok Curve
     62    // -----------
    6963    QwtSymbol* symbol = new QwtSymbol( QwtSymbol::XCross );
    70     symbol->setSize( 4 );
    71 
     64    symbol->setSize(4);
    7265    QwtPlotCurve* curve = new QwtPlotCurve(prn);
    73     curve->setSymbol( symbol );
    74     curve->setStyle( QwtPlotCurve::NoCurve );
     66    curve->setSymbol(symbol);
     67    curve->setStyle(QwtPlotCurve::NoCurve);
    7568    curve->setXAxis(QwtPlot::xBottom);
    7669    curve->setYAxis(QwtPlot::yLeft);
    77     curve->setSamples(xData, yData, epochs.size());
     70    const QVector<double>& xData = availData._L1ok;
     71    QVector<double>        yData(xData.size(), double(iC));
     72    curve->setSamples(xData, yData);
    7873    curve->attach(this);
    7974  }
Note: See TracChangeset for help on using the changeset viewer.