COIN-OR::LEMON - Graph Library

Changeset 177:40f3006fba2e in glemon-0.x for graph_displayer_canvas.cc


Ignore:
Timestamp:
10/30/06 15:57:48 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3032
Message:

Redesign parameters can now be saved and loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.cc

    r174 r177  
    2626  isbutton(0), active_item(NULL), target_item(NULL), nodemap_to_edit(""),
    2727  edgemap_to_edit(""), autoscale(true), zoomtrack(false), radius_size(20), edge_width(10),
    28   iterations(20), attraction(0.05), propulsation(40000), was_redesigned(false), is_drawn(false), mytab(mainw)
     28  was_redesigned(false), is_drawn(false), mytab(mainw)
    2929{
    3030  //base event handler is move tool
     
    305305      was_redesigned=true;
    306306    }
    307  
     307
     308  double attraction;
     309  double propulsation;
     310  int iterations;
     311
     312  (mytab.mapstorage).get_design_data(attraction, propulsation, iterations);
    308313
    309314  //iteration counter
     
    394399}
    395400
    396 void GraphDisplayerCanvas::get_design_data(double & attraction_p, double & propulsation_p, int & iterations_p)
    397 {
    398   attraction_p=attraction;
    399   propulsation_p=propulsation;
    400   iterations_p=iterations;
    401 }
    402 
    403 void GraphDisplayerCanvas::set_attraction(double attraction_p)
    404 {
    405   attraction=attraction_p;
    406 }
    407 
    408 void GraphDisplayerCanvas::set_propulsation(double propulsation_p)
    409 {
    410   propulsation=propulsation_p;
    411 }
    412 
    413 void GraphDisplayerCanvas::set_iteration(int iterations_p)
    414 {
    415   iterations=iterations_p;
    416 }
    417 
Note: See TracChangeset for help on using the changeset viewer.