COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
12/17/05 21:55:41 (14 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2432
Message:

Save and load the coordinates of the arrows on the edges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas.cc

    r1849 r1860  
    169169          (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].y));
    170170   
    171     edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this);
     171    edgesmap[i]=new BrokenEdge(displayed_graph, i, *this);
    172172    *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
    173173    edgesmap[i]->property_width_units().set_value(10);   
     
    176176    //initializing edge-text as well, to empty string
    177177
    178     xy<double> text_pos=edgesmap[i]->getArrowPos();
    179     text_pos+=(xy<double>(10,10));
     178    XY text_pos=mytab.mapstorage.arrow_pos[i];
     179    text_pos+=(XY(10,10));
    180180
    181181    edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
Note: See TracChangeset for help on using the changeset viewer.