diff -r 56eb90299693 -r adfdc2f70548 mapstorage.h --- a/mapstorage.h Wed Nov 23 16:24:59 2005 +0000 +++ b/mapstorage.h Tue Nov 29 19:31:58 2005 +0000 @@ -3,8 +3,11 @@ #ifndef MAPSTORAGE_H #define MAPSTORAGE_H +class Mapstorage; + #include "all_include.h" #include "xymap.h" +#include ///Class MapStorage is responsible for storing ///NodeMaps and EdgeMaps that can be shown later @@ -37,12 +40,22 @@ //Stores the default values for the different visualization edge attributes std::vector > default_edgemaps; + //Stores the active maps for the different visualization node attributes + std::vector< std::string > active_nodemaps; + + //Stores the active maps for the different visualization edge attributes + std::vector< std::string > active_edgemaps; + // Default values for the maps std::map< std::string, double > nodemap_default; // Default values for the maps std::map< std::string, double > edgemap_default; +protected: + typedef sigc::signal Signal_Prop; + Signal_Prop signal_prop; + public: ///Constructor of MapStorage. Expects the Graph of ///which maps will be stored in it. @@ -54,6 +67,16 @@ ~MapStorage(); + void changeActiveMap(bool, int, std::string); + + std::string getActiveEdgeMap(int); + std::string getActiveNodeMap(int); + + std::vector getEdgeMapList(); + std::vector getNodeMapList(); + + Signal_Prop signal_prop_ch(); + ///Adds given map to storage. A name and the map itself has to be provided. ///\param name is the name of map ///\nodemap is the pointer of the given nodemap