COIN-OR::LEMON - Graph Library

Changeset 165:2cd447b0bd3a in glemon-0.x for dijkstrabox.h


Ignore:
Timestamp:
10/13/06 17:31:58 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2990
Message:

Suurballe algorithm is implemented in glemon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dijkstrabox.h

    r163 r165  
    88#include <all_include.h>
    99#include <algobox.h>
    10 #include <lemon/dijkstra.h>
    1110#include <libgnomecanvasmm.h>
    1211#include <libgnomecanvasmm/polygon.h>
     
    2423class DijkstraBox : public AlgoBox
    2524{
     25protected:
    2626  ///Shows result of Dijkstra algorithm
    2727  Gtk::Label resultlabel;
     
    3737  Gtk::ComboBoxText target;
    3838
     39  ///Gets to and from node from combobox
     40  void get_from_to(Node &, Node &, Graph &);
     41
    3942public:
    4043  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
     
    4750  ///As postprocess this bool map should be transformed to
    4851  ///double map.
    49   void run();
     52  virtual void run();
    5053
    5154  ///Builds the graphical design of the interface.
    52   void build_box();
     55  virtual void build_box();
    5356
    5457  void maplists_updated();
    5558};
     59
     60class SuurballeBox : public DijkstraBox
     61{
     62  ///number of paths to find
     63  int num;
     64 
     65  ///Widget to set numbewr of paths to find
     66  Gtk::SpinButton * num_set;
     67
     68  ///Holder widget
     69  Gtk::HBox hbox;
     70
     71public:
     72  SuurballeBox(std::vector<std::string> t);
     73  void run();
     74  void build_box();
     75};
    5676#endif //DIJKSTRABOX_H
Note: See TracChangeset for help on using the changeset viewer.