Changeset 166:302d75b08b27 in glemon-0.x for graph_displayer_canvas.cc
- Timestamp:
- 10/16/06 15:05:25 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2992
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.cc
r160 r166 7 7 isbutton(0), active_item(NULL), target_item(NULL), nodemap_to_edit(""), 8 8 edgemap_to_edit(""), autoscale(true), zoomtrack(false), radius_size(20), edge_width(10), 9 iterations(20), attraction(0.05), propulsation(40000), mytab(mainw)9 iterations(20), attraction(0.05), propulsation(40000), was_redesigned(false), mytab(mainw) 10 10 { 11 11 //base event handler is move tool … … 256 256 void GraphDisplayerCanvas::reDesignGraph() 257 257 { 258 double min_dist=40; 258 double min_dist=20; 259 double init_vector_length=25; 260 261 if(!was_redesigned) 262 { 263 NodeIt i((mytab.mapstorage).graph); 264 double r=random(); 265 dim2::Point<double> init(init_vector_length*sin(r),init_vector_length*cos(r)); 266 moveNode(init.x, init.y, nodesmap[i], i); 267 was_redesigned=true; 268 } 269 259 270 260 271 //iteration counter
Note: See TracChangeset
for help on using the changeset viewer.