Changeset 4613 in ntrip


Ignore:
Timestamp:
Aug 31, 2012, 12:24:55 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

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

    r4612 r4613  
    5151  QColor green(150,200,50);
    5252  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));
    5956
    6057  // Legend
     
    6562  QVector<double> xData0(0);
    6663  QVector<double> yData0(0);
    67   addCurve("OK  ", symbolGreen, xData0, yData0);
    68   addCurve("Gap ", symbolBlue,  xData0, yData0);
    69   addCurve("Slip", symbolRed,   xData0, yData0);
     64  addCurve("OK  ", symbGreen, xData0, yData0);
     65  addCurve("Gap ", symbBlue,  xData0, yData0);
     66  addCurve("Slip", symbRed,   xData0, yData0);
    7067 
    7168  // Curves
     
    8885      const QVector<double>& xData = availData._L1ok;
    8986      QVector<double>        yData(xData.size(), double(iC)+eps);
    90       QwtPlotCurve* curve = addCurve(prn, symbolGreen, xData, yData);
     87      QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData);
    9188      curve->setItemAttribute(QwtPlotItem::Legend, false);
    9289    }
     
    9794      const QVector<double>& xData = availData._L2ok;
    9895      QVector<double>        yData(xData.size(), double(iC)-eps);
    99       QwtPlotCurve* curve = addCurve(prn, symbolGreen, xData, yData);
     96      QwtPlotCurve* curve = addCurve(prn, symbGreen, xData, yData);
    10097      curve->setItemAttribute(QwtPlotItem::Legend, false);
    10198    }
     
    106103      const QVector<double>& xData = availData._L1gap;
    107104      QVector<double>        yData(xData.size(), double(iC)+eps);
    108       QwtPlotCurve* curve = addCurve(prn, symbolBlue, xData, yData);
     105      QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData);
    109106      curve->setItemAttribute(QwtPlotItem::Legend, false);
    110107    }
     
    115112      const QVector<double>& xData = availData._L2gap;
    116113      QVector<double>        yData(xData.size(), double(iC)-eps);
    117       QwtPlotCurve* curve = addCurve(prn, symbolBlue, xData, yData);
     114      QwtPlotCurve* curve = addCurve(prn, symbBlue, xData, yData);
    118115      curve->setItemAttribute(QwtPlotItem::Legend, false);
    119116    }
     
    124121      const QVector<double>& xData = availData._L1slip;
    125122      QVector<double>        yData(xData.size(), double(iC)+eps);
    126       QwtPlotCurve* curve = addCurve(prn, symbolRed, xData, yData);
     123      QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData);
    127124      curve->setItemAttribute(QwtPlotItem::Legend, false);
    128125    }
     
    133130      const QVector<double>& xData = availData._L2slip;
    134131      QVector<double>        yData(xData.size(), double(iC)-eps);
    135       QwtPlotCurve* curve = addCurve(prn, symbolRed, xData, yData);
     132      QwtPlotCurve* curve = addCurve(prn, symbRed, xData, yData);
    136133      curve->setItemAttribute(QwtPlotItem::Legend, false);
    137134    }
     
    156153//////////////////////////////////////////////////////////////////////////////
    157154QwtPlotCurve* t_availPlot::addCurve(const QString& name,
    158                                     const QwtSymbol* symbol,
     155                                    const QwtSymbol& symbol,
    159156                                    const QVector<double>& xData,
    160157                                    const QVector<double>& yData) {
    161158  QwtPlotCurve* curve = new QwtPlotCurve(name);
    162   curve->setSymbol(symbol);
     159  curve->setSymbol(new QwtSymbol(symbol));
    163160  curve->setStyle(QwtPlotCurve::NoCurve);
    164161  curve->setXAxis(QwtPlot::xBottom);
  • trunk/BNC/src/rinex/availplot.h

    r4610 r4613  
    1616
    1717private:
    18   QwtPlotCurve* addCurve(const QString& name, const QwtSymbol* symbol,
     18  QwtPlotCurve* addCurve(const QString& name, const QwtSymbol& symbol,
    1919                         const QVector<double>& xData,
    2020                         const QVector<double>& yData);
  • trunk/BNC/src/src.pro

    r4577 r4613  
    44# Switch to debug configuration
    55# -----------------------------
    6 CONFIG -= debug
    7 CONFIG += release
     6CONFIG -= release
     7CONFIG += debug
    88
    99DEFINES += NO_RTCM3_MAIN
Note: See TracChangeset for help on using the changeset viewer.