Changeset 4595 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Aug 30, 2012, 12:40:37 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4594 r4595 1 1 2 #include <qwt_symbol.h>3 2 #include <qwt_plot_curve.h> 4 3 #include <qwt_scale_draw.h> … … 70 69 // L1 ok Curve 71 70 // ----------- 72 QwtPlotCurve* curve = new QwtPlotCurve(prn);73 curve->setSymbol(symbolGreen);74 curve->setStyle(QwtPlotCurve::NoCurve);75 curve->setXAxis(QwtPlot::xBottom);76 curve->setYAxis(QwtPlot::yLeft);77 71 const QVector<double>& xData = availData._L1ok; 78 72 QVector<double> yData(xData.size(), double(iC)+eps); 79 curve->setSamples(xData, yData); 80 curve->attach(this); 73 addCurve(prn, symbolGreen, xData, yData); 81 74 } 82 75 … … 96 89 } 97 90 91 // Add Curve 92 ////////////////////////////////////////////////////////////////////////////// 93 void t_availPlot::addCurve(const QString& name, const QwtSymbol* symbol, 94 const QVector<double>& xData, 95 const QVector<double>& yData) { 96 QwtPlotCurve* curve = new QwtPlotCurve(name); 97 curve->setSymbol(symbol); 98 curve->setStyle(QwtPlotCurve::NoCurve); 99 curve->setXAxis(QwtPlot::xBottom); 100 curve->setYAxis(QwtPlot::yLeft); 101 curve->setSamples(xData, yData); 102 curve->attach(this); 103 } -
trunk/BNC/src/rinex/availplot.h
r4584 r4595 4 4 #include <QtCore> 5 5 #include <qwt_plot.h> 6 #include <qwt_symbol.h> 6 7 7 8 class t_availData; … … 14 15 15 16 private: 16 17 void addCurve(const QString& name, const QwtSymbol* symbol, 18 const QVector<double>& xData, const QVector<double>& yData); 17 19 }; 18 20
Note:
See TracChangeset
for help on using the changeset viewer.