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;
const std::vector< GUISUMOAbstractView::Decal > & getDecals() const
Returns the parsed decals.
GUIScaleScheme * myCurrentScaleScheme
The current scaling scheme.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag.
double myRotation
View rotation.
int myCurrentColorer
The last color scheme category (edges or vehicles)
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.
static std::vector< SUMOTime > loadBreakpoints(const std::string &file)
loads breakpoints from the specified file
bool hasDecals() const
Returns whether any decals have been parsed.
SAX-handler base for SUMO-files.
double myDelay
The delay loaded.
double getDelay() const
Returns the parsed delay.
GUIVisualizationSettings mySettings
The settings to fill.
RandomDistributor< std::string > getEventDistribution(const std::string &id)
GUISettingsHandler(const std::string &content, bool isFile=true, bool netedit=false)
Constructor.
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
const std::vector< SUMOTime > & getBreakpoints() const
Returns the parsed breakpoints.
GUIVisualizationTextSettings parseTextSettings(const std::string &prefix, const SUMOSAXAttributes &attrs, GUIVisualizationTextSettings defaults)
parse attributes for textSettings
~GUISettingsHandler()
Destructor.
void setSnapshots(GUISUMOAbstractView *view) const
Makes a snapshot if it has been parsed.
std::string myViewType
The view type (osg, opengl, default) loaded.
std::string addSettings(GUISUMOAbstractView *view=0) const
Adds the parsed settings to the global list of settings.
void applyViewport(GUISUMOAbstractView *view) const
Sets the viewport which has been parsed.
std::map< SUMOTime, std::vector< std::string > > mySnapshots
mappig of time steps to filenames for potential snapshots
std::map< std::string, RandomDistributor< std::string > > myEventDistributions
The parsed event distributions.
An XML-handler for visualisation schemes.
const std::string & getViewType() const
Returns the parsed view type.
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.