Changeset 4586 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Aug 29, 2012, 6:24:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4585 r4586 2 2 #include <qwt_symbol.h> 3 3 #include <qwt_plot_curve.h> 4 #include <qwt_scale_draw.h> 5 #include <qwt_text.h> 4 6 5 7 #include "availplot.h" 6 8 #include "reqcanalyze.h" 7 9 10 // 11 ////////////////////////////////////////////////////////////////////////////// 12 class t_scaleDraw : public QwtScaleDraw { 13 public: 14 t_scaleDraw() {} 15 virtual QwtText label(double mjd) const { 16 bncTime epoTime; epoTime.setmjd(mjd); 17 return QwtText(epoTime.timestr(0,':').c_str()); 18 } 19 }; 20 21 // 22 ////////////////////////////////////////////////////////////////////////////// 8 23 t_availPlot::t_availPlot(QWidget* parent, 9 24 QMap<QString, t_availData>* availDataMap) … … 14 29 // Axes 15 30 // ---- 16 setAxisTitle(QwtPlot::xBottom, "Epoch"); 31 setAxisScaleDraw(QwtPlot::xBottom, new t_scaleDraw()); 32 setAxisLabelRotation(QwtPlot::xBottom, -50.0); 33 setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom); 34 17 35 setAxisTitle(QwtPlot::yLeft, "PRN"); 18 36
Note:
See TracChangeset
for help on using the changeset viewer.