- Timestamp:
- Sep 9, 2012, 11:49:17 AM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/dopplot.cpp
r4682 r4683 79 79 // ------ 80 80 if (obsStat) { 81 addCurve("# Sat", obsStat->_mjdX24, obsStat->_numSat); 82 addCurve("PDOP", obsStat->_mjdX24, obsStat->_PDOP); 81 82 QwtPlotCurve* curveNumSat = new QwtPlotCurve("# Sat"); 83 curveNumSat->setXAxis(QwtPlot::xBottom); 84 curveNumSat->setYAxis(QwtPlot::yRight); 85 curveNumSat->setSamples(obsStat->_mjdX24, obsStat->_numSat); 86 curveNumSat->attach(this); 87 88 QwtPlotCurve* curvePDOP = new QwtPlotCurve("PDOP"); 89 curvePDOP->setXAxis(QwtPlot::xBottom); 90 curvePDOP->setYAxis(QwtPlot::yLeft); 91 curvePDOP->setSamples(obsStat->_mjdX24, obsStat->_PDOP); 92 curvePDOP->attach(this); 83 93 } 84 94 … … 88 98 } 89 99 90 // Add Curve91 //////////////////////////////////////////////////////////////////////////////92 QwtPlotCurve* t_dopPlot::addCurve(const QString& name,93 const QVector<double>& xData,94 const QVector<double>& yData) {95 96 QwtPlotCurve* curve = new QwtPlotCurve(name);97 curve->setXAxis(QwtPlot::xBottom);98 curve->setYAxis(QwtPlot::yLeft);99 curve->setSamples(xData, yData);100 curve->attach(this);101 102 return curve;103 } -
trunk/BNC/src/rinex/dopplot.h
r4675 r4683 16 16 17 17 private: 18 QwtPlotCurve* addCurve(const QString& name,19 const QVector<double>& xData,20 const QVector<double>& yData);21 18 }; 22 19
Note:
See TracChangeset
for help on using the changeset viewer.