Changeset 91:55cf06f14981 in glemon-0.x
- Timestamp:
- 11/22/05 11:27:25 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2375
- Files:
-
- 2 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) -
graph_displayer_canvas-node.cc
r89 r91 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.