kruskalbox.h
branchgui
changeset 125 e8bf8bbcf75a
parent 109 9f8dc346ac6e
child 174 95872af46fc4
     1.1 --- a/kruskalbox.h	Sat Jan 14 08:17:00 2006 +0000
     1.2 +++ b/kruskalbox.h	Sat Jan 14 13:42:37 2006 +0000
     1.3 @@ -11,15 +11,34 @@
     1.4  #include <libgnomecanvasmm.h>
     1.5  #include <libgnomecanvasmm/polygon.h>
     1.6  
     1.7 +///Graphical interface to run Kruskal algorithm.
     1.8 +
     1.9 +///Child of \ref AlgoBox,
    1.10 +///therefore the only task to do at implementation was to
    1.11 +///
    1.12 +///-call init function with correct parameters from correctly parametrized constructor
    1.13 +///
    1.14 +///-implement \ref build_box function
    1.15 +///
    1.16 +///-implement \ref run function
    1.17  class KruskalBox : public AlgoBox
    1.18  {
    1.19 +  ///Shows result of Kruskal algorithm
    1.20    Gtk::Label resultlabel;
    1.21  
    1.22  public:
    1.23 +  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
    1.24    KruskalBox(std::vector<std::string> t);
    1.25 -    
    1.26 +
    1.27 +  ///Prepare, run and postprocess Kruskal algorithm.
    1.28 +
    1.29 +  ///\ref glemon works only with maps filled with double values
    1.30 +  ///at the moment. While Kruskal nedds a bool map as output.
    1.31 +  ///As postprocess this bool map should be transformed to
    1.32 +  ///double map.
    1.33    void run();
    1.34 -    
    1.35 +
    1.36 +  ///Builds the graphical design of the interface.
    1.37    void build_box();
    1.38  };
    1.39  #endif //KRUSKALBOX_H