Changeset 178:a96d2a540454 in glemon-0.x for graph_displayer_canvas-edge.cc
- Timestamp:
- 10/30/06 16:43:13 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3035
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-edge.cc
r174 r178 77 77 for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i) 78 78 { 79 double v= fabs((*actual_map)[i]);79 double v=(*actual_map)[i]; 80 80 int w; 81 81 if(autoscale) … … 94 94 w=(int)(v*edge_width); 95 95 } 96 if(w<minimum_edge_width) 97 { 98 w=minimum_edge_width; 99 } 100 if(zoomtrack) 101 { 102 double actual_ppu=get_pixels_per_unit(); 103 w=(int)(w/actual_ppu*fixed_zoom_factor); 104 } 105 edgesmap[i]->setLineWidth(w); 96 if(w<0) 97 { 98 edgesmap[i]->hide(); 99 } 100 else 101 { 102 edgesmap[i]->show(); 103 if(w<minimum_edge_width) 104 { 105 w=minimum_edge_width; 106 } 107 if(zoomtrack) 108 { 109 double actual_ppu=get_pixels_per_unit(); 110 w=(int)(w/actual_ppu*fixed_zoom_factor); 111 } 112 edgesmap[i]->setLineWidth(w); 113 } 106 114 } 107 115 }
Note: See TracChangeset
for help on using the changeset viewer.