Changeset 1440:3d2e3cfb2a6c in lemon-0.x for gui/graph_displayer_canvas.h
- Timestamp:
- 05/27/05 12:34:20 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1915
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/graph_displayer_canvas.h
r1435 r1440 9 9 #include <libgnomecanvasmm/polygon.h> 10 10 11 ///This class is the canvas, on which the graph can be drawn. 11 12 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA 12 13 { … … 17 18 virtual ~GraphDisplayerCanvas(); 18 19 20 ///Changes the linewidth attribute according to the given map. 21 ///\param mapname is the name of the map which contains the new values 19 22 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 20 26 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 21 30 int changeText (std::string mapname); 31 32 ///Changes the dot-pro-pixel to be able to show the whole graph. 22 33 int rezoom(); 23 34 24 35 protected: 25 36 37 //maximizing, minimizing, restoring window, etc. 26 38 virtual bool on_expose_event(GdkEventExpose *); 27 39 28 40 private: 29 41 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 31 45 bool event_handler(GdkEvent* e, Node n); 32 46 33 47 ///The graph, on which we work 34 48 Graph g; 35 ///Map of nodes of planefigure 49 50 ///Map of nodes of graph 36 51 Graph::NodeMap<Gnome::Canvas::Ellipse *> nodesmap; 37 ///Map of edges of planefigure 52 53 ///Map of edges of graph 38 54 Graph::EdgeMap<Gnome::Canvas::Line *> edgesmap; 39 55
Note: See TracChangeset
for help on using the changeset viewer.