hegyi@106: // -*- C++ -*- // hegyi@106: hegyi@106: #ifndef KRUSKALBOX_H hegyi@106: #define KRUSKALBOX_H hegyi@106: hegyi@106: class KruskalBox; hegyi@106: hegyi@106: #include hegyi@106: #include hegyi@106: #include hegyi@106: #include hegyi@106: #include hegyi@106: hegyi@125: ///Graphical interface to run Kruskal algorithm. hegyi@125: hegyi@125: ///Child of \ref AlgoBox, hegyi@125: ///therefore the only task to do at implementation was to hegyi@125: /// hegyi@125: ///-call init function with correct parameters from correctly parametrized constructor hegyi@125: /// hegyi@125: ///-implement \ref build_box function hegyi@125: /// hegyi@125: ///-implement \ref run function hegyi@106: class KruskalBox : public AlgoBox hegyi@106: { hegyi@125: ///Shows result of Kruskal algorithm hegyi@109: Gtk::Label resultlabel; hegyi@109: hegyi@106: public: hegyi@125: ///Calls \ref AlgoBox::init function to initialize class properly, automatically. hegyi@108: KruskalBox(std::vector t); hegyi@125: hegyi@125: ///Prepare, run and postprocess Kruskal algorithm. hegyi@125: hegyi@125: ///\ref glemon works only with maps filled with double values hegyi@125: ///at the moment. While Kruskal nedds a bool map as output. hegyi@125: ///As postprocess this bool map should be transformed to hegyi@125: ///double map. hegyi@106: void run(); hegyi@125: hegyi@125: ///Builds the graphical design of the interface. hegyi@106: void build_box(); hegyi@106: }; hegyi@106: #endif //KRUSKALBOX_H