kruskalbox.h
changeset 1 67188bd752db
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/kruskalbox.h	Mon Jul 07 08:10:39 2008 -0500
     1.3 @@ -0,0 +1,58 @@
     1.4 +/* -*- C++ -*-
     1.5 + *
     1.6 + * This file is a part of LEMON, a generic C++ optimization library
     1.7 + *
     1.8 + * Copyright (C) 2003-2006
     1.9 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11 + *
    1.12 + * Permission to use, modify and distribute this software is granted
    1.13 + * provided that this copyright notice appears in all copies. For
    1.14 + * precise terms see the accompanying LICENSE file.
    1.15 + *
    1.16 + * This software is provided "AS IS" with no warranty of any kind,
    1.17 + * express or implied, and with no claim as to its suitability for any
    1.18 + * purpose.
    1.19 + *
    1.20 + */
    1.21 +
    1.22 +#ifndef KRUSKALBOX_H
    1.23 +#define KRUSKALBOX_H
    1.24 +
    1.25 +class AlgoBox;
    1.26 +
    1.27 +#include <all_include.h>
    1.28 +#include <libgnomecanvasmm.h>
    1.29 +#include <libgnomecanvasmm/polygon.h>
    1.30 +
    1.31 +///Digraphical interface to run Kruskal algorithm.
    1.32 +
    1.33 +///Child of \ref AlgoBox,
    1.34 +///therefore the only task to do at implementation was to
    1.35 +///
    1.36 +///-call init function with correct parameters from correctly parametrized constructor
    1.37 +///
    1.38 +///-implement \ref build_box function
    1.39 +///
    1.40 +///-implement \ref run function
    1.41 +class KruskalBox : public AlgoBox
    1.42 +{
    1.43 +  ///Shows result of Kruskal algorithm
    1.44 +  Gtk::Label resultlabel;
    1.45 +
    1.46 +public:
    1.47 +  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
    1.48 +  KruskalBox(std::vector<std::string> t);
    1.49 +
    1.50 +  ///Prepare, run and postprocess Kruskal algorithm.
    1.51 +
    1.52 +  ///\ref glemon works only with maps filled with double values
    1.53 +  ///at the moment. While Kruskal nedds a bool map as output.
    1.54 +  ///As postprocess this bool map should be transformed to
    1.55 +  ///double map.
    1.56 +  void run();
    1.57 +
    1.58 +  ///Builds the digraphical design of the interface.
    1.59 +  void build_box();
    1.60 +};
    1.61 +#endif //KRUSKALBOX_H