Changeset 194:6b2b718420eb in glemon-0.x for graph_displayer_canvas-edge.cc
- Timestamp:
- 02/28/07 19:20:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3205
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-edge.cc
r179 r194 17 17 */ 18 18 19 #include "graph_displayer_canvas.h" 19 #include <graph_displayer_canvas.h> 20 #include <mapstorage.h> 21 #include <nbtab.h> 20 22 #include <cmath> 21 23 … … 28 30 min=edge_property_defaults[E_WIDTH]; 29 31 max=edge_property_defaults[E_WIDTH]; 30 Graph::EdgeMap<double> actual_map((mytab.mapstorage) .graph,edge_property_defaults[E_WIDTH]);32 Graph::EdgeMap<double> actual_map((mytab.mapstorage)->graph,edge_property_defaults[E_WIDTH]); 31 33 32 34 if(edge==INVALID) 33 35 { 34 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)36 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 35 37 { 36 38 double v=fabs(actual_map[i]); … … 69 71 double min, max; 70 72 71 min=(mytab.mapstorage) .minOfEdgeMap(mapname);72 max=(mytab.mapstorage) .maxOfEdgeMap(mapname);73 actual_map=((mytab.mapstorage) .edgemap_storage)[mapname];74 75 if(edge==INVALID) 76 { 77 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)73 min=(mytab.mapstorage)->minOfEdgeMap(mapname); 74 max=(mytab.mapstorage)->maxOfEdgeMap(mapname); 75 actual_map=((mytab.mapstorage)->edgemap_storage)[mapname]; 76 77 if(edge==INVALID) 78 { 79 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 78 80 { 79 81 double v=(*actual_map)[i]; … … 132 134 //green in RGB 133 135 Graph::EdgeMap<double> * actual_map; 134 actual_map=((mytab.mapstorage) .edgemap_storage)[mapname];136 actual_map=((mytab.mapstorage)->edgemap_storage)[mapname]; 135 137 136 138 double max, min; 137 139 138 max=(mytab.mapstorage) .maxOfEdgeMap(mapname);139 min=(mytab.mapstorage) .minOfEdgeMap(mapname);140 141 if(edge==INVALID) 142 { 143 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)140 max=(mytab.mapstorage)->maxOfEdgeMap(mapname); 141 min=(mytab.mapstorage)->minOfEdgeMap(mapname); 142 143 if(edge==INVALID) 144 { 145 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 144 146 { 145 147 double w=(*actual_map)[i]; … … 183 185 //the minimum of the nodemap to the range of 184 186 //green in RGB 185 Graph::EdgeMap<double> actual_map((mytab.mapstorage) .graph,edge_property_defaults[E_COLOR]);187 Graph::EdgeMap<double> actual_map((mytab.mapstorage)->graph,edge_property_defaults[E_COLOR]); 186 188 187 189 double max, min; … … 192 194 if(edge==INVALID) 193 195 { 194 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)196 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 195 197 { 196 198 double w=actual_map[i]; … … 237 239 if(edge==INVALID) 238 240 { 239 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)241 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 240 242 { 241 243 edgemap_to_edit=mapname; 242 double number=(*((mytab.mapstorage) .edgemap_storage)[mapname])[i];244 double number=(*((mytab.mapstorage)->edgemap_storage)[mapname])[i]; 243 245 244 246 std::ostringstream ostr; … … 251 253 else 252 254 { 253 double number=(*((mytab.mapstorage) .edgemap_storage)[mapname])[edge];255 double number=(*((mytab.mapstorage)->edgemap_storage)[mapname])[edge]; 254 256 255 257 std::ostringstream ostr; … … 272 274 if(edge==INVALID) 273 275 { 274 for (EdgeIt i((mytab.mapstorage) .graph); i!=INVALID; ++i)276 for (EdgeIt i((mytab.mapstorage)->graph); i!=INVALID; ++i) 275 277 { 276 278 edgemap_to_edit="";
Note: See TracChangeset
for help on using the changeset viewer.