gui/mapstorage.h
changeset 1865 dcefd1d1377f
parent 1837 8dd6160ff699
child 1878 409a31271efd
equal deleted inserted replaced
9:d34662fa18b0 10:b4d6b548b410
    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