COIN-OR::LEMON - Graph Library

Changeset 28:fa28f1071bd6 in glemon-0.x for graph-displayer.cc


Ignore:
Timestamp:
06/24/05 20:16:12 (15 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1996
Message:

NodeMap? values are now visualizable. Todo: default map-values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph-displayer.cc

    r24 r28  
    77#define MAIN_PART
    88
    9 std::vector <std::string> property_strings;
    10 std::vector <double> property_defaults;
     9std::vector <std::string> edge_property_strings;
     10std::vector <double> edge_property_defaults;
     11std::vector <std::string> node_property_strings;
     12std::vector <double> node_property_defaults;
    1113
    1214
     
    1618  //initializing
    1719
    18   property_strings.resize(PROPERTY_NUM);
    19   property_strings[WIDTH]="Width";
    20   property_strings[COLOR]="Color";
    21   property_strings[TEXT]="Text";
     20  edge_property_strings.resize(EDGE_PROPERTY_NUM);
     21  edge_property_strings[E_WIDTH]="Edge Width";
     22  edge_property_strings[E_COLOR]="Edge Color";
     23  edge_property_strings[E_TEXT]="Edge Text";
    2224
    23   property_defaults.resize(PROPERTY_NUM);
    24   property_defaults[WIDTH]=10.0;
    25   property_defaults[COLOR]=100;
    26   property_defaults[TEXT]=0;
     25  edge_property_defaults.resize(EDGE_PROPERTY_NUM);
     26  edge_property_defaults[E_WIDTH]=10.0;
     27  edge_property_defaults[E_COLOR]=100;
     28  edge_property_defaults[E_TEXT]=0;
     29
     30  node_property_strings.resize(NODE_PROPERTY_NUM);
     31  node_property_strings[N_RADIUS]="Node Radius";
     32  node_property_strings[N_COLOR]="Node Color";
     33  node_property_strings[N_TEXT]="Node Text";
     34
     35  node_property_defaults.resize(NODE_PROPERTY_NUM);
     36  node_property_defaults[N_RADIUS]=20.0;
     37  node_property_defaults[N_COLOR]=100;
     38  node_property_defaults[N_TEXT]=0;
    2739
    2840  if(argc<2)
Note: See TracChangeset for help on using the changeset viewer.