Changeset 4675 in ntrip for trunk/BNC/src/rinex/dopplot.cpp
- Timestamp:
- Sep 9, 2012, 10:48:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/dopplot.cpp
r4673 r4675 70 70 setAxisLabelRotation(QwtPlot::xBottom, -10.0); 71 71 setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom); 72 setAxisScale(QwtPlot::yLeft, 0.0, 90.0);73 72 74 73 // Legend … … 79 78 // Curves 80 79 // ------ 80 if (obsStat) { 81 addCurve("# Sat", obsStat->_mjdX24, obsStat->_numSat); 82 } 81 83 82 84 // Important !!! … … 88 90 ////////////////////////////////////////////////////////////////////////////// 89 91 QwtPlotCurve* t_dopPlot::addCurve(const QString& name, 90 const QwtSymbol& symbol,91 const QVector<double>& xData,92 const QVector<double>& yData) { 92 const QVector<double>& xData, 93 const QVector<double>& yData) { 94 93 95 QwtPlotCurve* curve = new QwtPlotCurve(name); 94 curve->setSymbol(new QwtSymbol(symbol));95 curve->setStyle(QwtPlotCurve::NoCurve);96 96 curve->setXAxis(QwtPlot::xBottom); 97 97 curve->setYAxis(QwtPlot::yLeft); … … 99 99 curve->attach(this); 100 100 101 if (xData.size() > 0 && yData.size() > 0) {102 QwtPlotMarker* marker = new QwtPlotMarker();103 int ii = xData.size() / 2;104 marker->setValue(xData[ii], yData[ii]);105 QwtText text(name);106 text.setColor(symbol.pen().color());107 marker->setLabel(text);108 marker->setLabelAlignment(Qt::AlignTop);109 marker->attach(this);110 }111 112 101 return curve; 113 102 }
Note:
See TracChangeset
for help on using the changeset viewer.