Changeset 1993 in ntrip
- Timestamp:
- Nov 20, 2009, 9:47:36 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1990 r1993 52 52 slotNextAnimationFrame(); 53 53 for (int ii = 0; ii <= 1000; ii++) { 54 _r gb[0][ii] = qrand() % 255;55 _r gb[2][ii] = qrand() % 255;56 _r gb[1][ii] = qrand() % 255;54 _ran[0][ii] = qrand() % 255; 55 _ran[1][ii] = qrand() % 40; 56 _ran[2][ii] = qrand() % 100; 57 57 } 58 58 } … … 181 181 if(_maxRate > 0.0) { 182 182 int yy = int(yLength * (it.value()->_mean / _maxRate)); 183 QColor color = QColor::from Rgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);183 QColor color = QColor::fromHsv(0,100+_ran[1][anchor],155+_ran[2][anchor]); 184 184 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 185 185 QBrush(color,Qt::SolidPattern)); -
trunk/BNC/bncfigure.h
r1958 r1993 52 52 int _counter; 53 53 double _maxRate; 54 int _r gb[3][1001];54 int _ran[3][1001]; 55 55 }; 56 56 -
trunk/BNC/bncfigurelate.cpp
r1992 r1993 52 52 slotNextAnimationFrame(); 53 53 for (int ii = 0; ii <= 1000; ii++) { 54 _r gb[0][ii] = qrand() % 255;55 _r gb[2][ii] = qrand() % 255;56 _r gb[1][ii] = qrand() % 255;54 _ran[0][ii] = qrand() % 255; 55 _ran[1][ii] = qrand() % 255; 56 _ran[2][ii] = qrand() % 100; 57 57 } 58 58 } … … 156 156 if(maxLate > 0.0) { 157 157 int yy = int(yLength * (it.value() / maxLate)); 158 QColor color = QColor::from Rgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);158 QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]); 159 159 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 160 160 QBrush(color,Qt::SolidPattern)); -
trunk/BNC/bncfigurelate.h
r1982 r1993 43 43 QMap<QByteArray, double> _latency; 44 44 QMutex _mutex; 45 int _r gb[3][1001];45 int _ran[3][1001]; 46 46 }; 47 47
Note:
See TracChangeset
for help on using the changeset viewer.