mapstorage.h
branchgui
changeset 107 b1be10a9a2b6
parent 94 adfdc2f70548
child 108 bf355fd6563e
equal deleted inserted replaced
9:55c1aef2df37 10:614dc449e6c3
    21 class MapStorage
    21 class MapStorage
    22 {
    22 {
    23 public:
    23 public:
    24 
    24 
    25   Graph graph;
    25   Graph graph;
       
    26   /// the coordinates of the nodes
    26   XYMap<Graph::NodeMap<double> > coords;
    27   XYMap<Graph::NodeMap<double> > coords;
       
    28   /// the coordinates of the arrows on the edges
       
    29   XYMap<Graph::EdgeMap<double> > arrow_pos;
    27 
    30 
    28   bool modified;
    31   bool modified;
    29   std::string file_name;
    32   std::string file_name;
    30 
    33 
    31   ///Stores double type NodeMaps
    34   ///Stores double type NodeMaps
    49   // Default values for the maps
    52   // Default values for the maps
    50   std::map< std::string, double > nodemap_default;
    53   std::map< std::string, double > nodemap_default;
    51 
    54 
    52   // Default values for the maps
    55   // Default values for the maps
    53   std::map< std::string, double > edgemap_default;
    56   std::map< std::string, double > edgemap_default;
       
    57 
       
    58   bool arrow_pos_read_ok;
    54 
    59 
    55 protected:
    60 protected:
    56   typedef sigc::signal<void, bool, int> Signal_Prop;
    61   typedef sigc::signal<void, bool, int> Signal_Prop;
    57   Signal_Prop signal_prop;
    62   Signal_Prop signal_prop;
    58 
    63 
   125 
   130 
   126   int readFromFile(const std::string &);
   131   int readFromFile(const std::string &);
   127   void writeToFile(const std::string &);
   132   void writeToFile(const std::string &);
   128 
   133 
   129   void clear();
   134   void clear();
       
   135 
       
   136   void ArrowPosReadOK();
   130 };
   137 };
   131 
   138 
   132 #endif //MAPSTORAGE_H
   139 #endif //MAPSTORAGE_H