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