71 bool contains(
const std::string& name)
const;
77 void remove(
const std::string name);
89 const std::vector<std::string>&
getNames()
const;
101 void init(FXApp* app,
bool netedit =
false);
115 void saveViewport(
const double x,
const double y,
const double z,
const double rot);
119 void saveDecals(
const std::vector<GUISUMOAbstractView::Decal>& decals);
128 const std::vector<GUISUMOAbstractView::Decal>&
getDecals() {
GUICompleteSchemeStorage gSchemeStorage
Storage for available visualization settings.
void clearDecals()
Clear the default decals.
bool contains(const std::string &name) const
Returns the information whether a setting with the given name is stored.
GUIVisualizationSettings & get(const std::string &name)
Returns the named scheme.
void remove(const std::string name)
Removes the setting with the given name.
std::map< std::string, GUIVisualizationSettings * > mySettings
A map of settings referenced by their names.
GUIVisualizationSettings & getDefault()
Returns the default scheme.
GUICompleteSchemeStorage()
Constructor.
std::vector< GUISUMOAbstractView::Decal > myDecals
The default decals.
const std::vector< std::string > & getNames() const
Returns a list of stored settings names.
void add(const GUIVisualizationSettings &scheme)
Adds a visualization scheme.
int getNumInitialSettings() const
Returns the number of initial settings.
void saveViewport(const double x, const double y, const double z, const double rot)
Makes the given viewport the default.
std::vector< std::string > mySortedSchemeNames
List of known setting names.
std::string myDefaultSettingName
Name of the default setting.
void init(FXApp *app, bool netedit=false)
Initialises the storage with some default settings.
int myNumInitialSettings
The number of settings which were present at startup.
const std::vector< GUISUMOAbstractView::Decal > & getDecals()
Returns the default decals.
void setDefault(const std::string &name)
Makes the scheme with the given name the default.
void saveDecals(const std::vector< GUISUMOAbstractView::Decal > &decals)
Makes the given decals the default.
Position myLookFrom
The default viewport.
void writeSettings(FXApp *app)
Writes the current scheme into the registry.
void setViewport(GUISUMOAbstractView *view)
Sets the default viewport.
~GUICompleteSchemeStorage()
Destructor.
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.