Changeset 4595 in ntrip for trunk/BNC/src/rinex/availplot.cpp
- Timestamp:
- Aug 30, 2012, 12:40:37 PM (12 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.