COIN-OR::LEMON - Graph Library

Changeset 172:fc1e478697d3 in glemon-0.x for gui_reader.cc


Ignore:
Timestamp:
10/25/06 15:21:24 (16 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3017
Message:

Currently visualized map can be saved and loaded from file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui_reader.cc

    r150 r172  
    2727  }
    2828  mapstorage->ArrowPosReadOK();
     29
     30  std::map<int, std::string> nm;
     31  x("active_nodemaps", nm);
     32
     33  for(int i=0;i<NODE_PROPERTY_NUM;i++)
     34    {
     35      mapstorage->changeActiveMap(false, i, nm[i]);
     36    }
     37
     38  std::map<int, std::string> em;
     39  x("active_edgemaps", em);
     40  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
     41    {
     42      mapstorage->changeActiveMap(true, i, em[i]);
     43    }
    2944}
    3045
Note: See TracChangeset for help on using the changeset viewer.