Graph redesign starts with an initial kick of the first node.
8 #include <all_include.h>
10 #include <libgnomecanvasmm.h>
11 #include <libgnomecanvasmm/polygon.h>
13 ///Graphical interface to run Dijkstra algorithm.
15 ///Child of \ref AlgoBox,
16 ///therefore the only task to do at implementation was to
18 ///-call init function with correct parameters from correctly parametrized constructor
20 ///-implement \ref build_box function
22 ///-implement \ref run function
23 class DijkstraBox : public AlgoBox
26 ///Shows result of Dijkstra algorithm
27 Gtk::Label resultlabel;
30 ///Table for nodeselector widgets
33 ///Combobox for select source node
34 Gtk::ComboBoxText source;
36 ///Combobox for select target node
37 Gtk::ComboBoxText target;
39 ///Gets to and from node from combobox
40 void get_from_to(Node &, Node &, Graph &);
43 ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
44 DijkstraBox(std::vector<std::string> t);
46 ///Prepare, run and postprocess Dijkstra algorithm.
48 ///\ref glemon works only with maps filled with double values
49 ///at the moment. While Dijkstra nedds a bool map as output.
50 ///As postprocess this bool map should be transformed to
54 ///Builds the graphical design of the interface.
55 virtual void build_box();
57 void maplists_updated();
60 class SuurballeBox : public DijkstraBox
62 ///number of paths to find
65 ///Widget to set numbewr of paths to find
66 Gtk::SpinButton * num_set;
72 SuurballeBox(std::vector<std::string> t);
76 #endif //DIJKSTRABOX_H