COIN-OR::LEMON - Graph Library

Changeset 177:40f3006fba2e in glemon-0.x for mapstorage.h


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

Redesign parameters can now be saved and loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.h

    r174 r177  
    8383
    8484protected:
    85   /// type of the signal emitted if the visualization of the maps might have to be updated.
    86 
     85
     86  /// Signal emitted on any change made on map values
     87
     88  /// Signal emitted if the visualization of the maps might have to be updated.
    8789  /// bool shows us whether the changed map is edge or nodemap.
    8890  /// int tells us the refreshed property
    89   typedef sigc::signal<void, bool, int> Signal_Prop;
    90 
    91   /// Signal emitted on any change made on map values
    92   Signal_Prop signal_prop;
     91  sigc::signal<void, bool, int> signal_prop;
    9392
    9493  /// Signal emitted in the case of nodemap addition
     
    106105  /// Signal emitted, when entry in \ref MapWin should be changed.
    107106  sigc::signal<void, bool, int, std::string> signal_map_win;
     107
     108  /// Signal emitted, when entry in \ref DesignWin should be changed.
     109  sigc::signal<void, double, double, int> signal_design_win;
     110
     111  ///Iteration number during graph design
     112  int iterations;
     113
     114  ///Attraction factor during graph design
     115  double attraction;
     116
     117  ///Propulsation factor during graph design
     118  double propulsation;
    108119
    109120public:
     
    153164
    154165  ///returns \ref signal_prop to be able to connect functions to it
    155   Signal_Prop signal_prop_ch();
     166  sigc::signal<void, bool, int> signal_prop_ch();
    156167
    157168  ///returns \ref signal_node_map to be able to connect functions to it
     
    163174  ///returns \ref signal_map_win to be able to connect functions to it
    164175  sigc::signal<void, bool, int, std::string> signal_map_win_ch(){return signal_map_win;};
     176
     177  ///returns \ref signal_design_win to be able to connect functions to it
     178  sigc::signal<void, double, double, int> signal_design_win_ch(){return signal_design_win;};
    165179
    166180  ///Adds given map to storage.
     
    262276
    263277  void ArrowPosReadOK();
     278
     279  void get_design_data(double &, double &, int &);
     280  void set_attraction(double);
     281  void set_propulsation(double);
     282  void set_iteration(int);
     283
     284  void redesign_data_changed();
    264285};
    265286
Note: See TracChangeset for help on using the changeset viewer.