SUMO
Simulation of Urban MObility

- Home
- Download
- Documentation
- Wiki
- Trac
- Blog
- Contact
- SF-Project

# TraCI/Change GUI State

# Command 0xcc: Change GUI State

ubyte | string | ubyte | <value_type>
Variable | View ID | Type of the value | New Value
--- | --- | --- | ---

Changes the simulation visualization. Because it is possible to change different values, the number of parameter to supply and their types differ between commands. The following values can be changed, the parameter(s) which must be given are also shown in the table.

Overview Changeable GUI Variables
Variable | ValueType | Description
--- | --- | ---
zoom (0xa0) | double | Sets the current zoom level in %
offset (0xa1) | 2D-position (double, double) | Moves the center of the visible network to the given position
schema (0xa2) | string | Sets the visualization scheme (e.g. "standard")
boundary (0xa3) | 2D-position (double, double) | Moves the center of the visible network to the given position
screenshot (0xa5) | filename (string) | Save a screenshot to the given file
track vehicle (0xa6) | vehicle ID (string) | tracks the given vehicle in the GUI

The message contents are as following:

zoom (0xa0)

ubyte | double
value type double | New zoom level
--- | ---

offset (0xa1)

ubyte | double | double
value type position2D | x-coordinate | y-ccordinate
--- | --- | ---

schema (0xa2)

ubyte | string
value type string | New schema
--- | ---

boundary (0xa3)

ubyte | ubyte | double | double | double | double
value type polygon | 2 | x-coordinate lower left | y-ccordinate lower left | x-coordinate upper right | y-coordinate upper right
--- | --- | --- | --- | --- | ---

screenshot (0xa5)

ubyte | string
value type string | Screenshot filename
--- | ---

track vehicle (0xa6)

ubyte | string
value type string | id of the vehicle
--- | ---

This page was last modified on 13 July 2011, at 14:05.