COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
06/16/05 20:08:04 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1980
Message:

Little red arrows appear in breakpoints of edges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas.cc

    r1497 r1499  
    2424    coos.push_back(Gnome::Art::Point(cm[g.target(i)].x,cm[g.target(i)].y));
    2525   
    26     //edgesmap[i]=new Gnome::Canvas::Line(displayed_graph, coos);
    2726    edgesmap[i]=new BrokenEdge(displayed_graph, coos);
    2827    *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
     
    393392            coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2));
    394393
    395             edgesmap[e]->property_points().set_value(coos);
     394            edgesmap[e]->set_points(coos);
    396395
    397396            edgesmap[e]->get_bounds(x1, y1, x2, y2);
     
    413412            coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2));
    414413
    415             edgesmap[e]->property_points().set_value(coos);
     414            edgesmap[e]->set_points(coos);
    416415
    417416            edgesmap[e]->get_bounds(x1, y1, x2, y2);
     
    544543
    545544                  //drawing new edge
    546                   edgesmap[active_edge]=new Gnome::Canvas::Line(displayed_graph, coos);
     545                  edgesmap[active_edge]=new BrokenEdge(displayed_graph, coos);
    547546                  *(edgesmap[active_edge]) << Gnome::Canvas::Properties::fill_color("green");
    548547                  edgesmap[active_edge]->property_width_pixels().set_value(10);
Note: See TracChangeset for help on using the changeset viewer.