Rev | Line | |
---|
[1876] | 1 | // -*- C++ -*- // |
---|
| 2 | |
---|
| 3 | #ifndef KRUSKALBOX_H |
---|
| 4 | #define KRUSKALBOX_H |
---|
| 5 | |
---|
| 6 | class KruskalBox; |
---|
| 7 | |
---|
| 8 | #include <all_include.h> |
---|
| 9 | #include <algobox.h> |
---|
| 10 | #include <lemon/kruskal.h> |
---|
| 11 | #include <libgnomecanvasmm.h> |
---|
| 12 | #include <libgnomecanvasmm/polygon.h> |
---|
| 13 | |
---|
[1896] | 14 | ///Graphical interface to run Kruskal algorithm. |
---|
| 15 | |
---|
| 16 | ///Child of \ref AlgoBox, |
---|
| 17 | ///therefore the only task to do at implementation was to |
---|
| 18 | /// |
---|
| 19 | ///-call init function with correct parameters from correctly parametrized constructor |
---|
| 20 | /// |
---|
| 21 | ///-implement \ref build_box function |
---|
| 22 | /// |
---|
| 23 | ///-implement \ref run function |
---|
[1876] | 24 | class KruskalBox : public AlgoBox |
---|
| 25 | { |
---|
[1896] | 26 | ///Shows result of Kruskal algorithm |
---|
[1879] | 27 | Gtk::Label resultlabel; |
---|
| 28 | |
---|
[1876] | 29 | public: |
---|
[1896] | 30 | ///Calls \ref AlgoBox::init function to initialize class properly, automatically. |
---|
[1878] | 31 | KruskalBox(std::vector<std::string> t); |
---|
[1896] | 32 | |
---|
| 33 | ///Prepare, run and postprocess Kruskal algorithm. |
---|
| 34 | |
---|
| 35 | ///\ref glemon works only with maps filled with double values |
---|
| 36 | ///at the moment. While Kruskal nedds a bool map as output. |
---|
| 37 | ///As postprocess this bool map should be transformed to |
---|
| 38 | ///double map. |
---|
[1876] | 39 | void run(); |
---|
[1896] | 40 | |
---|
| 41 | ///Builds the graphical design of the interface. |
---|
[1876] | 42 | void build_box(); |
---|
| 43 | }; |
---|
| 44 | #endif //KRUSKALBOX_H |
---|
Note: See
TracBrowser
for help on using the repository browser.