- Timestamp:
- Sep 8, 2012, 5:36:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/eleplot.cpp
r4663 r4664 78 78 // Curves 79 79 // ------ 80 int iC = 0; 81 QMapIterator<QString, t_availData > it(*availDataMap); 82 while (it.hasNext()) { 83 it.next(); 84 ++iC; 85 const QString& prn = it.key(); 86 const t_availData& availData = it.value(); 87 88 // Draw one curve 89 // -------------- 90 if (availData._eleTim.size()) { 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); 80 int numCurves = availDataMap->size(); 81 if (numCurves > 0) { 82 int iC = 0; 83 QMapIterator<QString, t_availData > it(*availDataMap); 84 while (it.hasNext()) { 85 it.next(); 86 ++iC; 87 const QString& prn = it.key(); 88 const t_availData& availData = it.value(); 89 90 // Draw one curve 91 // -------------- 92 if (availData._eleTim.size()) { 93 const QVector<double>& xData = availData._eleTim; 94 const QVector<double>& yData = availData._eleDeg; 95 QColor color = QColor::fromHsv((iC-1)*(359.0/numCurves), 255, 255); 96 QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1)); 97 addCurve(prn, symbol, xData, yData); 98 } 96 99 } 97 100 }
Note:
See TracChangeset
for help on using the changeset viewer.