Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_GUI Class Reference

APIs for getting/setting GUI values via TraCI. More...

#include <TraCIServerAPI_GUI.h>

Collaboration diagram for TraCIServerAPI_GUI:

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 GUISUMOAbstractViewgetNamedView (const std::string &id)
 Returns the named view. More...
 

Private Member Functions

TraCIServerAPI_GUIoperator= (const TraCIServerAPI_GUI &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_GUI (const TraCIServerAPI_GUI &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting GUI values via TraCI.

Definition at line 38 of file TraCIServerAPI_GUI.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_GUI()

TraCIServerAPI_GUI::TraCIServerAPI_GUI ( const TraCIServerAPI_GUI s)
private

invalidated copy constructor

Member Function Documentation

◆ getNamedView()

GUISUMOAbstractView * TraCIServerAPI_GUI::getNamedView ( const std::string &  id)
staticprotected

Returns the named view.

Parameters
[in]viewNameThe name of the view
Returns
The named view if existing, 0 otherwise

Definition at line 239 of file TraCIServerAPI_GUI.cpp.

References GUIMainWindow::getInstance(), GUIGlChildWindow::getView(), and GUIMainWindow::getViewByID().

Referenced by processGet(), and processSet().

◆ operator=()

TraCIServerAPI_GUI& TraCIServerAPI_GUI::operator= ( const TraCIServerAPI_GUI s)
private

invalidated assignment operator

◆ processGet()

bool TraCIServerAPI_GUI::processGet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a get value command (Command 0xac: Get GUI Variable)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 43 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().

◆ processSet()

bool TraCIServerAPI_GUI::processSet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a set value command (Command 0xcc: Change GUI State)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 129 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().


The documentation for this class was generated from the following files: