- Timestamp:
- Sep 8, 2012, 5:12:31 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/eleplot.cpp
r4661 r4662 27 27 * ------------------------------------------------------------------------- 28 28 * 29 * Class: t_ zenPlot29 * Class: t_elePlot 30 30 * 31 * Purpose: Plot with satellite zenith distances31 * Purpose: Plot satellite elevations 32 32 * 33 33 * Author: L. Mervart … … 43 43 #include <qwt_legend.h> 44 44 45 #include " zenplot.h"45 #include "eleplot.h" 46 46 #include "reqcanalyze.h" 47 47 … … 59 59 // Constructor 60 60 ////////////////////////////////////////////////////////////////////////////// 61 t_ zenPlot::t_zenPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap)61 t_elePlot::t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap) 62 62 : QwtPlot(parent) { 63 63 … … 70 70 setAxisLabelAlignment(QwtPlot::xBottom, Qt::AlignLeft | Qt::AlignBottom); 71 71 setAxisScale(QwtPlot::yLeft, 0.0, 90.0); 72 73 // Smaller Font for y-Axis74 // -----------------------75 QFont yFont = axisFont(QwtPlot::yLeft);76 yFont.setPointSize(yFont.pointSize()/2);77 setAxisFont(QwtPlot::yLeft, yFont);78 79 // Symbols80 // -------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));87 72 88 73 // Legend … … 104 89 // -------------- 105 90 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); 109 96 } 110 97 } … … 117 104 // Add Curve 118 105 ////////////////////////////////////////////////////////////////////////////// 119 QwtPlotCurve* t_ zenPlot::addCurve(const QString& name,106 QwtPlotCurve* t_elePlot::addCurve(const QString& name, 120 107 const QwtSymbol& symbol, 121 108 const QVector<double>& xData, -
trunk/BNC/src/rinex/eleplot.h
r4659 r4662 1 #ifndef ZENPLOT_H2 #define ZENPLOT_H1 #ifndef ELEPLOT_H 2 #define ELEPLOT_H 3 3 4 4 #include <QtCore> … … 9 9 class t_availData; 10 10 11 class t_ zenPlot: public QwtPlot {11 class t_elePlot: public QwtPlot { 12 12 Q_OBJECT 13 13 14 14 public: 15 t_ zenPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);15 t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap); 16 16 17 17 private: -
trunk/BNC/src/rinex/reqcanalyze.cpp
r4659 r4662 52 52 #include "polarplot.h" 53 53 #include "availplot.h" 54 #include " zenplot.h"54 #include "eleplot.h" 55 55 56 56 using namespace std; … … 534 534 } 535 535 if (zenFlag) { 536 _availDataMap[prn]._ zenTim << mjdX24;537 _availDataMap[prn]._ zenDeg <<zenDeg;536 _availDataMap[prn]._eleTim << mjdX24; 537 _availDataMap[prn]._eleDeg << 90.0 - zenDeg; 538 538 } 539 539 … … 576 576 plotA->setTitle(title); 577 577 578 t_ zenPlot* plotZ = new t_zenPlot(0, &_availDataMap);578 t_elePlot* plotZ = new t_elePlot(0, &_availDataMap); 579 579 plotZ->setTitle(title); 580 580 -
trunk/BNC/src/rinex/reqcanalyze.h
r4659 r4662 42 42 QVector<double> _L1gap; 43 43 QVector<double> _L2gap; 44 QVector<double> _ zenDeg;45 QVector<double> _ zenTim;44 QVector<double> _eleDeg; 45 QVector<double> _eleTim; 46 46 }; 47 47 -
trunk/BNC/src/src.pro
r4659 r4662 118 118 rinex/reqcedit.h rinex/reqcanalyze.h \ 119 119 rinex/graphwin.h rinex/polarplot.h \ 120 rinex/availplot.h rinex/ zenplot.h120 rinex/availplot.h rinex/eleplot.h 121 121 SOURCES += rinex/bncpostprocess.cpp rinex/rnxobsfile.cpp \ 122 122 rinex/rnxnavfile.cpp rinex/corrfile.cpp \ 123 123 rinex/reqcedit.cpp rinex/reqcanalyze.cpp \ 124 124 rinex/graphwin.cpp rinex/polarplot.cpp \ 125 rinex/availplot.cpp rinex/ zenplot.cpp125 rinex/availplot.cpp rinex/eleplot.cpp 126 126 } 127 127
Note:
See TracChangeset
for help on using the changeset viewer.