COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
12/06/05 11:53:38 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2414
Message:

Notebook style is provided. Without opportunity to close tabs. :-) But with all other necessary things (I think).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas-edge.cc

    r1837 r1849  
    99  min=edge_property_defaults[E_WIDTH];
    1010  max=edge_property_defaults[E_WIDTH];
    11   Graph::EdgeMap<double> actual_map((mainwin.mapstorage).graph,edge_property_defaults[E_WIDTH]);
     11  Graph::EdgeMap<double> actual_map((mytab.mapstorage).graph,edge_property_defaults[E_WIDTH]);
    1212 
    1313  if(edge==INVALID)
    1414    {
    15       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     15      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    1616        {
    1717          double v=fabs(actual_map[i]);
     
    4545  double min, max;
    4646
    47   min=(mainwin.mapstorage).minOfEdgeMap(mapname);
    48   max=(mainwin.mapstorage).maxOfEdgeMap(mapname);
    49   actual_map=((mainwin.mapstorage).edgemap_storage)[mapname];
    50 
    51   if(edge==INVALID)
    52     {
    53       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     47  min=(mytab.mapstorage).minOfEdgeMap(mapname);
     48  max=(mytab.mapstorage).maxOfEdgeMap(mapname);
     49  actual_map=((mytab.mapstorage).edgemap_storage)[mapname];
     50
     51  if(edge==INVALID)
     52    {
     53      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    5454        {
    5555          double v=fabs((*actual_map)[i]);
     
    8484  //green in RGB
    8585  Graph::EdgeMap<double> * actual_map;
    86   actual_map=((mainwin.mapstorage).edgemap_storage)[mapname];
     86  actual_map=((mytab.mapstorage).edgemap_storage)[mapname];
    8787
    8888  double max, min;
    8989
    90   max=(mainwin.mapstorage).maxOfEdgeMap(mapname);
    91   min=(mainwin.mapstorage).minOfEdgeMap(mapname);
    92 
    93   if(edge==INVALID)
    94     {
    95       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     90  max=(mytab.mapstorage).maxOfEdgeMap(mapname);
     91  min=(mytab.mapstorage).minOfEdgeMap(mapname);
     92
     93  if(edge==INVALID)
     94    {
     95      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    9696        {
    9797          double w=(*actual_map)[i];
     
    135135  //the minimum of the nodemap to the range of
    136136  //green in RGB
    137   Graph::EdgeMap<double> actual_map((mainwin.mapstorage).graph,edge_property_defaults[E_COLOR]);
     137  Graph::EdgeMap<double> actual_map((mytab.mapstorage).graph,edge_property_defaults[E_COLOR]);
    138138
    139139  double max, min;
     
    144144  if(edge==INVALID)
    145145    {
    146       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     146      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    147147        {
    148148          double w=actual_map[i];
     
    189189  if(edge==INVALID)
    190190    {
    191       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     191      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    192192        {
    193193          edgemap_to_edit=mapname;
    194           double number=(*((mainwin.mapstorage).edgemap_storage)[mapname])[i];
     194          double number=(*((mytab.mapstorage).edgemap_storage)[mapname])[i];
    195195         
    196196          std::ostringstream ostr;
     
    203203  else
    204204    {
    205           double number=(*((mainwin.mapstorage).edgemap_storage)[mapname])[edge];
     205          double number=(*((mytab.mapstorage).edgemap_storage)[mapname])[edge];
    206206
    207207          std::ostringstream ostr;
     
    224224  if(edge==INVALID)
    225225    {
    226       for (EdgeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i)
     226      for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
    227227        {
    228228          edgemap_to_edit="";
Note: See TracChangeset for help on using the changeset viewer.