Changeset 4660 in ntrip for trunk


Ignore:
Timestamp:
Sep 8, 2012, 4:55:55 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4659 r4660  
    5757};
    5858
    59 //
    60 //////////////////////////////////////////////////////////////////////////////
    61 class t_scaleDrawPrn : public QwtScaleDraw {
    62  public:
    63   t_scaleDrawPrn() {}
    64   virtual QwtText label(double iPrn) const {
    65     return _yLabels[iPrn];
    66   }
    67   QMap<int, QString> _yLabels;
    68 };
    69 
    7059// Constructor
    7160//////////////////////////////////////////////////////////////////////////////
     
    8069  setAxisLabelRotation(QwtPlot::xBottom, -10.0);
    8170  setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom);
    82 
    83   t_scaleDrawPrn* scaleDrawPrn = new t_scaleDrawPrn();
    84   setAxisScaleDraw(QwtPlot::yLeft, scaleDrawPrn);
    8571
    8672  // Smaller Font for y-Axis
     
    114100    const t_availData& availData = it.value();
    115101
    116     scaleDrawPrn->_yLabels[iC] = prn;
    117 
    118102    // Draw one curve
    119103    // --------------
     
    125109  }
    126110 
    127   QList<double> ticks[QwtScaleDiv::NTickTypes];
    128   QList<double> &majorTicks = ticks[QwtScaleDiv::MajorTick];
    129   QMapIterator<int, QString> itT(scaleDrawPrn->_yLabels);
    130   while (itT.hasNext()) {
    131     itT.next();
    132     majorTicks << double(itT.key());
    133   }
    134   QwtScaleDiv yScaleDiv(majorTicks.first()-0.5, majorTicks.last()+0.5, ticks );
    135   setAxisScaleDiv(QwtPlot::yLeft, yScaleDiv);
    136 
    137111  // Important !!!
    138112  // -------------
Note: See TracChangeset for help on using the changeset viewer.