21 #ifndef GUICompleteSchemeStorage_h
22 #define GUICompleteSchemeStorage_h
81 bool contains(
const std::string& name)
const;
87 void remove(
const std::string& name);
99 const std::vector<std::string>&
getNames()
const;
111 void init(FXApp* app);
GUICompleteSchemeStorage()
Constructor.
void setDefault(const std::string &name)
Makes the scheme with the given name the default.
Position myLookFrom
The default viewport.
GUICompleteSchemeStorage gSchemeStorage
unsigned int myNumInitialSettings
The number of settings which were present at startup.
Stores the information about how to visualize structures.
~GUICompleteSchemeStorage()
Destructor.
const std::vector< std::string > & getNames() const
Returns a list of stored settings names.
A point in 2D or 3D with translation and scaling methods.
bool contains(const std::string &name) const
Returns the information whether a setting with the given name is stored.
unsigned int getNumInitialSettings() const
Returns the number of initial settings.
std::map< std::string, GUIVisualizationSettings > mySettings
A map of settings referenced by their names.
void saveViewport(const SUMOReal x, const SUMOReal y, const SUMOReal zoom)
Makes the given viewport the default.
GUIVisualizationSettings & getDefault()
Returns the default scheme.
Storage for available visualization settings.
void setViewport(GUISUMOAbstractView *view)
Sets the default viewport.
std::vector< std::string > mySortedSchemeNames
List of known setting names.
void writeSettings(FXApp *app)
Writes the current scheme into the registry.
void init(FXApp *app)
Initialises the storage with some default settings.
void add(const GUIVisualizationSettings &scheme)
Adds a visualization scheme.
std::string myDefaultSettingName
Name of the default setting.