Changeset 1993 in ntrip


Ignore:
Timestamp:
Nov 20, 2009, 9:47:36 AM (14 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1990 r1993  
    5252  slotNextAnimationFrame();
    5353  for (int ii = 0; ii <= 1000; ii++) {
    54     _rgb[0][ii] = qrand() % 255;
    55     _rgb[2][ii] = qrand() % 255;
    56     _rgb[1][ii] = qrand() % 255;
     54    _ran[0][ii] = qrand() % 255;
     55    _ran[1][ii] = qrand() % 40;
     56    _ran[2][ii] = qrand() % 100;
    5757  }
    5858}
     
    181181    if(_maxRate > 0.0) {
    182182      int yy = int(yLength * (it.value()->_mean / _maxRate));
    183       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     183      QColor color = QColor::fromHsv(0,100+_ran[1][anchor],155+_ran[2][anchor]);
    184184      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    185185                       QBrush(color,Qt::SolidPattern));
  • trunk/BNC/bncfigure.h

    r1958 r1993  
    5252  int                           _counter;
    5353  double                        _maxRate;
    54   int                           _rgb[3][1001];
     54  int                           _ran[3][1001];
    5555};
    5656
  • trunk/BNC/bncfigurelate.cpp

    r1992 r1993  
    5252  slotNextAnimationFrame();
    5353  for (int ii = 0; ii <= 1000; ii++) {
    54     _rgb[0][ii] = qrand() % 255;
    55     _rgb[2][ii] = qrand() % 255;
    56     _rgb[1][ii] = qrand() % 255;
     54    _ran[0][ii] = qrand() % 255;
     55    _ran[1][ii] = qrand() % 255;
     56    _ran[2][ii] = qrand() % 100;
    5757  }
    5858}
     
    156156    if(maxLate > 0.0) {
    157157      int yy = int(yLength * (it.value() / maxLate));
    158       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     158      QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]);
    159159      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    160160                       QBrush(color,Qt::SolidPattern));
  • trunk/BNC/bncfigurelate.h

    r1982 r1993  
    4343  QMap<QByteArray, double> _latency;
    4444  QMutex                   _mutex;
    45   int                      _rgb[3][1001];
     45  int                      _ran[3][1001];
    4646};
    4747
Note: See TracChangeset for help on using the changeset viewer.