1.1 --- a/gui/mapstorage.h Fri Aug 19 12:09:21 2005 +0000
1.2 +++ b/gui/mapstorage.h Tue Aug 23 07:36:09 2005 +0000
1.3 @@ -37,6 +37,12 @@
1.4 //Stores the default values for the different visualization edge attributes
1.5 std::vector<Graph::EdgeMap<double> > default_edgemaps;
1.6
1.7 + // Default values for the maps
1.8 + std::map< std::string, double > nodemap_default;
1.9 +
1.10 + // Default values for the maps
1.11 + std::map< std::string, double > edgemap_default;
1.12 +
1.13 public:
1.14 ///Constructor of MapStorage. Expects the Graph of
1.15 ///which maps will be stored in it.
1.16 @@ -52,13 +58,13 @@
1.17 ///\param name is the name of map
1.18 ///\nodemap is the pointer of the given nodemap
1.19 ///\todo map should be given by reference!
1.20 - int addNodeMap(const std::string &,Graph::NodeMap<double> *);
1.21 + int addNodeMap(const std::string &,Graph::NodeMap<double> *, double);
1.22
1.23 ///Adds given map to storage. A name and the map itself has to be provided.
1.24 ///\param name is the name of map
1.25 ///\edgemap is the pointer of the given edgemap
1.26 ///\todo map should be given by reference!
1.27 - int addEdgeMap(const std::string &,Graph::EdgeMap<double> *);
1.28 + int addEdgeMap(const std::string &,Graph::EdgeMap<double> *, double);
1.29
1.30 ///Returns how much nodemaps is stored in \ref MapStorage
1.31 int numOfNodeMaps() {return nodemap_storage.size();};
1.32 @@ -94,13 +100,7 @@
1.33 ///To be able to iterate through each maps this function returns an iterator pointing to the last edgemap in the storage.
1.34 std::map< std::string,Graph::EdgeMap<double> * >::iterator endOfEdgeMaps(){return edgemap_storage.end();};
1.35
1.36 - ///This function sets a default base value for the newly created node
1.37 - void initMapsForNode(NodeIt);
1.38 -
1.39 - ///This function sets a default base value for the newly created node
1.40 - void initMapsForEdge(Graph::Edge);
1.41 -
1.42 - void readFromFile(const std::string &);
1.43 + int readFromFile(const std::string &);
1.44 void writeToFile(const std::string &);
1.45
1.46 void clear();