COIN-OR::LEMON - Graph Library

Changeset 1819:fd82adfbe905 in lemon-0.x for gui/gdc-broken_edge.cc


Ignore:
Timestamp:
11/21/05 13:07:05 (19 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2368
Message:

Reorganizing.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • gui/gdc-broken_edge.cc

    r1714 r1819  
    1 #include "broken_edge.h"
     1#include "graph_displayer_canvas.h"
    22#include <cmath>
    33
    4 BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false)
     4GraphDisplayerCanvas::BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false)
    55{
    66  my_points=new Gnome::Art::Point[3];
     
    88  arrow=new Gnome::Canvas::Polygon(g);
    99  *arrow << Gnome::Canvas::Properties::fill_color("red");
    10   arrow->signal_event().connect(sigc::mem_fun(*this, &BrokenEdge::edgeFormerEventHandler));
     10  arrow->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::BrokenEdge::edgeFormerEventHandler));
    1111  arrow->lower_to_bottom();
    1212  setPoints(p);
    1313}
    1414
    15 BrokenEdge::~BrokenEdge()
     15GraphDisplayerCanvas::BrokenEdge::~BrokenEdge()
    1616{
    1717  if(arrow)delete(arrow);
    1818}
    1919
    20 void BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move)
     20void GraphDisplayerCanvas::BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move)
    2121{
    2222  bool set_arrow=false;
     
    156156}
    157157
    158 bool BrokenEdge::edgeFormerEventHandler(GdkEvent* e)
     158bool GraphDisplayerCanvas::BrokenEdge::edgeFormerEventHandler(GdkEvent* e)
    159159{
    160160  switch(e->type)
     
    208208}
    209209
    210 xy<double> BrokenEdge::getArrowPos()
     210xy<double> GraphDisplayerCanvas::BrokenEdge::getArrowPos()
    211211{
    212212  xy<double> ret_val(my_points[1].get_x(),my_points[1].get_y());
Note: See TracChangeset for help on using the changeset viewer.