Changeset 6900 for source/ariba/utility


Ignore:
Timestamp:
Nov 10, 2009, 7:58:56 PM (15 years ago)
Author:
Christoph Mayer
Message:

-visual stuff

Location:
source/ariba/utility/visual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/visual/DddVis.cpp

    r6822 r6900  
    230230                unsigned char b
    231231){
    232         ostringstream out;
    233 
     232        NodeSet::iterator i = colorSet.find(node);
     233        unsigned int color = makeColor(r,g,b);
     234
     235        if( i == colorSet.end() ){
     236                colorSet.insert(make_pair( node, color )); // color not set for node, set
     237        }else{
     238                if( i->second == color ) return; // color already set, ignore
     239                else i->second = color;                  // new color, set
     240        }
     241
     242        ostringstream out;
    234243        out     << SET_NODE_COLOR_TYPE          << del
    235244                        << getCommandID()                       << del
  • source/ariba/utility/visual/DddVis.h

    r6822 r6900  
    217217        NetworkLinks networkLinks;
    218218
     219        NodeSet colorSet;
    219220
    220221};
Note: See TracChangeset for help on using the changeset viewer.