COIN-OR::LEMON - Graph Library

Changeset 154:65c1b103443d in glemon-0.x for graph_displayer_canvas.cc


Ignore:
Timestamp:
09/25/06 17:30:04 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2958
Message:

Node view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.cc

    r151 r154  
    66  nodetextmap(mainw.mapstorage.graph), displayed_graph(*(root()), 0, 0),
    77  isbutton(0), active_item(NULL), target_item(NULL), nodemap_to_edit(""),
    8   edgemap_to_edit(""), mytab(mainw)
     8  edgemap_to_edit(""), autoscale(true), radius_min(10), radius_max(40), radius_unit(1), mytab(mainw)
    99{
    1010  //base event handler is move tool
     
    227227  }
    228228}
     229
     230void GraphDisplayerCanvas::setNodeView(bool autoscale_p, double min_p, double max_p, double unit_p)
     231{
     232  autoscale=autoscale_p;
     233  radius_min=min_p;
     234  radius_max=max_p;
     235  radius_unit=unit_p;
     236  propertyChange(false, N_RADIUS);
     237}
     238
     239void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, double& min_p, double& max_p, double& unit_p)
     240{
     241  autoscale_p=autoscale;
     242  min_p=radius_min;
     243  max_p=radius_max;
     244  unit_p=radius_unit;
     245}
Note: See TracChangeset for help on using the changeset viewer.