SUMO - Simulation of Urban MObility
|
Scope for interaction with the gui. More...
#include <TraCIAPI.h>
Public Member Functions | |
TraCIBoundary | getBoundary (const std::string &viewID=DEFAULT_VIEW) const |
std::vector< std::string > | getIDList () const |
TraCIPosition | getOffset (const std::string &viewID=DEFAULT_VIEW) const |
std::string | getSchema (const std::string &viewID=DEFAULT_VIEW) const |
SUMOReal | getZoom (const std::string &viewID=DEFAULT_VIEW) const |
GUIScope (TraCIAPI &parent) | |
void | screenshot (const std::string &viewID, const std::string &filename) const |
void | setBoundary (const std::string &viewID, SUMOReal xmin, SUMOReal ymin, SUMOReal xmax, SUMOReal ymax) const |
void | setOffset (const std::string &viewID, SUMOReal x, SUMOReal y) const |
void | setSchema (const std::string &viewID, const std::string &schemeName) const |
void | setZoom (const std::string &viewID, SUMOReal zoom) const |
void | trackVehicle (const std::string &viewID, const std::string &vehID) const |
virtual | ~GUIScope () |
Protected Attributes | |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
GUIScope (const GUIScope &src) | |
invalidated copy constructor More... | |
GUIScope & | operator= (const GUIScope &src) |
invalidated assignment operator More... | |
Scope for interaction with the gui.
Definition at line 251 of file TraCIAPI.h.
|
inline |
Definition at line 253 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 254 of file TraCIAPI.h.
|
private |
invalidated copy constructor
TraCIAPI::TraCIBoundary TraCIAPI::GUIScope::getBoundary | ( | const std::string & | viewID = DEFAULT_VIEW ) | const |
Definition at line 576 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_BOUNDARY.
std::vector< std::string > TraCIAPI::GUIScope::getIDList | ( | ) | const |
Definition at line 556 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and ID_LIST.
TraCIAPI::TraCIPosition TraCIAPI::GUIScope::getOffset | ( | const std::string & | viewID = DEFAULT_VIEW ) | const |
Definition at line 566 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_OFFSET.
std::string TraCIAPI::GUIScope::getSchema | ( | const std::string & | viewID = DEFAULT_VIEW ) | const |
Definition at line 571 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_SCHEMA.
SUMOReal TraCIAPI::GUIScope::getZoom | ( | const std::string & | viewID = DEFAULT_VIEW ) | const |
Definition at line 561 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_ZOOM.
invalidated assignment operator
void TraCIAPI::GUIScope::screenshot | ( | const std::string & | viewID, |
const std::string & | filename | ||
) | const |
Definition at line 616 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, VAR_SCREENSHOT, and tcpip::Storage::writeString().
void TraCIAPI::GUIScope::setBoundary | ( | const std::string & | viewID, |
SUMOReal | xmin, | ||
SUMOReal | ymin, | ||
SUMOReal | xmax, | ||
SUMOReal | ymax | ||
) | const |
Definition at line 605 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_BOUNDINGBOX, VAR_VIEW_BOUNDARY, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Definition at line 589 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, POSITION_2D, VAR_VIEW_OFFSET, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::GUIScope::setSchema | ( | const std::string & | viewID, |
const std::string & | schemeName | ||
) | const |
Definition at line 598 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, VAR_VIEW_SCHEMA, and tcpip::Storage::writeString().
void TraCIAPI::GUIScope::setZoom | ( | const std::string & | viewID, |
SUMOReal | zoom | ||
) | const |
Definition at line 582 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, VAR_VIEW_ZOOM, and tcpip::Storage::writeDouble().
void TraCIAPI::GUIScope::trackVehicle | ( | const std::string & | viewID, |
const std::string & | vehID | ||
) | const |
Definition at line 623 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, VAR_TRACK_VEHICLE, and tcpip::Storage::writeString().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 188 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().