Changeset 4662 in ntrip


Ignore:
Timestamp:
Sep 8, 2012, 5:12:31 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited
2 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,
  • trunk/BNC/src/rinex/eleplot.h

    r4659 r4662  
    1 #ifndef ZENPLOT_H
    2 #define ZENPLOT_H
     1#ifndef ELEPLOT_H
     2#define ELEPLOT_H
    33
    44#include <QtCore>
     
    99class t_availData;
    1010
    11 class t_zenPlot: public QwtPlot {
     11class t_elePlot: public QwtPlot {
    1212 Q_OBJECT
    1313
    1414public:
    15   t_zenPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);
     15  t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);
    1616
    1717private:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4659 r4662  
    5252#include "polarplot.h"
    5353#include "availplot.h"
    54 #include "zenplot.h"
     54#include "eleplot.h"
    5555
    5656using namespace std;
     
    534534    }
    535535    if (zenFlag) {
    536       _availDataMap[prn]._zenTim << mjdX24;
    537       _availDataMap[prn]._zenDeg << zenDeg;
     536      _availDataMap[prn]._eleTim << mjdX24;
     537      _availDataMap[prn]._eleDeg << 90.0 - zenDeg;
    538538    }
    539539
     
    576576    plotA->setTitle(title);
    577577
    578     t_zenPlot* plotZ = new t_zenPlot(0, &_availDataMap);
     578    t_elePlot* plotZ = new t_elePlot(0, &_availDataMap);
    579579    plotZ->setTitle(title);
    580580
  • trunk/BNC/src/rinex/reqcanalyze.h

    r4659 r4662  
    4242  QVector<double> _L1gap;
    4343  QVector<double> _L2gap;
    44   QVector<double> _zenDeg;
    45   QVector<double> _zenTim;
     44  QVector<double> _eleDeg;
     45  QVector<double> _eleTim;
    4646};
    4747
  • trunk/BNC/src/src.pro

    r4659 r4662  
    118118             rinex/reqcedit.h         rinex/reqcanalyze.h  \
    119119             rinex/graphwin.h         rinex/polarplot.h    \
    120              rinex/availplot.h        rinex/zenplot.h
     120             rinex/availplot.h        rinex/eleplot.h
    121121  SOURCES += rinex/bncpostprocess.cpp rinex/rnxobsfile.cpp \
    122122             rinex/rnxnavfile.cpp     rinex/corrfile.cpp   \
    123123             rinex/reqcedit.cpp       rinex/reqcanalyze.cpp \
    124124             rinex/graphwin.cpp       rinex/polarplot.cpp   \
    125              rinex/availplot.cpp      rinex/zenplot.cpp
     125             rinex/availplot.cpp      rinex/eleplot.cpp
    126126}
    127127
Note: See TracChangeset for help on using the changeset viewer.