Package de.tudresden.sumo.cmd
Class Gui
java.lang.Object
de.tudresden.sumo.cmd.Gui
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandgetBoundary(String viewID) Returns the coordinates of the lower left and the upper right corner of the currently visible view.static SumoCommandReturns the list of available views (open windows).static SumoCommandReturns the x and y offset of the center of the current view.static SumoCommandReturns the name of the current coloring scheme.static SumoCommandReturns the current zoom factor.static SumoCommandscreenshot(String viewID, String filename) Save a screenshot for the given view to the given filename.static SumoCommandsetBoundary(String viewID, double xmin, double ymin, double xmax, double ymax) Set the current boundary for the given view (see getBoundary()).static SumoCommandSet the current offset for the given view.static SumoCommandSet the current coloring scheme for the given view.static SumoCommandSet the current zoom factor for the given view.static SumoCommandtrackVehicle(String viewID, String vehID) Start visually tracking the given vehicle on the given view.
- 
Constructor Details- 
Guipublic Gui()
 
- 
- 
Method Details- 
getBoundaryReturns the coordinates of the lower left and the upper right corner of the currently visible view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- Returns:
- coordinates of the lower left and the upper right corner of the visible network
 
- 
getIDListReturns the list of available views (open windows).- Returns:
- list of available views
 
- 
getOffsetReturns the x and y offset of the center of the current view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- Returns:
- the x and y offset of the center of the visible network
 
- 
getSchemaReturns the name of the current coloring scheme.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- Returns:
- the visualization scheme (e.g. "standard")
 
- 
getZoomReturns the current zoom factor.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- Returns:
- the current zoom level (in %)
 
- 
screenshotSave a screenshot for the given view to the given filename.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- filename- a string to name the file, the fileformat is guessed from the extension, the available formats differ from platform to platform but should at least include ps, svg and pdf, on linux probably gif, png and jpg as well
- Returns:
- SumoCommand
 
- 
setBoundarypublic static SumoCommand setBoundary(String viewID, double xmin, double ymin, double xmax, double ymax) Set the current boundary for the given view (see getBoundary()).- Parameters:
- viewID- a string identifying the view in the simulation GUI
- xmin- x-coordinate (double) of the lower left corner of the current view
- ymin- y-coordinate (double) of the lower left corner of the current view
- xmax- x-coordinate (double) of the upper right corner of the current view
- ymax- y-coordinate (double) of the upper right corner of the current view
- Returns:
- SumoCommand
 
- 
setOffsetSet the current offset for the given view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- x- x-offset of the center of the visible network
- y- y-offset of the center of the visible network
- Returns:
- SumoCommand
 
- 
setSchemaSet the current coloring scheme for the given view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- schemeName- the coloring scheme
- Returns:
- SumoCommand
 
- 
setZoomSet the current zoom factor for the given view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- zoom- desired zoom factor
- Returns:
- SumoCommand
 
- 
trackVehicleStart visually tracking the given vehicle on the given view.- Parameters:
- viewID- a string identifying the view in the simulation GUI
- vehID- a string identifying the vehicle
- Returns:
- SumoCommand
 
 
-