Changeset 6272 in ntrip for trunk/BNC/src/rinex/eleplot.cpp


Ignore:
Timestamp:
Oct 31, 2014, 6:12:41 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6269 r6272  
    6161// Constructor
    6262//////////////////////////////////////////////////////////////////////////////
    63 t_elePlot::t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap)
     63t_elePlot::t_elePlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap)
    6464: QwtPlot(parent) {
    6565
     
    8181  // Curves
    8282  // ------
    83   int numCurves = availDataMap->size();
     83  int numCurves = plotDataMap.size();
    8484  if (numCurves > 0) {
    8585    int iC = 0;
    86     QMapIterator<t_prn, t_availData > it(*availDataMap);
     86    QMapIterator<t_prn, t_plotData> it(plotDataMap);
    8787    while (it.hasNext()) {
    8888      it.next();
    8989      ++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();
    9292   
    9393      // Draw one curve
    9494      // --------------
    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;
    9898        QColor color = QColor::fromHsv((iC-1)*(359.0/numCurves), 255, 255);
    9999        QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1));
Note: See TracChangeset for help on using the changeset viewer.