Changeset 4587 in ntrip for trunk/BNC/src/rinex/availplot.cpp
- Timestamp:
- Aug 29, 2012, 6:32:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4586 r4587 10 10 // 11 11 ////////////////////////////////////////////////////////////////////////////// 12 class t_scaleDraw : public QwtScaleDraw {12 class t_scaleDrawTime : public QwtScaleDraw { 13 13 public: 14 t_scaleDraw () {}14 t_scaleDrawTime() {} 15 15 virtual QwtText label(double mjd) const { 16 16 bncTime epoTime; epoTime.setmjd(mjd); … … 20 20 21 21 // 22 ////////////////////////////////////////////////////////////////////////////// 23 class t_scaleDrawPrn : public QwtScaleDraw { 24 public: 25 t_scaleDrawPrn() {} 26 virtual QwtText label(double iPrn) const { 27 return _yLabels[iPrn]; 28 } 29 QMap<int, QString> _yLabels; 30 }; 31 32 // Constructor 22 33 ////////////////////////////////////////////////////////////////////////////// 23 34 t_availPlot::t_availPlot(QWidget* parent, … … 29 40 // Axes 30 41 // ---- 31 setAxisScaleDraw(QwtPlot::xBottom, new t_scaleDraw ());42 setAxisScaleDraw(QwtPlot::xBottom, new t_scaleDrawTime()); 32 43 setAxisLabelRotation(QwtPlot::xBottom, -50.0); 33 44 setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom); 34 45 35 setAxisTitle(QwtPlot::yLeft, "PRN"); 46 t_scaleDrawPrn* scaleDrawPrn = new t_scaleDrawPrn(); 47 setAxisScaleDraw(QwtPlot::yLeft, scaleDrawPrn); 36 48 37 49 // Curves … … 45 57 const t_availData& availData = it.value(); 46 58 const QVector<double>& epochs = availData._epoL1; 59 60 scaleDrawPrn->_yLabels[iC] = prn; 47 61 48 62 double xData[epochs.size()];
Note:
See TracChangeset
for help on using the changeset viewer.