39 const std::string
id = inputStorage.
readString();
42 if (!libsumo::GUI::handleVariable(
id, variable, &server, &inputStorage)) {
68 std::string warning =
"";
78 const std::string
id = inputStorage.
readString();
86 libsumo::GUI::setZoom(
id, zoom);
94 libsumo::GUI::setOffset(
id, tp.
x, tp.
y);
102 libsumo::GUI::toggleSelection(
id, objType);
110 libsumo::GUI::setSchema(
id, schema);
118 libsumo::GUI::setBoundary(
id, p[0].x(), p[0].y(), p[1].x(), p[1].y());
126 libsumo::GUI::setAngle(
id, rot);
133 int parameterCount = inputStorage.
readInt();
134 if (parameterCount != 3) {
137 std::string filename;
141 int width = 0, height = 0;
149 libsumo::GUI::screenshot(
id, filename, width, height);
157 libsumo::GUI::trackVehicle(
id, objID);
164 int parameterCount = inputStorage.
readInt();
165 if (parameterCount != 2) {
176 libsumo::GUI::addView(
id, scheme,
181 libsumo::GUI::removeView(
id);
std::string toHex(const T i, std::streamsize numDigits=0)
@ VIEW_3D_OSG
plain 3D OSG view (
@ VIEW_2D_OPENGL
plain 2D openGL view (
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xac: Get GUI Variable)
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcc: Change GUI State)
TraCI server used to control sumo by a remote TraCI client.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
tcpip::Storage & getWrapperStorage()
void initWrapper(const int domainID, const int variable, const std::string &objID)
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, libsumo::TraCIPosition &into)
Reads the value type and a 2D position, verifying the type.
bool readTypeCheckingInt(tcpip::Storage &inputStorage, int &into)
Reads the value type and an int, verifying the type.
bool readTypeCheckingDouble(tcpip::Storage &inputStorage, double &into)
Reads the value type and a double, verifying the type.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
bool readTypeCheckingPolygon(tcpip::Storage &inputStorage, PositionVector &into)
Reads the value type and a polygon, verifying the type.
static void writeTypedInt(tcpip::Storage &content, int value)
An error which allows to continue.
virtual std::string readString()
virtual int readUnsignedByte()
TRACI_CONST int VAR_VIEW_BOUNDARY
TRACI_CONST int RESPONSE_GET_GUI_VARIABLE
TRACI_CONST int VAR_SCREENSHOT
TRACI_CONST int VAR_ANGLE
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int VAR_VIEW_OFFSET
TRACI_CONST int VAR_VIEW_SCHEMA
TRACI_CONST int VAR_VIEW_ZOOM
TRACI_CONST int CMD_SET_GUI_VARIABLE
TRACI_CONST int VAR_TRACK_VEHICLE
TRACI_CONST int CMD_GET_GUI_VARIABLE
TRACI_CONST int VAR_SELECT
A 2D or 3D-position, for 2D positions z == INVALID_DOUBLE_VALUE.