Changeset 155:74065e83844d in glemon-0.x for graph_displayer_canvas-node.cc
- Timestamp:
- 09/28/06 11:26:48 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2960
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-node.cc
r154 r155 2 2 #include <cmath> 3 3 4 const int minimum_node_radius=0; 4 5 5 6 int GraphDisplayerCanvas::changeNodeRadius (std::string mapname, Node node) … … 25 26 else 26 27 { 27 w=(int)( radius_min+(v-min)/(max-min)*(radius_max-radius_min));28 w=(int)(minimum_node_radius+(v-min)/(max-min)*(radius_max-minimum_node_radius)); 28 29 } 29 30 } 30 31 else 31 32 { 32 w=5+(int)(v/radius_unit); 33 } 33 w=(int)(v*radius_max); 34 } 35 36 if(w<5) 37 { 38 w=5; 39 } 40 34 41 if(w>=0) 35 42 {
Note: See TracChangeset
for help on using the changeset viewer.