Changeset 91:55cf06f14981 in glemon-0.x for graph_displayer_canvas-edge.cc
- Timestamp:
- 11/22/05 11:27:25 (18 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-edge.cc
r89 r91 5 5 int GraphDisplayerCanvas::resetEdgeWidth (Edge edge) 6 6 { 7 Graph::EdgeMap<double> * actual_map;8 7 double min, max; 9 8 10 9 min=edge_property_defaults[E_WIDTH]; 11 10 max=edge_property_defaults[E_WIDTH]; 12 actual_map=new Graph::EdgeMap<double>(mapstorage.graph,edge_property_defaults[E_WIDTH]);11 Graph::EdgeMap<double> actual_map(mapstorage.graph,edge_property_defaults[E_WIDTH]); 13 12 14 13 if(edge==INVALID) … … 16 15 for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i) 17 16 { 18 double v=fabs( (*actual_map)[i]);17 double v=fabs(actual_map[i]); 19 18 int w; 20 19 if(min==max) … … 31 30 else 32 31 { 33 int w=(int) (*actual_map)[edge];32 int w=(int)actual_map[edge]; 34 33 if(w>=0) 35 34 { … … 136 135 //the minimum of the nodemap to the range of 137 136 //green in RGB 138 Graph::EdgeMap<double> * actual_map; 139 actual_map=new Graph::EdgeMap<double>(mapstorage.graph,edge_property_defaults[E_COLOR]); 137 Graph::EdgeMap<double> actual_map(mapstorage.graph,edge_property_defaults[E_COLOR]); 140 138 141 139 double max, min; … … 148 146 for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i) 149 147 { 150 double w= (*actual_map)[i];148 double w=actual_map[i]; 151 149 152 150 Gdk::Color color; … … 166 164 Gdk::Color color; 167 165 168 double w= (*actual_map)[edge];166 double w=actual_map[edge]; 169 167 170 168 if(max!=min)
Note: See TracChangeset
for help on using the changeset viewer.