Changeset 4577 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp
- Timestamp:
- Aug 29, 2012, 3:32:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r4576 r4577 42 42 #include <iomanip> 43 43 44 #include <qwt_plot.h>45 #include <qwt_plot_curve.h>46 #include <qwt_symbol.h>47 48 44 #include "reqcanalyze.h" 49 45 #include "bncapp.h" … … 54 50 #include "graphwin.h" 55 51 #include "polarplot.h" 52 #include "availplot.h" 56 53 57 54 using namespace std; … … 169 166 if (!dirName.isEmpty()) { 170 167 QByteArray ext = scaleTitle.isEmpty() ? "_SNR.png" : "_MP.png"; 171 graphWin->savePNG(dirName, ext );168 graphWin->savePNG(dirName, ext, 0); 172 169 } 173 170 } … … 516 513 if (dynamic_cast<bncApp*>(qApp)->GUIenabled()) { 517 514 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); 542 516 543 517 QVector<QWidget*> plots; … … 550 524 if (!dirName.isEmpty()) { 551 525 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.