Changeset 4613 in ntrip
- Timestamp:
- Aug 31, 2012, 12:24:55 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4612 r4613 51 51 QColor green(150,200,50); 52 52 QColor blue(60,100,200); 53 QwtSymbol* symbolRed = new QwtSymbol(QwtSymbol::Rect, QBrush(red), 54 QPen(red), QSize(2,2)); 55 QwtSymbol* symbolGreen = new QwtSymbol(QwtSymbol::Rect, QBrush(green), 56 QPen(green), QSize(2,2)); 57 QwtSymbol* symbolBlue = new QwtSymbol(QwtSymbol::Rect, QBrush(blue), 58 QPen(blue), QSize(2,2)); 53 QwtSymbol symbRed(QwtSymbol::Rect, QBrush(red), QPen(red), QSize(2,2)); 54 QwtSymbol symbGreen(QwtSymbol::Rect, QBrush(green), QPen(green), QSize(2,2)); 55 QwtSymbol symbBlue (QwtSymbol::Rect, QBrush(blue), QPen(blue), QSize(2,2)); 59 56 60 57 // Legend … … 65 62 QVector<double> xData0(0); 66 63 QVector<double> yData0(0); 67 addCurve("OK ", symb olGreen, xData0, yData0);68 addCurve("Gap ", symb olBlue, xData0, yData0);69 addCurve("Slip", symb olRed, xData0, yData0);64 addCurve("OK ", symbGreen, xData0, yData0); 65 addCurve("Gap ", symbBlue, xData0, yData0); 66 addCurve("Slip", symbRed, xData0, yData0); 70 67 71 68 // Curves … … 88 85 const QVector<double>& xData = availData._L1ok; 89 86 QVector<double> yData(xData.size(), double(iC)+eps); 90 QwtPlotCurve* curve = addCurve(prn, symb olGreen, xData, yData);87 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); 91 88 curve->setItemAttribute(QwtPlotItem::Legend, false); 92 89 } … … 97 94 const QVector<double>& xData = availData._L2ok; 98 95 QVector<double> yData(xData.size(), double(iC)-eps); 99 QwtPlotCurve* curve = addCurve(prn, symb olGreen, xData, yData);96 QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData); 100 97 curve->setItemAttribute(QwtPlotItem::Legend, false); 101 98 } … … 106 103 const QVector<double>& xData = availData._L1gap; 107 104 QVector<double> yData(xData.size(), double(iC)+eps); 108 QwtPlotCurve* curve = addCurve(prn, symb olBlue, xData, yData);105 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); 109 106 curve->setItemAttribute(QwtPlotItem::Legend, false); 110 107 } … … 115 112 const QVector<double>& xData = availData._L2gap; 116 113 QVector<double> yData(xData.size(), double(iC)-eps); 117 QwtPlotCurve* curve = addCurve(prn, symb olBlue, xData, yData);114 QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData); 118 115 curve->setItemAttribute(QwtPlotItem::Legend, false); 119 116 } … … 124 121 const QVector<double>& xData = availData._L1slip; 125 122 QVector<double> yData(xData.size(), double(iC)+eps); 126 QwtPlotCurve* curve = addCurve(prn, symb olRed, xData, yData);123 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); 127 124 curve->setItemAttribute(QwtPlotItem::Legend, false); 128 125 } … … 133 130 const QVector<double>& xData = availData._L2slip; 134 131 QVector<double> yData(xData.size(), double(iC)-eps); 135 QwtPlotCurve* curve = addCurve(prn, symb olRed, xData, yData);132 QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData); 136 133 curve->setItemAttribute(QwtPlotItem::Legend, false); 137 134 } … … 156 153 ////////////////////////////////////////////////////////////////////////////// 157 154 QwtPlotCurve* t_availPlot::addCurve(const QString& name, 158 const QwtSymbol *symbol,155 const QwtSymbol& symbol, 159 156 const QVector<double>& xData, 160 157 const QVector<double>& yData) { 161 158 QwtPlotCurve* curve = new QwtPlotCurve(name); 162 curve->setSymbol( symbol);159 curve->setSymbol(new QwtSymbol(symbol)); 163 160 curve->setStyle(QwtPlotCurve::NoCurve); 164 161 curve->setXAxis(QwtPlot::xBottom); -
trunk/BNC/src/rinex/availplot.h
r4610 r4613 16 16 17 17 private: 18 QwtPlotCurve* addCurve(const QString& name, const QwtSymbol *symbol,18 QwtPlotCurve* addCurve(const QString& name, const QwtSymbol& symbol, 19 19 const QVector<double>& xData, 20 20 const QVector<double>& yData); -
trunk/BNC/src/src.pro
r4577 r4613 4 4 # Switch to debug configuration 5 5 # ----------------------------- 6 CONFIG -= debug7 CONFIG += release6 CONFIG -= release 7 CONFIG += debug 8 8 9 9 DEFINES += NO_RTCM3_MAIN
Note:
See TracChangeset
for help on using the changeset viewer.