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


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

Legend:

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

    r4586 r4587  
    1010//
    1111//////////////////////////////////////////////////////////////////////////////
    12 class t_scaleDraw : public QwtScaleDraw {
     12class t_scaleDrawTime : public QwtScaleDraw {
    1313 public:
    14   t_scaleDraw() {}
     14  t_scaleDrawTime() {}
    1515  virtual QwtText label(double mjd) const {
    1616    bncTime epoTime; epoTime.setmjd(mjd);
     
    2020
    2121//
     22//////////////////////////////////////////////////////////////////////////////
     23class 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
    2233//////////////////////////////////////////////////////////////////////////////
    2334t_availPlot::t_availPlot(QWidget* parent,
     
    2940  // Axes
    3041  // ----
    31   setAxisScaleDraw(QwtPlot::xBottom, new t_scaleDraw());
     42  setAxisScaleDraw(QwtPlot::xBottom, new t_scaleDrawTime());
    3243  setAxisLabelRotation(QwtPlot::xBottom, -50.0);
    3344  setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom);
    3445
    35   setAxisTitle(QwtPlot::yLeft, "PRN");
     46  t_scaleDrawPrn* scaleDrawPrn = new t_scaleDrawPrn();
     47  setAxisScaleDraw(QwtPlot::yLeft, scaleDrawPrn);
    3648
    3749  // Curves
     
    4557    const t_availData&     availData = it.value();
    4658    const QVector<double>& epochs    = availData._epoL1;
     59
     60    scaleDrawPrn->_yLabels[iC] = prn;
    4761
    4862    double xData[epochs.size()];
Note: See TracChangeset for help on using the changeset viewer.