Rev | Line | |
---|
[1497] | 1 | #include <broken_edge.h> |
---|
| 2 | |
---|
| 3 | BrokenEdge::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.