![]() |
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 272 of file TraCIAPI.h.
|
inline |
Definition at line 274 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 275 of file TraCIAPI.h.
References DEFAULT_VIEW, SUMOReal, TraCIAPI::TraCIPosition::x, and TraCIAPI::TraCIPosition::y.
|
private |
invalidated copy constructor
TraCIAPI::TraCIBoundary TraCIAPI::GUIScope::getBoundary | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 715 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_BOUNDARY.
std::vector< std::string > TraCIAPI::GUIScope::getIDList | ( | ) | const |
Definition at line 695 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, ID_LIST, and SUMOReal.
TraCIAPI::TraCIPosition TraCIAPI::GUIScope::getOffset | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 705 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 710 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_SCHEMA.
Referenced by TraCITestClient::testAPI().
SUMOReal TraCIAPI::GUIScope::getZoom | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 700 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 764 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_STRING, VAR_SCREENSHOT, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::setBoundary | ( | const std::string & | viewID, |
SUMOReal | xmin, | ||
SUMOReal | ymin, | ||
SUMOReal | xmax, | ||
SUMOReal | ymax | ||
) | const |
Definition at line 751 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_BOUNDINGBOX, VAR_VIEW_BOUNDARY, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Definition at line 730 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 741 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_STRING, VAR_VIEW_SCHEMA, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::setZoom | ( | const std::string & | viewID, |
SUMOReal | zoom | ||
) | const |
Definition at line 721 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 774 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_STRING, VAR_TRACK_VEHICLE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 208 of file TraCIAPI.h.