Changeset 1825:535d2eccfc03 in lemon-0.x for gui/graph_displayer_canvas-node.cc
- Timestamp:
- 11/22/05 11:27:25 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/graph_displayer_canvas-node.cc
r1819 r1825 62 62 int GraphDisplayerCanvas::resetNodeRadius (Node node) 63 63 { 64 Graph::NodeMap<double> * actual_map;65 64 double min, max; 66 65 min=node_property_defaults[N_RADIUS]; 67 66 max=node_property_defaults[N_RADIUS]; 68 actual_map=new Graph::NodeMap<double>(mapstorage.graph,node_property_defaults[N_RADIUS]);67 Graph::NodeMap<double> actual_map(mapstorage.graph,node_property_defaults[N_RADIUS]); 69 68 70 69 if(node==INVALID) … … 72 71 for (NodeIt i(mapstorage.graph); i!=INVALID; ++i) 73 72 { 74 double v=fabs( (*actual_map)[i]);73 double v=fabs(actual_map[i]); 75 74 int w; 76 75 if(min==max) … … 99 98 { 100 99 //I think only new nodes use this case 101 // int w=(int) (*actual_map)[node];100 // int w=(int)actual_map[node]; 102 101 int w=(int)(node_property_defaults[N_RADIUS]); 103 102 if(w>=0) … … 180 179 //green in RGB 181 180 182 Graph::NodeMap<double> * actual_map; 183 actual_map=new Graph::NodeMap<double>(mapstorage.graph,node_property_defaults[N_COLOR]); 181 Graph::NodeMap<double> actual_map(mapstorage.graph,node_property_defaults[N_COLOR]); 184 182 185 183 double max, min; … … 195 193 Gdk::Color color; 196 194 197 double w= (*actual_map)[i];195 double w=actual_map[i]; 198 196 199 197 if(max!=min) … … 213 211 Gdk::Color color; 214 212 215 double w= (*actual_map)[node];213 double w=actual_map[node]; 216 214 217 215 if(max!=min)
Note: See TracChangeset
for help on using the changeset viewer.