COIN-OR::LEMON - Graph Library

Changeset 89:4042761b21e3 in glemon-0.x for graph_displayer_canvas.h


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

Reorganizing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.h

    r88 r89  
    88#include "all_include.h"
    99#include "mapstorage.h"
    10 #include "broken_edge.h"
    1110#include "map_win.h"
    1211#include <libgnomecanvasmm.h>
    1312#include <libgnomecanvasmm/polygon.h>
     13#include <lemon/xy.h>
    1414
    1515///This class is the canvas, on which the graph can be drawn.
    1616class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    1717{
     18  class BrokenEdge : public Gnome::Canvas::Line
     19  {
     20    GraphDisplayerCanvas & gdc;
     21    Gnome::Canvas::Polygon * arrow;
     22    Gnome::Art::Point * my_points;
     23
     24
     25    ///Indicates whether the button of mouse is pressed or not
     26    bool isbutton;
     27
     28    ///At this location was the mousebutton pressed.
     29    ///It helps to calculate the distance of dragging.
     30    double clicked_x, clicked_y;
     31
     32    ///event handler for forming edges
     33    bool edgeFormerEventHandler(GdkEvent*);
     34  public:
     35    BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &);
     36    ~BrokenEdge();
     37    void setPoints(Gnome::Canvas::Points, bool move=false);
     38    xy<double> getArrowPos();
     39  };
    1840  typedef Gnome::Canvas::CanvasAA Parent;
    1941
Note: See TracChangeset for help on using the changeset viewer.