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


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

Legend:

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

    r6269 r6272  
    7171// Constructor
    7272//////////////////////////////////////////////////////////////////////////////
    73 t_availPlot::t_availPlot(QWidget* parent,
    74                         QMap<t_prn, t_availData>* availDataMap)
    75 : QwtPlot(parent) {
     73t_availPlot::t_availPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap) :
     74QwtPlot(parent) {
    7675
    7776  setCanvasBackground(QColor(Qt::white));
     
    116115  // ------
    117116  int iC = 0;
    118   QMapIterator<t_prn, t_availData > it(*availDataMap);
     117  QMapIterator<t_prn, t_plotData > it(plotDataMap);
    119118  while (it.hasNext()) {
    120119    it.next();
    121120    ++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();
    124123
    125124    scaleDrawPrn->_yLabels[iC] = prn;
     
    129128    // L1 ok Curve
    130129    // -----------
    131     if (availData._L1ok.size()) {
    132       const QVector<double>& xData = availData._L1ok;
     130    if (plotData._L1ok.size()) {
     131      const QVector<double>& xData = plotData._L1ok;
    133132      QVector<double>        yData(xData.size(), double(iC)+eps);
    134133      QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData);
     
    138137    // L2 ok Curve
    139138    // -----------
    140     if (availData._L2ok.size()) {
    141       const QVector<double>& xData = availData._L2ok;
     139    if (plotData._L2ok.size()) {
     140      const QVector<double>& xData = plotData._L2ok;
    142141      QVector<double>        yData(xData.size(), double(iC)-eps);
    143142      QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData);
     
    147146    // L1 gaps Curve
    148147    // -------------
    149     if (availData._L1gap.size()) {
    150       const QVector<double>& xData = availData._L1gap;
     148    if (plotData._L1gap.size()) {
     149      const QVector<double>& xData = plotData._L1gap;
    151150      QVector<double>        yData(xData.size(), double(iC)+eps);
    152151      QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData);
     
    156155    // L2 gaps Curve
    157156    // -------------
    158     if (availData._L2gap.size()) {
    159       const QVector<double>& xData = availData._L2gap;
     157    if (plotData._L2gap.size()) {
     158      const QVector<double>& xData = plotData._L2gap;
    160159      QVector<double>        yData(xData.size(), double(iC)-eps);
    161160      QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData);
     
    165164    // L1 slips Curve
    166165    // --------------
    167     if (availData._L1slip.size()) {
    168       const QVector<double>& xData = availData._L1slip;
     166    if (plotData._L1slip.size()) {
     167      const QVector<double>& xData = plotData._L1slip;
    169168      QVector<double>        yData(xData.size(), double(iC)+eps);
    170169      QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData);
     
    174173    // L2 slips Curve
    175174    // --------------
    176     if (availData._L2slip.size()) {
    177       const QVector<double>& xData = availData._L2slip;
     175    if (plotData._L2slip.size()) {
     176      const QVector<double>& xData = plotData._L2slip;
    178177      QVector<double>        yData(xData.size(), double(iC)-eps);
    179178      QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData);
Note: See TracChangeset for help on using the changeset viewer.