Changeset 6422 in ntrip


Ignore:
Timestamp:
Dec 23, 2014, 2:23:48 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6415 r6422  
    519519void t_reqcAnalyze::preparePlotData(const t_rnxObsFile* obsFile) {
    520520
     521  QString mp1Title  = "Multipath\n";
     522  QString mp2Title  = "Multipath\n";
     523  QString snr1Title = "Signal-to-Noise Ratio\n";
     524  QString snr2Title = "Signal-to-Noise Ratio\n";
     525
    521526  bncSettings settings;
    522 
    523527  QStringList signalsOpt = settings.value("reqcSkyPlotSignals").toString().split(" ", QString::SkipEmptyParts);
    524528  QMap<char, QVector<QString> > signalsMap;
     
    528532      for (int jj = 1; jj < hlp.size(); jj++) {
    529533        signalsMap[hlp[0].toAscii().constData()[0]] << hlp[jj];
    530       }
    531     }
    532   }
    533 
    534   qDebug() << signalsMap;
     534        if      (jj == 1) {
     535          mp1Title  += hlp[0] + ":" + hlp[jj] + " ";
     536          snr1Title += hlp[0] + ":" + hlp[jj] + " ";
     537        }
     538        else if (jj == 2) {
     539          mp2Title  += hlp[0] + ":" + hlp[jj] + " ";
     540          snr2Title += hlp[0] + ":" + hlp[jj] + " ";
     541        }
     542      }
     543    }
     544  }
    535545
    536546
     
    541551  bool plotSBAS = false;
    542552  bool plotBDS  = false;
    543   QString mp1Title  = ": MP";
    544   QString mp2Title  = ": MP";
    545   QString snr1Title = ": SNR";
    546   QString snr2Title = ": SNR";
    547553  char freq1 = '1';
    548554  char freq2 = '2';
     
    581587          return;
    582588  }
    583   mp1Title += freq1;
    584   mp2Title += freq2;
    585   snr1Title += freq1;
    586   snr2Title += freq2;
    587 
    588589  QVector<t_polarPoint*>* dataMP1  = new QVector<t_polarPoint*>;
    589590  QVector<t_polarPoint*>* dataMP2  = new QVector<t_polarPoint*>;
     
    693694    QVector<QWidget*> plots;
    694695    if (data1) {
    695       t_polarPlot* plot1 = new t_polarPlot(QwtText(title1), scaleInterval,
    696                                           BNC_CORE->mainWindow());
     696      QwtText title(title1);
     697      QFont font = title.font(); font.setPointSize(font.pointSize()*0.8); title.setFont(font);
     698      t_polarPlot* plot1 = new t_polarPlot(title, scaleInterval, BNC_CORE->mainWindow());
    697699      plot1->addCurve(data1);
    698700      plots << plot1;
    699701    }
    700702    if (data2) {
    701       t_polarPlot* plot2 = new t_polarPlot(QwtText(title2), scaleInterval,
    702                                            BNC_CORE->mainWindow());
     703      QwtText title(title2);
     704      QFont font = title.font(); font.setPointSize(font.pointSize()*0.8); title.setFont(font);
     705      t_polarPlot* plot2 = new t_polarPlot(title, scaleInterval, BNC_CORE->mainWindow());
    703706      plot2->addCurve(data2);
    704707      plots << plot2;
Note: See TracChangeset for help on using the changeset viewer.