gui/mapstorage.cc
changeset 1907 9f9eeb4d5c69
parent 1881 f40cdc2057c2
child 1939 591e717155ac
equal deleted inserted replaced
21:75908f6b3607 22:30ec13d6f521
    49   {
    49   {
    50     delete it->second;
    50     delete it->second;
    51   }
    51   }
    52 }
    52 }
    53 
    53 
    54 int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value = 0.0)
    54 int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value)
    55 {
    55 {
       
    56   std::cout << default_value << std::endl;
    56   if( nodemap_storage.find(name) == nodemap_storage.end() )
    57   if( nodemap_storage.find(name) == nodemap_storage.end() )
    57     {
    58     {
    58       nodemap_storage[name]=nodemap;
    59       nodemap_storage[name]=nodemap;
    59       // set the maps default value
    60       // set the maps default value
    60       nodemap_default[name] = default_value;
    61       nodemap_default[name] = default_value;
   120 MapStorage::Signal_Prop MapStorage::signal_prop_ch()
   121 MapStorage::Signal_Prop MapStorage::signal_prop_ch()
   121 {
   122 {
   122   return signal_prop;
   123   return signal_prop;
   123 }
   124 }
   124 
   125 
   125 int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value = 0.0)
   126 int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value)
   126 {
   127 {
   127   if( edgemap_storage.find(name) == edgemap_storage.end() )
   128   if( edgemap_storage.find(name) == edgemap_storage.end() )
   128     {
   129     {
   129       edgemap_storage[name]=edgemap;
   130       edgemap_storage[name]=edgemap;
   130       // set the maps default value
   131       // set the maps default value