Changeset 4718 in ntrip


Ignore:
Timestamp:
Sep 10, 2012, 10:45:01 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4717 r4718  
    281281  // Analyze the Multipath
    282282  // ---------------------
    283   QVector<t_polarPoint*>*       dataMP1  = new QVector<t_polarPoint*>;
    284   QVector<t_polarPoint*>*       dataMP2  = new QVector<t_polarPoint*>;
    285   QVector<t_polarPoint*>*       dataSNR1 = new QVector<t_polarPoint*>;
    286   QVector<t_polarPoint*>*       dataSNR2 = new QVector<t_polarPoint*>;
     283  QVector<t_polarPoint*>* dataMP1  = new QVector<t_polarPoint*>;
     284  QVector<t_polarPoint*>* dataMP2  = new QVector<t_polarPoint*>;
     285  QVector<t_polarPoint*>* dataSNR1 = new QVector<t_polarPoint*>;
     286  QVector<t_polarPoint*>* dataSNR2 = new QVector<t_polarPoint*>;
    287287
    288288  QMutableMapIterator<QString, t_allObs> it(_allObsMap);
     
    296296  printReport(dataMP1, dataMP2, dataSNR1, dataSNR2);
    297297
    298   QFileInfo  fileInfo(obsFile->fileName());
    299   QByteArray title = fileInfo.fileName().toAscii();
    300 
    301   emit dspSkyPlot(obsFile->fileName(), "MP1", dataMP1, "MP2", dataMP2,
    302                   "Meters", 2.0);
    303   emit dspSkyPlot(obsFile->fileName(), "SNR1", dataSNR1, "SNR2", dataSNR2,
    304                   "", 9.0);
    305   emit dspAvailPlot(obsFile->fileName(), title);
     298  // Show the plots
     299  // --------------
     300  if (dynamic_cast<bncApp*>(qApp)->GUIenabled()) {
     301    QFileInfo  fileInfo(obsFile->fileName());
     302    QByteArray title = fileInfo.fileName().toAscii();
     303    emit dspSkyPlot(obsFile->fileName(), "MP1", dataMP1, "MP2", dataMP2,
     304                    "Meters", 2.0);
     305    emit dspSkyPlot(obsFile->fileName(), "SNR1", dataSNR1, "SNR2", dataSNR2,
     306                    "", 9.0);
     307    emit dspAvailPlot(obsFile->fileName(), title);
     308  }
     309  else {
     310    for (int ii = 0; ii < dataMP1->size(); ii++) {
     311      delete dataMP1->at(ii);
     312    }
     313    delete dataMP1;
     314    for (int ii = 0; ii < dataMP2->size(); ii++) {
     315      delete dataMP2->at(ii);
     316    }
     317    delete dataMP2;
     318    for (int ii = 0; ii < dataSNR1->size(); ii++) {
     319      delete dataSNR1->at(ii);
     320    }
     321    delete dataSNR1;
     322    for (int ii = 0; ii < dataSNR2->size(); ii++) {
     323      delete dataSNR2->at(ii);
     324    }
     325    delete dataSNR2;
     326    _mutex.unlock();
     327  }
    306328}
    307329
Note: See TracChangeset for help on using the changeset viewer.