Changeset 6272 in ntrip for trunk/BNC/src/rinex/eleplot.cpp
- Timestamp:
- Oct 31, 2014, 6:12:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/eleplot.cpp
r6269 r6272 61 61 // Constructor 62 62 ////////////////////////////////////////////////////////////////////////////// 63 t_elePlot::t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap)63 t_elePlot::t_elePlot(QWidget* parent, const QMap<t_prn, t_plotData>& plotDataMap) 64 64 : QwtPlot(parent) { 65 65 … … 81 81 // Curves 82 82 // ------ 83 int numCurves = availDataMap->size();83 int numCurves = plotDataMap.size(); 84 84 if (numCurves > 0) { 85 85 int iC = 0; 86 QMapIterator<t_prn, t_ availData > it(*availDataMap);86 QMapIterator<t_prn, t_plotData> it(plotDataMap); 87 87 while (it.hasNext()) { 88 88 it.next(); 89 89 ++iC; 90 QString prn= QString(it.key().toString().c_str());91 const t_ availData& availData = it.value();90 QString prn = QString(it.key().toString().c_str()); 91 const t_plotData& plotData = it.value(); 92 92 93 93 // Draw one curve 94 94 // -------------- 95 if ( availData._eleTim.size()) {96 const QVector<double>& xData = availData._eleTim;97 const QVector<double>& yData = availData._eleDeg;95 if (plotData._mjdX24.size()) { 96 const QVector<double>& xData = plotData._mjdX24; 97 const QVector<double>& yData = plotData._eleDeg; 98 98 QColor color = QColor::fromHsv((iC-1)*(359.0/numCurves), 255, 255); 99 99 QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1));
Note:
See TracChangeset
for help on using the changeset viewer.