Changeset 1958 in ntrip
- Timestamp:
- Nov 15, 2009, 10:50:47 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1956 r1958 52 52 slotNextAnimationFrame(); 53 53 for (int ii = 0; ii <= 1000; ii++) { 54 _r [ii] = qrand() % 255;55 _ g[ii] = qrand() % 255;56 _ b[ii] = qrand() % 255;54 _rgb[0][ii] = qrand() % 255; 55 _rgb[1][ii] = qrand() % 255; 56 _rgb[2][ii] = qrand() % 255; 57 57 } 58 58 } … … 184 184 185 185 if(_maxRate > 0.0) { 186 QColor color = QColor::fromRgb(_r [anchor],_g[anchor],_b[anchor]);186 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]); 187 187 painter.fillRect(xx-10, int((yMax-yMin)*xLine)-yy, 10, yy, 188 188 QBrush(color,Qt::SolidPattern)); -
trunk/BNC/bncfigure.h
r1956 r1958 52 52 int _counter; 53 53 double _maxRate; 54 int _r[1001]; 55 int _g[1001]; 56 int _b[1001]; 54 int _rgb[3][1001]; 57 55 }; 58 56
Note:
See TracChangeset
for help on using the changeset viewer.