COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/broken_edge.cc @ 1498:352b1ee13bc0

Last change on this file since 1498:352b1ee13bc0 was 1497:529e48eb9786, checked in by Hegyi Péter, 19 years ago

Broken edges are appearing.

File size: 465 bytes
Line 
1#include <broken_edge.h>
2
3BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p) : Line(g)
4{
5  if(p.size()==2)
6    {
7      Gnome::Canvas::Points points_with_center;
8      points_with_center.push_back(p[0]);
9      points_with_center.push_back(Gnome::Art::Point( (p[0].get_x()+p[1].get_x())/2+30 , (p[0].get_y()+p[1].get_y())/2 )+30 );
10      points_with_center.push_back(p[1]);
11     
12      property_points().set_value(points_with_center);
13    }
14}
Note: See TracBrowser for help on using the repository browser.