Changeset 4662 in ntrip for trunk/BNC/src/rinex/eleplot.cpp


Ignore:
Timestamp:
Sep 8, 2012, 5:12:31 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 moved

Legend:

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

    r4661 r4662  
    2727 * -------------------------------------------------------------------------
    2828 *
    29  * Class:      t_zenPlot
     29 * Class:      t_elePlot
    3030 *
    31  * Purpose:    Plot with satellite zenith distances
     31 * Purpose:    Plot satellite elevations
    3232 *
    3333 * Author:     L. Mervart
     
    4343#include <qwt_legend.h>
    4444
    45 #include "zenplot.h"
     45#include "eleplot.h"
    4646#include "reqcanalyze.h"
    4747
     
    5959// Constructor
    6060//////////////////////////////////////////////////////////////////////////////
    61 t_zenPlot::t_zenPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap)
     61t_elePlot::t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap)
    6262: QwtPlot(parent) {
    6363
     
    7070  setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom);
    7171  setAxisScale(QwtPlot::yLeft, 0.0, 90.0);
    72 
    73   // Smaller Font for y-Axis
    74   // -----------------------
    75   QFont yFont = axisFont(QwtPlot::yLeft);
    76   yFont.setPointSize(yFont.pointSize()/2);
    77   setAxisFont(QwtPlot::yLeft, yFont);
    78 
    79   // Symbols
    80   // -------
    81   QColor red(220,20,60);
    82   QColor green(150,200,50);
    83   QColor blue(60,100,200);
    84   QwtSymbol symbRed(QwtSymbol::Rect, QBrush(red), QPen(red), QSize(2,1));
    85   QwtSymbol symbGreen(QwtSymbol::Rect, QBrush(green), QPen(green), QSize(2,1));
    86   QwtSymbol symbBlue (QwtSymbol::Rect, QBrush(blue), QPen(blue), QSize(2,1));
    8772
    8873  // Legend
     
    10489    // --------------
    10590    if (availData._L1ok.size()) {
    106       const QVector<double>& xData = availData._zenTim;
    107       const QVector<double>& yData = availData._zenDeg;
    108       addCurve(prn, symbGreen, xData, yData);
     91      const QVector<double>& xData = availData._eleTim;
     92      const QVector<double>& yData = availData._eleDeg;
     93      QColor    color(qrand() % 255, qrand() % 255, qrand() % 255);
     94      QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1));
     95      addCurve(prn, symbol, xData, yData);
    10996    }
    11097  }
     
    117104// Add Curve
    118105//////////////////////////////////////////////////////////////////////////////
    119 QwtPlotCurve* t_zenPlot::addCurve(const QString& name,
     106QwtPlotCurve* t_elePlot::addCurve(const QString& name,
    120107                                    const QwtSymbol& symbol,
    121108                                    const QVector<double>& xData,
Note: See TracChangeset for help on using the changeset viewer.