80 std::map< std::string, double > edgemap_default; |
80 std::map< std::string, double > edgemap_default; |
81 |
81 |
82 bool arrow_pos_read_ok; |
82 bool arrow_pos_read_ok; |
83 |
83 |
84 protected: |
84 protected: |
85 /// type of the signal emitted if the visualization of the maps might have to be updated. |
85 |
86 |
86 /// Signal emitted on any change made on map values |
|
87 |
|
88 /// Signal emitted if the visualization of the maps might have to be updated. |
87 /// bool shows us whether the changed map is edge or nodemap. |
89 /// bool shows us whether the changed map is edge or nodemap. |
88 /// int tells us the refreshed property |
90 /// int tells us the refreshed property |
89 typedef sigc::signal<void, bool, int> Signal_Prop; |
91 sigc::signal<void, bool, int> signal_prop; |
90 |
|
91 /// Signal emitted on any change made on map values |
|
92 Signal_Prop signal_prop; |
|
93 |
92 |
94 /// Signal emitted in the case of nodemap addition |
93 /// Signal emitted in the case of nodemap addition |
95 |
94 |
96 /// std::string is the |
95 /// std::string is the |
97 ///name of the new map |
96 ///name of the new map |
103 ///name of the new map |
102 ///name of the new map |
104 sigc::signal<void, std::string> signal_edge_map; |
103 sigc::signal<void, std::string> signal_edge_map; |
105 |
104 |
106 /// Signal emitted, when entry in \ref MapWin should be changed. |
105 /// Signal emitted, when entry in \ref MapWin should be changed. |
107 sigc::signal<void, bool, int, std::string> signal_map_win; |
106 sigc::signal<void, bool, int, std::string> signal_map_win; |
|
107 |
|
108 /// Signal emitted, when entry in \ref DesignWin should be changed. |
|
109 sigc::signal<void, double, double, int> signal_design_win; |
|
110 |
|
111 ///Iteration number during graph design |
|
112 int iterations; |
|
113 |
|
114 ///Attraction factor during graph design |
|
115 double attraction; |
|
116 |
|
117 ///Propulsation factor during graph design |
|
118 double propulsation; |
108 |
119 |
109 public: |
120 public: |
110 ///Constructor of MapStorage. |
121 ///Constructor of MapStorage. |
111 |
122 |
112 ///Its all activity is initializing default values |
123 ///Its all activity is initializing default values |
150 |
161 |
151 /// Returns the names of the nodemaps stored here. |
162 /// Returns the names of the nodemaps stored here. |
152 std::vector<std::string> getNodeMapList(); |
163 std::vector<std::string> getNodeMapList(); |
153 |
164 |
154 ///returns \ref signal_prop to be able to connect functions to it |
165 ///returns \ref signal_prop to be able to connect functions to it |
155 Signal_Prop signal_prop_ch(); |
166 sigc::signal<void, bool, int> signal_prop_ch(); |
156 |
167 |
157 ///returns \ref signal_node_map to be able to connect functions to it |
168 ///returns \ref signal_node_map to be able to connect functions to it |
158 sigc::signal<void, std::string> signal_node_map_ch(){return signal_node_map;}; |
169 sigc::signal<void, std::string> signal_node_map_ch(){return signal_node_map;}; |
159 |
170 |
160 ///returns \ref signal_edge_map to be able to connect functions to it |
171 ///returns \ref signal_edge_map to be able to connect functions to it |
161 sigc::signal<void, std::string> signal_edge_map_ch(){return signal_edge_map;}; |
172 sigc::signal<void, std::string> signal_edge_map_ch(){return signal_edge_map;}; |
162 |
173 |
163 ///returns \ref signal_map_win to be able to connect functions to it |
174 ///returns \ref signal_map_win to be able to connect functions to it |
164 sigc::signal<void, bool, int, std::string> signal_map_win_ch(){return signal_map_win;}; |
175 sigc::signal<void, bool, int, std::string> signal_map_win_ch(){return signal_map_win;}; |
|
176 |
|
177 ///returns \ref signal_design_win to be able to connect functions to it |
|
178 sigc::signal<void, double, double, int> signal_design_win_ch(){return signal_design_win;}; |
165 |
179 |
166 ///Adds given map to storage. |
180 ///Adds given map to storage. |
167 |
181 |
168 ///A name and the map itself has to be provided. |
182 ///A name and the map itself has to be provided. |
169 ///\param mapname is the name of map |
183 ///\param mapname is the name of map |
259 |
273 |
260 ///Deletes all datastructures stored here. |
274 ///Deletes all datastructures stored here. |
261 void clear(); |
275 void clear(); |
262 |
276 |
263 void ArrowPosReadOK(); |
277 void ArrowPosReadOK(); |
|
278 |
|
279 void get_design_data(double &, double &, int &); |
|
280 void set_attraction(double); |
|
281 void set_propulsation(double); |
|
282 void set_iteration(int); |
|
283 |
|
284 void redesign_data_changed(); |
264 }; |
285 }; |
265 |
286 |
266 #endif //MAPSTORAGE_H |
287 #endif //MAPSTORAGE_H |