- Timestamp:
- Sep 8, 2012, 4:55:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/zenplot.cpp
r4659 r4660 57 57 }; 58 58 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 70 59 // Constructor 71 60 ////////////////////////////////////////////////////////////////////////////// … … 80 69 setAxisLabelRotation(QwtPlot::xBottom, -10.0); 81 70 setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom); 82 83 t_scaleDrawPrn* scaleDrawPrn = new t_scaleDrawPrn();84 setAxisScaleDraw(QwtPlot::yLeft, scaleDrawPrn);85 71 86 72 // Smaller Font for y-Axis … … 114 100 const t_availData& availData = it.value(); 115 101 116 scaleDrawPrn->_yLabels[iC] = prn;117 118 102 // Draw one curve 119 103 // -------------- … … 125 109 } 126 110 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 137 111 // Important !!! 138 112 // -------------
Note:
See TracChangeset
for help on using the changeset viewer.