Changeset 4675 in ntrip for trunk/BNC/src/rinex/dopplot.cpp


Ignore:
Timestamp:
Sep 9, 2012, 10:48:39 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4673 r4675  
    7070  setAxisLabelRotation(QwtPlot::xBottom, -10.0);
    7171  setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom);
    72   setAxisScale(QwtPlot::yLeft, 0.0, 90.0);
    7372
    7473  // Legend
     
    7978  // Curves
    8079  // ------
     80  if (obsStat) {
     81    addCurve("# Sat", obsStat->_mjdX24, obsStat->_numSat);
     82  }
    8183 
    8284  // Important !!!
     
    8890//////////////////////////////////////////////////////////////////////////////
    8991QwtPlotCurve* 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
    9395  QwtPlotCurve* curve = new QwtPlotCurve(name);
    94   curve->setSymbol(new QwtSymbol(symbol));
    95   curve->setStyle(QwtPlotCurve::NoCurve);
    9696  curve->setXAxis(QwtPlot::xBottom);
    9797  curve->setYAxis(QwtPlot::yLeft);
     
    9999  curve->attach(this);
    100100
    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 
    112101  return curve;
    113102}
Note: See TracChangeset for help on using the changeset viewer.