Changeset 4576 in ntrip for trunk/BNC


Ignore:
Timestamp:
Aug 29, 2012, 12:56:06 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4575 r4576  
    4444#include <qwt_plot.h>
    4545#include <qwt_plot_curve.h>
     46#include <qwt_symbol.h>
    4647
    4748#include "reqcanalyze.h"
     
    282283                  "", 9.0);
    283284
    284   /////  emit dspAvailPlot(obsFile->fileName(), "Availability L1", availL1);
     285  emit dspAvailPlot(obsFile->fileName(), "Availability L1", availL1);
    285286
    286287  if (_log) {
     
    521522    while (it.hasNext()) {
    522523      it.next();
     524      ++iC;
    523525      const QString&      prn    = it.key();
    524526      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);
    525541    }
    526542
Note: See TracChangeset for help on using the changeset viewer.