Changeset 1837:8dd6160ff699 in lemon0.x for gui/graph_displayer_canvasnode.cc
 Timestamp:
 11/29/05 20:31:58 (15 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2389
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

gui/graph_displayer_canvasnode.cc
r1825 r1837 7 7 Graph::NodeMap<double> * actual_map; 8 8 double min, max; 9 min= mapstorage.minOfNodeMap(mapname);10 max= mapstorage.maxOfNodeMap(mapname);11 actual_map=( mapstorage.nodemap_storage)[mapname];12 13 if(node==INVALID) 14 { 15 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)9 min=(mainwin.mapstorage).minOfNodeMap(mapname); 10 max=(mainwin.mapstorage).maxOfNodeMap(mapname); 11 actual_map=((mainwin.mapstorage).nodemap_storage)[mapname]; 12 13 if(node==INVALID) 14 { 15 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 16 16 { 17 17 double v=fabs((*actual_map)[i]); … … 65 65 min=node_property_defaults[N_RADIUS]; 66 66 max=node_property_defaults[N_RADIUS]; 67 Graph::NodeMap<double> actual_map( mapstorage.graph,node_property_defaults[N_RADIUS]);67 Graph::NodeMap<double> actual_map((mainwin.mapstorage).graph,node_property_defaults[N_RADIUS]); 68 68 69 69 if(node==INVALID) 70 70 { 71 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)71 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 72 72 { 73 73 double v=fabs(actual_map[i]); … … 124 124 125 125 Graph::NodeMap<double> * actual_map; 126 actual_map=( mapstorage.nodemap_storage)[mapname];126 actual_map=((mainwin.mapstorage).nodemap_storage)[mapname]; 127 127 128 128 double max, min; 129 129 130 max= mapstorage.maxOfNodeMap(mapname);131 min= mapstorage.minOfNodeMap(mapname);132 133 if(node==INVALID) 134 { 135 136 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)130 max=(mainwin.mapstorage).maxOfNodeMap(mapname); 131 min=(mainwin.mapstorage).minOfNodeMap(mapname); 132 133 if(node==INVALID) 134 { 135 136 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 137 137 { 138 138 Gdk::Color color; … … 179 179 //green in RGB 180 180 181 Graph::NodeMap<double> actual_map( mapstorage.graph,node_property_defaults[N_COLOR]);181 Graph::NodeMap<double> actual_map((mainwin.mapstorage).graph,node_property_defaults[N_COLOR]); 182 182 183 183 double max, min; … … 189 189 { 190 190 191 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)191 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 192 192 { 193 193 Gdk::Color color; … … 236 236 237 237 Graph::NodeMap<double> * actual_map=NULL; 238 actual_map=( mapstorage.nodemap_storage)[mapname];239 240 if(node==INVALID) 241 { 242 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)238 actual_map=((mainwin.mapstorage).nodemap_storage)[mapname]; 239 240 if(node==INVALID) 241 { 242 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 243 243 { 244 244 nodemap_to_edit=mapname; … … 273 273 if(node==INVALID) 274 274 { 275 for (NodeIt i( mapstorage.graph); i!=INVALID; ++i)275 for (NodeIt i((mainwin.mapstorage).graph); i!=INVALID; ++i) 276 276 { 277 277 nodemap_to_edit="";
Note: See TracChangeset
for help on using the changeset viewer.