mapstorage.h
branchgui
changeset 94 adfdc2f70548
parent 63 59768817442a
child 98 f60f89147531
     1.1 --- a/mapstorage.h	Wed Nov 23 16:24:59 2005 +0000
     1.2 +++ b/mapstorage.h	Tue Nov 29 19:31:58 2005 +0000
     1.3 @@ -3,8 +3,11 @@
     1.4  #ifndef MAPSTORAGE_H
     1.5  #define MAPSTORAGE_H
     1.6  
     1.7 +class Mapstorage;
     1.8 +
     1.9  #include "all_include.h"
    1.10  #include "xymap.h"
    1.11 +#include <libgnomecanvasmm.h>
    1.12  
    1.13  ///Class MapStorage is responsible for storing
    1.14  ///NodeMaps and EdgeMaps that can be shown later
    1.15 @@ -37,12 +40,22 @@
    1.16    //Stores the default values for the different visualization edge attributes
    1.17    std::vector<Graph::EdgeMap<double> > default_edgemaps;
    1.18  
    1.19 +  //Stores the active maps for the different visualization node attributes
    1.20 +  std::vector< std::string > active_nodemaps;
    1.21 +
    1.22 +  //Stores the active maps for the different visualization edge attributes
    1.23 +  std::vector< std::string > active_edgemaps;
    1.24 +
    1.25    // Default values for the maps
    1.26    std::map< std::string, double > nodemap_default;
    1.27  
    1.28    // Default values for the maps
    1.29    std::map< std::string, double > edgemap_default;
    1.30  
    1.31 +protected:
    1.32 +  typedef sigc::signal<void, bool, int> Signal_Prop;
    1.33 +  Signal_Prop signal_prop;
    1.34 +
    1.35  public:
    1.36    ///Constructor of MapStorage. Expects the Graph of
    1.37    ///which maps will be stored in it.
    1.38 @@ -54,6 +67,16 @@
    1.39  
    1.40    ~MapStorage();
    1.41  
    1.42 +  void changeActiveMap(bool, int, std::string);
    1.43 +
    1.44 +  std::string getActiveEdgeMap(int);
    1.45 +  std::string getActiveNodeMap(int);
    1.46 +
    1.47 +  std::vector<std::string> getEdgeMapList();
    1.48 +  std::vector<std::string> getNodeMapList();
    1.49 +
    1.50 +  Signal_Prop signal_prop_ch();
    1.51 +
    1.52    ///Adds given map to storage. A name and the map itself has to be provided.
    1.53    ///\param name is the name of map
    1.54    ///\nodemap is the pointer of the given nodemap