Changeset 4586 in ntrip for trunk/BNC/src/rinex/availplot.cpp


Ignore:
Timestamp:
Aug 29, 2012, 6:24:00 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/availplot.cpp

    r4585 r4586  
    22#include <qwt_symbol.h>
    33#include <qwt_plot_curve.h>
     4#include <qwt_scale_draw.h>
     5#include <qwt_text.h>
    46
    57#include "availplot.h"
    68#include "reqcanalyze.h"
    79
     10//
     11//////////////////////////////////////////////////////////////////////////////
     12class 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//////////////////////////////////////////////////////////////////////////////
    823t_availPlot::t_availPlot(QWidget* parent,
    924                        QMap<QString, t_availData>* availDataMap)
     
    1429  // Axes
    1530  // ----
    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
    1735  setAxisTitle(QwtPlot::yLeft, "PRN");
    1836
Note: See TracChangeset for help on using the changeset viewer.