COIN-OR::LEMON - Graph Library

Changeset 1860:27a9a75b957b in lemon-0.x for gui/graph_displayer_canvas.h


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.h

    r1849 r1860  
    1515class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    1616{
     17  friend class BrokenEdge;
     18
    1719  class BrokenEdge : public Gnome::Canvas::Line
    1820  {
     21    Edge edge;
    1922    GraphDisplayerCanvas & gdc;
    2023    Gnome::Canvas::Polygon * arrow;
    21     Gnome::Art::Point * my_points;
    22 
    2324
    2425    ///Indicates whether the button of mouse is pressed or not
     
    3233    bool edgeFormerEventHandler(GdkEvent*);
    3334  public:
    34     BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &);
     35    BrokenEdge(Gnome::Canvas::Group &, Edge, GraphDisplayerCanvas &);
    3536    ~BrokenEdge();
    36     void setPoints(Gnome::Canvas::Points, bool move=false);
    37     xy<double> getArrowPos();
     37    void draw();
    3838  };
    3939  typedef Gnome::Canvas::CanvasAA Parent;
     
    201201  NoteBookTab & mytab;
    202202
     203  XY GraphDisplayerCanvas::calcArrowPos(XY, XY, XY, XY, bool);
    203204};
    204205
Note: See TracChangeset for help on using the changeset viewer.