Changeset 6272 in ntrip


Ignore:
Timestamp:
Oct 31, 2014, 6:12:41 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
7 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);
  • trunk/BNC/src/rinex/availplot.h

    r6269 r6272  
    77#include <qwt_plot_curve.h>
    88#include "t_prn.h"
    9 
    10 class t_availData;
     9#include "reqcanalyze.h"
    1110
    1211class t_availPlot: public QwtPlot {
     
    1413
    1514public:
    16   t_availPlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);
     15  t_availPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap);
    1716
    1817private:
  • trunk/BNC/src/rinex/dopplot.h

    r4683 r6272  
    66#include <qwt_symbol.h>
    77#include <qwt_plot_curve.h>
     8#include "reqcanalyze.h"
    89
    910class t_obsStat;
     
    1314
    1415public:
    15   t_dopPlot(QWidget* parent, t_obsStat* obsStat);
     16  t_dopPlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotData);
    1617
    1718private:
  • 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));
  • trunk/BNC/src/rinex/eleplot.h

    r6269 r6272  
    77#include <qwt_plot_curve.h>
    88#include "t_prn.h"
     9#include "reqcanalyze.h"
    910
    1011class t_availData;
     
    1415
    1516public:
    16   t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);
     17  t_elePlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap);
    1718
    1819private:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6271 r6272  
    637637void t_reqcAnalyze::dspAvailPlot(const QString& fileName, const QByteArray& title) {
    638638
     639  QMap<t_prn, t_plotData> plotData;
     640
    639641  if (BNC_CORE->GUIenabled()) {
    640     t_availPlot* plotA = new t_availPlot(0, _qcFile._qcEpoSampled);
     642    t_availPlot* plotA = new t_availPlot(0, plotData);
    641643    plotA->setTitle(title);
    642644
    643     t_elePlot* plotZ = new t_elePlot(0, _qcFile._qcEpoSampled);
    644 
    645     t_dopPlot* plotD = new t_dopPlot(0, _qcFile._qcEpoSampled);
     645    t_elePlot* plotZ = new t_elePlot(0, plotData);
     646
     647    t_dopPlot* plotD = new t_dopPlot(0, plotData);
    646648
    647649    QVector<QWidget*> plots;
  • trunk/BNC/src/rinex/reqcanalyze.h

    r6270 r6272  
    3333
    3434class t_polarPoint;
     35
     36class t_plotData {
     37 public:
     38  QVector<double> _mjdX24;
     39  QVector<double> _PDOP;
     40  QVector<double> _L1ok;
     41  QVector<double> _L2ok;
     42  QVector<double> _L1slip;
     43  QVector<double> _L2slip;
     44  QVector<double> _L1gap;
     45  QVector<double> _L2gap;
     46  QVector<double> _eleDeg;
     47};
    3548
    3649class t_qcObs {
Note: See TracChangeset for help on using the changeset viewer.