39 const std::string
id = inputStorage.
readString();
42 if (!libsumo::GUI::handleVariable(
id, variable, &server, &inputStorage)) {
64 std::string warning =
"";
74 const std::string
id = inputStorage.
readString();
83 libsumo::GUI::setOffset(
id, tp.
x, tp.
y);
87 libsumo::GUI::toggleSelection(
id,
StoHelp::readTypedString(inputStorage,
"The type of the object must be given as a string."));
106 const int width =
StoHelp::readTypedInt(inputStorage,
"The second variable must be the width given as int.");
107 const int height =
StoHelp::readTypedInt(inputStorage,
"The third variable must be the height given as int.");
109 libsumo::GUI::screenshot(
id, filename, width, height);
119 const int viewType =
StoHelp::readTypedInt(inputStorage,
"The second variable must be the view type given as int.");
120 libsumo::GUI::addView(
id, scheme,
125 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.
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.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
static int readCompound(tcpip::Storage &ret, int expectedSize=-1, const std::string &error="")
static int readTypedInt(tcpip::Storage &ret, const std::string &error="")
static std::string readTypedString(tcpip::Storage &ret, const std::string &error="")
static void writeTypedInt(tcpip::Storage &content, int value)
static const libsumo::TraCIPosition readTypedPosition2D(tcpip::Storage &ret, const std::string &error="")
static const libsumo::TraCIPositionVector readTypedPolygon(tcpip::Storage &ret, const std::string &error="")
static double readTypedDouble(tcpip::Storage &ret, const std::string &error="")
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 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.
std::vector< TraCIPosition > value