COIN-OR::LEMON - Graph Library

Changeset 157:7e6ad28aeb9e in glemon-0.x for graph_displayer_canvas.cc


Ignore:
Timestamp:
10/02/06 20:52:00 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2970
Message:

View settings also for edges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.cc

    r156 r157  
    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(""), autoscale(true), zoomtrack(false), radius_min(10), radius_max(40), radius_unit(1), mytab(mainw)
     8  edgemap_to_edit(""), autoscale(true), zoomtrack(false), radius_size(20), edge_width(10), mytab(mainw)
    99{
    1010  //base event handler is move tool
     
    228228}
    229229
    230 void GraphDisplayerCanvas::setNodeView(bool autoscale_p, bool zoomtrack_p, double min_p, double max_p, double unit_p)
     230void GraphDisplayerCanvas::setView(bool autoscale_p, bool zoomtrack_p, double width_p, double radius_p)
    231231{
    232232  autoscale=autoscale_p;
    233   radius_min=min_p;
    234   radius_max=max_p;
    235   radius_unit=unit_p;
     233  edge_width=width_p;
     234  radius_size=radius_p;
    236235
    237236  if((!zoomtrack) && zoomtrack_p)
     
    243242
    244243  propertyChange(false, N_RADIUS);
    245 }
    246 
    247 void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, bool & zoomtrack_p, double& min_p, double& max_p, double& unit_p)
     244  propertyChange(true, E_WIDTH);
     245}
     246
     247void GraphDisplayerCanvas::getView(bool & autoscale_p, bool & zoomtrack_p, double& width_p, double& radius_p)
    248248{
    249249  autoscale_p=autoscale;
    250250  zoomtrack_p=zoomtrack;
    251   min_p=radius_min;
    252   max_p=radius_max;
    253   unit_p=radius_unit;
    254 }
     251  width_p=edge_width;
     252  radius_p=radius_size;
     253}
Note: See TracChangeset for help on using the changeset viewer.