22 #ifndef GUISettingsHandler_h 23 #define GUISettingsHandler_h 115 const std::vector<GUISUMOAbstractView::Decal>&
getDecals()
const;
GUIScaleScheme * myCurrentScaleScheme
The current scaling scheme.
GUISettingsHandler(const std::string &content, bool isFile=true)
Constructor.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag.
std::string addSettings(GUISUMOAbstractView *view=0) const
Adds the parsed settings to the global list of settings.
int myCurrentColorer
The last color scheme category (edges or vehicles)
const std::string & getViewType() const
Returns the parsed view type.
GUIColorScheme * myCurrentScheme
The current color scheme.
Stores the information about how to visualize structures.
std::vector< GUISUMOAbstractView::Decal > myDecals
The decals list to fill.
Position myLookAt
The point to look at, only needed for osg view.
SUMOReal myDelay
The delay loaded.
bool hasDecals() const
Returns whether any decals have been parsed.
const std::vector< SUMOTime > & getBreakpoints() const
Returns the parsed breakpoints.
static std::vector< SUMOTime > loadBreakpoints(const std::string &file)
loads breakpoints from the specified file
SAX-handler base for SUMO-files.
const std::vector< GUISUMOAbstractView::Decal > & getDecals() const
Returns the parsed decals.
void setViewport(GUISUMOAbstractView *view) const
Sets the viewport which has been parsed.
GUIVisualizationSettings mySettings
The settings to fill.
SUMOReal getDelay() const
Returns the parsed delay.
RandomDistributor< std::string > getEventDistribution(const std::string &id)
std::map< SUMOTime, std::string > mySnapshots
mappig of time steps to filenames for potential snapshots
SUMOReal getJamSoundTime()
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
GUIVisualizationTextSettings parseTextSettings(const std::string &prefix, const SUMOSAXAttributes &attrs, GUIVisualizationTextSettings defaults)
parse attributes for textSettings
void setSnapshots(GUISUMOAbstractView *view) const
Makes a snapshot if it has been parsed.
~GUISettingsHandler()
Destructor.
std::string myViewType
The view type (osg, opengl, default) loaded.
std::map< std::string, RandomDistributor< std::string > > myEventDistributions
The parsed event distributions.
An XML-handler for visualisation schemes.
std::vector< SUMOTime > myBreakpoints
The parsed breakpoints.
GUIVisualizationSizeSettings parseSizeSettings(const std::string &prefix, const SUMOSAXAttributes &attrs, GUIVisualizationSizeSettings defaults)
parse attributes for sizeSettings
Position myLookFrom
The viewport loaded, zoom is stored in z coordinate.