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:
Collaboration graph

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 39 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 217 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

◆ 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 109 of file TraCIServerAPI_GUI.cpp.

References GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::centerTo(), 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(), RTYPE_OK, Position::set(), GUISUMOAbstractView::setColorScheme(), GUISUMOAbstractView::setViewportFromToRot(), GUISUMOAbstractView::startTrack(), GUISUMOAbstractView::stopTrack(), toHex(), TYPE_COMPOUND, VAR_SCREENSHOT, VAR_TRACK_VEHICLE, VAR_VIEW_BOUNDARY, VAR_VIEW_OFFSET, VAR_VIEW_SCHEMA, 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: