kruskalbox.h
author ladanyi
Wed, 02 Jan 2008 21:03:09 +0000
changeset 201 879e47e5b731
parent 174 95872af46fc4
permissions -rw-r--r--
Merge branches/akos to trunk.
alpar@174
     1
/* -*- C++ -*-
alpar@174
     2
 *
alpar@174
     3
 * This file is a part of LEMON, a generic C++ optimization library
alpar@174
     4
 *
alpar@174
     5
 * Copyright (C) 2003-2006
alpar@174
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@174
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@174
     8
 *
alpar@174
     9
 * Permission to use, modify and distribute this software is granted
alpar@174
    10
 * provided that this copyright notice appears in all copies. For
alpar@174
    11
 * precise terms see the accompanying LICENSE file.
alpar@174
    12
 *
alpar@174
    13
 * This software is provided "AS IS" with no warranty of any kind,
alpar@174
    14
 * express or implied, and with no claim as to its suitability for any
alpar@174
    15
 * purpose.
alpar@174
    16
 *
alpar@174
    17
 */
hegyi@106
    18
hegyi@106
    19
#ifndef KRUSKALBOX_H
hegyi@106
    20
#define KRUSKALBOX_H
hegyi@106
    21
hegyi@194
    22
class AlgoBox;
hegyi@106
    23
hegyi@106
    24
#include <all_include.h>
hegyi@106
    25
#include <libgnomecanvasmm.h>
hegyi@106
    26
#include <libgnomecanvasmm/polygon.h>
hegyi@106
    27
hegyi@125
    28
///Graphical interface to run Kruskal algorithm.
hegyi@125
    29
hegyi@125
    30
///Child of \ref AlgoBox,
hegyi@125
    31
///therefore the only task to do at implementation was to
hegyi@125
    32
///
hegyi@125
    33
///-call init function with correct parameters from correctly parametrized constructor
hegyi@125
    34
///
hegyi@125
    35
///-implement \ref build_box function
hegyi@125
    36
///
hegyi@125
    37
///-implement \ref run function
hegyi@106
    38
class KruskalBox : public AlgoBox
hegyi@106
    39
{
hegyi@125
    40
  ///Shows result of Kruskal algorithm
hegyi@109
    41
  Gtk::Label resultlabel;
hegyi@109
    42
hegyi@106
    43
public:
hegyi@125
    44
  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
hegyi@108
    45
  KruskalBox(std::vector<std::string> t);
hegyi@125
    46
hegyi@125
    47
  ///Prepare, run and postprocess Kruskal algorithm.
hegyi@125
    48
hegyi@125
    49
  ///\ref glemon works only with maps filled with double values
hegyi@125
    50
  ///at the moment. While Kruskal nedds a bool map as output.
hegyi@125
    51
  ///As postprocess this bool map should be transformed to
hegyi@125
    52
  ///double map.
hegyi@106
    53
  void run();
hegyi@125
    54
hegyi@125
    55
  ///Builds the graphical design of the interface.
hegyi@106
    56
  void build_box();
hegyi@106
    57
};
hegyi@106
    58
#endif //KRUSKALBOX_H