Changeset 4662 in ntrip for trunk/BNC/src/rinex/eleplot.cpp
- Timestamp:
- Sep 8, 2012, 5:12:31 PM (12 years ago)
- File:
-
- 1 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,
Note:
See TracChangeset
for help on using the changeset viewer.