kruskalbox.h
author ladanyi
Mon, 25 Sep 2006 07:54:00 +0000
changeset 151 72f1c33f89d4
parent 109 9f8dc346ac6e
child 174 95872af46fc4
permissions -rw-r--r--
LoopEdge improvements.
hegyi@106
     1
// -*- C++ -*- //
hegyi@106
     2
hegyi@106
     3
#ifndef KRUSKALBOX_H
hegyi@106
     4
#define KRUSKALBOX_H
hegyi@106
     5
hegyi@106
     6
class KruskalBox;
hegyi@106
     7
hegyi@106
     8
#include <all_include.h>
hegyi@106
     9
#include <algobox.h>
hegyi@106
    10
#include <lemon/kruskal.h>
hegyi@106
    11
#include <libgnomecanvasmm.h>
hegyi@106
    12
#include <libgnomecanvasmm/polygon.h>
hegyi@106
    13
hegyi@125
    14
///Graphical interface to run Kruskal algorithm.
hegyi@125
    15
hegyi@125
    16
///Child of \ref AlgoBox,
hegyi@125
    17
///therefore the only task to do at implementation was to
hegyi@125
    18
///
hegyi@125
    19
///-call init function with correct parameters from correctly parametrized constructor
hegyi@125
    20
///
hegyi@125
    21
///-implement \ref build_box function
hegyi@125
    22
///
hegyi@125
    23
///-implement \ref run function
hegyi@106
    24
class KruskalBox : public AlgoBox
hegyi@106
    25
{
hegyi@125
    26
  ///Shows result of Kruskal algorithm
hegyi@109
    27
  Gtk::Label resultlabel;
hegyi@109
    28
hegyi@106
    29
public:
hegyi@125
    30
  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
hegyi@108
    31
  KruskalBox(std::vector<std::string> t);
hegyi@125
    32
hegyi@125
    33
  ///Prepare, run and postprocess Kruskal algorithm.
hegyi@125
    34
hegyi@125
    35
  ///\ref glemon works only with maps filled with double values
hegyi@125
    36
  ///at the moment. While Kruskal nedds a bool map as output.
hegyi@125
    37
  ///As postprocess this bool map should be transformed to
hegyi@125
    38
  ///double map.
hegyi@106
    39
  void run();
hegyi@125
    40
hegyi@125
    41
  ///Builds the graphical design of the interface.
hegyi@106
    42
  void build_box();
hegyi@106
    43
};
hegyi@106
    44
#endif //KRUSKALBOX_H