Changeset 4577 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp


Ignore:
Timestamp:
Aug 29, 2012, 3:32:18 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4576 r4577  
    4242#include <iomanip>
    4343
    44 #include <qwt_plot.h>
    45 #include <qwt_plot_curve.h>
    46 #include <qwt_symbol.h>
    47 
    4844#include "reqcanalyze.h"
    4945#include "bncapp.h"
     
    5450#include "graphwin.h"
    5551#include "polarplot.h"
     52#include "availplot.h"
    5653
    5754using namespace std;
     
    169166    if (!dirName.isEmpty()) {
    170167      QByteArray ext = scaleTitle.isEmpty() ? "_SNR.png" : "_MP.png";
    171       graphWin->savePNG(dirName, ext);
     168      graphWin->savePNG(dirName, ext, 0);
    172169    }
    173170  }
     
    516513  if (dynamic_cast<bncApp*>(qApp)->GUIenabled()) {
    517514
    518     QwtPlot* plot = new QwtPlot();
    519 
    520     int iC = 0;
    521     QMapIterator<QString, QVector<int> > it(*prnAvail);
    522     while (it.hasNext()) {
    523       it.next();
    524       ++iC;
    525       const QString&      prn    = it.key();
    526       const QVector<int>& epochs = it.value();
    527 
    528       QVector<QPointF> samples;
    529       for (int ii = 0; ii < epochs.size(); ii++) {
    530         samples << QPointF(epochs[ii], iC);
    531       }
    532 
    533       QwtPlotCurve* curve = new QwtPlotCurve(prn);
    534       curve->setStyle( QwtPlotCurve::NoCurve );
    535       QwtSymbol* symbol = new QwtSymbol( QwtSymbol::XCross );
    536       symbol->setSize( 4 );
    537       curve->setSymbol( symbol );
    538       curve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol );
    539       curve->setSamples(samples);
    540       curve->attach(plot);
    541     }
     515    t_availPlot* plot = new t_availPlot(0, prnAvail);
    542516
    543517    QVector<QWidget*> plots;
     
    550524    if (!dirName.isEmpty()) {
    551525      QByteArray ext = "_AVAIL.png";
    552       graphWin->savePNG(dirName, ext);
    553     }
    554   }
    555 }
     526      graphWin->savePNG(dirName, ext, plot);
     527    }
     528  }
     529}
Note: See TracChangeset for help on using the changeset viewer.