COIN-OR::LEMON - Graph Library

Changeset 184:4e8704aae278 in glemon-0.x for mapstorage.h


Ignore:
Timestamp:
01/10/07 15:37:46 (17 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3125
Message:

Added support for setting the background form an image file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.h

    r177 r184  
    2525#include "xymap.h"
    2626#include <libgnomecanvasmm.h>
     27
     28class NoteBookTab;
    2729
    2830///class MapStorage handles NodeMaps and EdgeMaps.
     
    3941class MapStorage
    4042{
     43private:
     44  std::string background_file_name;
     45  bool background_set;
     46  double background_scaling;
     47  NoteBookTab& mytab;
    4148public:
    42   enum value {DOUBLE, STRING};
    43   enum type {NORMAL, GUI};
    44 
     49  void setBackground(const std::string& file_name);
     50  const std::string& getBackgroundFilename();
     51  bool isBackgroundSet();
     52  double getBackgroundScaling();
     53  void setBackgroundScaling(double scaling);
    4554  ///The graph for which the datas are stored.
    4655  Graph graph;
     
    123132  ///Its all activity is initializing default values
    124133  ///for different visualization attributes.
    125   MapStorage();
     134  MapStorage(NoteBookTab& tab);
    126135
    127136  ///Destructor of MapStorage
Note: See TracChangeset for help on using the changeset viewer.