COIN-OR::LEMON - Graph Library

Changeset 1512:e54392395480 in lemon-0.x for gui/graph_displayer_canvas.h


Ignore:
Timestamp:
06/24/05 20:16:12 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1996
Message:

NodeMap? values are now visualizable. Todo: default map-values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas.h

    r1505 r1512  
    77
    88#include <all_include.h>
     9#include <map_win.h>
    910#include <mapstorage.h>
    1011#include <broken_edge.h>
     
    1819
    1920public:
    20   GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &);
     21  GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &, MapWin *);
    2122  virtual ~GraphDisplayerCanvas();
    2223
    2324  ///Changes the linewidth attribute according to the given map.
    2425  ///\param mapname is the name of the map which contains the new values
    25   int changeLineWidth (std::string mapname);
     26  int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID);
    2627
    2728  ///Changes the linecolor attribute according to the given map.
    2829  ///\param mapname is the name of the map which contains the new values
    29   int changeColor (std::string mapname);
     30  int changeEdgeColor (std::string mapname, Graph::Edge new_item=INVALID);
    3031
    3132  ///Changes the text of line attribute according to the given map.
    3233  ///\param mapname is the name of the map which contains the new values
    33   int changeText (std::string mapname);
     34  int changeEdgeText (std::string mapname, Graph::Edge new_item=INVALID);
     35
     36  ///Changes the linewidth attribute according to the given map.
     37  ///\param mapname is the name of the map which contains the new values
     38  int changeNodeRadius (std::string mapname, Graph::Node new_item=INVALID);
     39
     40  ///Changes the linecolor attribute according to the given map.
     41  ///\param mapname is the name of the map which contains the new values
     42  int changeNodeColor (std::string mapname, Graph::Node new_item=INVALID);
     43
     44  ///Changes the text of line attribute according to the given map.
     45  ///\param mapname is the name of the map which contains the new values
     46  int changeNodeText (std::string mapname, Graph::Node new_item=INVALID);
    3447
    3548  ///Callback for 'ViewZoomIn' action.
     
    108121  Graph::EdgeMap<Gnome::Canvas::Text *> edgetextmap;
    109122
     123  ///Map of texts to write on nodes
     124  Graph::NodeMap<Gnome::Canvas::Text *> nodetextmap;
     125
    110126  ///Group of graphical elements of displayed_graph
    111127  Gnome::Canvas::Group displayed_graph;
     
    134150  static const int zoom_step = 5;
    135151
     152  ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
     153  MapWin * mapwin;
     154
    136155};
    137156
Note: See TracChangeset for help on using the changeset viewer.