![]() |
Eclipse SUMO - Simulation of Urban MObility
|
APIs for getting/setting GUI values via TraCI. More...
#include <TraCIServerAPI_GUI.h>
Static Public Member Functions | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xac: Get GUI Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xcc: Change GUI State) More... | |
Static Protected Member Functions | |
static GUISUMOAbstractView * | getNamedView (const std::string &id) |
Returns the named view. More... | |
Private Member Functions | |
TraCIServerAPI_GUI & | operator= (const TraCIServerAPI_GUI &s) |
invalidated assignment operator More... | |
TraCIServerAPI_GUI (const TraCIServerAPI_GUI &s) | |
invalidated copy constructor More... | |
APIs for getting/setting GUI values via TraCI.
Definition at line 39 of file TraCIServerAPI_GUI.h.
|
private |
invalidated copy constructor
|
staticprotected |
Returns the named view.
[in] | viewName | The name of the view |
Definition at line 239 of file TraCIServerAPI_GUI.cpp.
References GUIMainWindow::getInstance(), GUIGlChildWindow::getView(), and GUIMainWindow::getViewByID().
Referenced by processGet(), and processSet().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xac: Get GUI Variable)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 44 of file TraCIServerAPI_GUI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, GUISUMOAbstractView::getChanger(), MSBaseVehicle::getID(), GUIMainWindow::getInstance(), getNamedView(), GUISUMOAbstractView::getTrackedID(), GUIMainWindow::getViewIDs(), GUISUMOAbstractView::getVisibleBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIGlObjectStorage::gIDStorage, GUIGlObject::INVALID_ID, GUIVisualizationSettings::name, libsumo::POSITION_2D, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_GUI_VARIABLE, libsumo::RTYPE_OK, toHex(), libsumo::TRACI_ID_LIST, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_POLYGON, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, GUIGlObjectStorage::unblockObject(), libsumo::VAR_HAS_VIEW, libsumo::VAR_TRACK_VEHICLE, libsumo::VAR_VIEW_BOUNDARY, libsumo::VAR_VIEW_OFFSET, libsumo::VAR_VIEW_SCHEMA, libsumo::VAR_VIEW_ZOOM, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), tcpip::Storage::writeUnsignedByte(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUILoadThread::run().
|
static |
Processes a set value command (Command 0xcc: Change GUI State)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 130 of file TraCIServerAPI_GUI.cpp.
References GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::centerTo(), libsumo::CMD_SET_GUI_VARIABLE, GUISUMOAbstractView::getChanger(), MSNet::getInstance(), getNamedView(), GUIPerspectiveChanger::getRotation(), GUISUMOAbstractView::getTrackedID(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPolygon(), TraCIServer::readTypeCheckingPosition2D(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, Position::set(), GUISUMOAbstractView::setColorScheme(), GUISUMOAbstractView::setViewportFromToRot(), GUISUMOAbstractView::startTrack(), GUISUMOAbstractView::stopTrack(), toHex(), libsumo::TYPE_COMPOUND, libsumo::VAR_SCREENSHOT, libsumo::VAR_TRACK_VEHICLE, libsumo::VAR_VIEW_BOUNDARY, libsumo::VAR_VIEW_OFFSET, libsumo::VAR_VIEW_SCHEMA, libsumo::VAR_VIEW_ZOOM, TraCIServer::writeErrorStatusCmd(), TraCIServer::writeStatusCmd(), Position::x(), libsumo::TraCIPosition::x, Position::y(), libsumo::TraCIPosition::y, and GUIPerspectiveChanger::zoom2ZPos().
Referenced by GUILoadThread::run().