Changeset 4586 in ntrip
- Timestamp:
- Aug 29, 2012, 6:24:00 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnctime.cpp
r4278 r4586 64 64 _mjd--; 65 65 } 66 return *this; 67 } 68 69 // 70 ////////////////////////////////////////////////////////////////////////////// 71 bncTime& bncTime::setmjd(double mjddec) { 72 _mjd = static_cast<unsigned int>(mjddec); 73 _sec = (mjddec - _mjd)*86400.0; 66 74 return *this; 67 75 } -
trunk/BNC/src/bnctime.h
r4584 r4586 15 15 bncTime& set(int year, int month, int day, double daysec); 16 16 bncTime& setmjd(double daysec, int mjd); 17 bncTime& setmjd(double mjddec); 17 18 18 19 void reset() {_mjd = 0; _sec = 0;} -
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.