 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef GUIViewTraffic_h
21 #define GUIViewTraffic_h
89 bool hide =
false,
double hideThreshold = 0);
113 void saveFrame(
const std::string& destFile, FXColor* buf);
void endSnapshot()
Ends a video snapshot.
A single child window which contains a view of the simulation area.
void stopTrack()
Stops vehicle tracking.
A simple video encoder from RGBA pics to anything ffmpeg can handle.
std::vector< std::string > getEdgeDataAttrs() const
return list of loaded edgeData attributes
long onCmdCloseLane(FXObject *, FXSelector, void *)
interaction with the simulation
GUILane * getLaneUnderCursor()
void onGamingClick(Position pos)
handle mouse click in gaming mode
GUIGlID getTrackedID() const
Returns the id of the tracked vehicle (-1 if none)
A MSVehicle extended by some values for usage within the gui.
A class that stores a 2D geometrical boundary.
long onDoubleClicked(FXObject *, FXSelector, void *)
A point in 2D or 3D with translation and scaling methods.
const std::vector< SUMOTime > retrieveBreakpoints() const
retrieve breakpoints from the current runThread
void buildColorRainbow(const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, bool hide=false, double hideThreshold=0)
recalibrate color scheme according to the current value range
bool setColorScheme(const std::string &name)
set color scheme
virtual ~GUIViewTraffic()
destructor
std::vector< std::string > getEdgeLaneParamKeys(bool edgeKeys) const
return list of available edge parameters
void checkSnapshots()
Checks whether it is time for a snapshot.
Representation of a lane in the micro simulation (gui-version)
long onCmdCloseEdge(FXObject *, FXSelector, void *)
int doPaintGL(int mode, const Boundary &bound)
paint GL
virtual void buildViewToolBars(GUIGlChildWindow &)
builds the view toolbars
SUMOTime getCurrentTimeStep() const
get the current simulation time
void saveFrame(const std::string &destFile, FXColor *buf)
Adds a frame to a video snapshot which will be initialized if neccessary.
bool myTLSGame
whether game mode was set to 'tls'
Stores the information about how to visualize structures.
A MSNet extended by some values for usage within the gui.
void startTrack(int id)
Starts vehicle tracking.
long onCmdAddRerouter(FXObject *, FXSelector, void *)
void onGamingRightClick(Position pos)