COIN-OR::LEMON - Graph Library

Changeset 4:e099638ff236 in glemon-0.x for graph_displayer_canvas.h


Ignore:
Timestamp:
05/27/05 12:34:20 (19 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1915
Message:

Small documentation is added to GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.h

    r1 r4  
    99#include <libgnomecanvasmm/polygon.h>
    1010
     11///This class is the canvas, on which the graph can be drawn.
    1112class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    1213{
     
    1718  virtual ~GraphDisplayerCanvas();
    1819
     20  ///Changes the linewidth attribute according to the given map.
     21  ///\param mapname is the name of the map which contains the new values
    1922  int changeLineWidth (std::string mapname);
     23
     24  ///Changes the linecolor attribute according to the given map.
     25  ///\param mapname is the name of the map which contains the new values
    2026  int changeColor (std::string mapname);
     27
     28  ///Changes the text of line attribute according to the given map.
     29  ///\param mapname is the name of the map which contains the new values
    2130  int changeText (std::string mapname);
     31
     32  ///Changes the dot-pro-pixel to be able to show the whole graph.
    2233  int rezoom();
    2334
    2435protected:
    2536
     37  //maximizing, minimizing, restoring window, etc.
    2638  virtual bool on_expose_event(GdkEventExpose *);
    2739
    2840private:
    2941
    30   ///Event handler function that handles dragging nodes of displayed_graph
     42  ///This function is responsible for the correct
     43  ///reaction of any action happened in the territory
     44  ///of the canvas
    3145  bool event_handler(GdkEvent* e, Node n);
    3246
    3347  ///The graph, on which we work
    3448  Graph g;
    35   ///Map of nodes of planefigure
     49
     50  ///Map of nodes of graph
    3651  Graph::NodeMap<Gnome::Canvas::Ellipse *> nodesmap;
    37   ///Map of edges of planefigure
     52
     53  ///Map of edges of graph
    3854  Graph::EdgeMap<Gnome::Canvas::Line *> edgesmap;
    3955
Note: See TracChangeset for help on using the changeset viewer.