TraCI/Polygon Value Retrieval
Command 0xa8: Get Polygon Variable
| ubyte | string |
| Variable | Polygon ID |
|---|
Asks for the value of a certain variable of the named polygon.
The following variable values can be retrieved, the type of the return value is also shown in the table.
| Variable | ValueType | Description |
|---|---|---|
| id list (0x00) | stringList | Returns a list of ids of all polygons (the given polygon ID is ignored) |
| count (0x01) | int | Returns the number of polygons (the given polygon ID is ignored) |
| type (0x4f) | string | Returns the (abstract) type of the polygon |
| color (0x45) | ubyte,ubyte,ubyte,ubyte | Returns the color of this polygon |
| shape (0x4e) | 2D-polygon | Returns the shape (list of 2D-positions) of this polygon |
| filled (0x55) | ubyte | Returns whether this polygon is filled (1) or not (0) |
Response 0xb8: Polygon Variable
| ubyte | string | ubyte | <return_type> |
| Variable | Polygon ID | Return type of the variable | <VARIABLE_VALUE> |
|---|
The respond to a "Command Get Polygon Variable".
This page was last modified on 8 April 2013, at 11:32.