diff -r d8475431bbbb -r 8e85e6bbefdf src/gui/mapstorage.cc --- a/src/gui/mapstorage.cc Sat May 21 21:04:57 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -#include - -MapStorage::MapStorage(Graph & graph):g(graph) -{ - for(int i=0;i emd(g); - default_edgemaps.push_back(emd); - Graph::NodeMap nmd(g); - default_nodemaps.push_back(nmd); - } - - //std::string defaultstr="Default "; - for(int i=0;i *nodemap) -{ - nodemap_storage[name]=nodemap; - return 0; -} -int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap *edgemap) -{ - edgemap_storage[name]=edgemap; - return 0; -} - -double MapStorage::maxOfNodeMap(const std::string & name) -{ - double max=0; - for (NodeIt j(g); j!=INVALID; ++j) - { - if( (*nodemap_storage[name])[j]>max ) - { - max=(*nodemap_storage[name])[j]; - } - } - return max; -} - -double MapStorage::maxOfEdgeMap(const std::string & name) -{ - double max=0; - for (EdgeIt j(g); j!=INVALID; ++j) - { - if( (*edgemap_storage[name])[j]>max ) - { - max=(*edgemap_storage[name])[j]; - } - } - return max; -} - -double MapStorage::minOfNodeMap(const std::string & name) -{ - NodeIt j(g); - double min=(*nodemap_storage[name])[j]; - for (; j!=INVALID; ++j) - { - if( (*nodemap_storage[name])[j]