![]() |
SUMO - Simulation of Urban MObility
|
Scope for interaction with the gui. More...
#include <TraCIAPI.h>
Public Member Functions | |
libsumo::TraCIBoundary | getBoundary (const std::string &viewID=DEFAULT_VIEW) const |
std::vector< std::string > | getIDList () const |
libsumo::TraCIPosition | getOffset (const std::string &viewID=DEFAULT_VIEW) const |
std::string | getSchema (const std::string &viewID=DEFAULT_VIEW) const |
double | 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, double xmin, double ymin, double xmax, double ymax) const |
void | setOffset (const std::string &viewID, double x, double y) const |
void | setSchema (const std::string &viewID, const std::string &schemeName) const |
void | setZoom (const std::string &viewID, double 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 193 of file TraCIAPI.h.
|
inline |
Definition at line 195 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 196 of file TraCIAPI.h.
References DEFAULT_VIEW, and TraCIAPI::TraCIScopeWrapper::operator=().
|
private |
invalidated copy constructor
TraCIBoundary TraCIAPI::GUIScope::getBoundary | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 804 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_BOUNDARY.
std::vector< std::string > TraCIAPI::GUIScope::getIDList | ( | ) | const |
Definition at line 784 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and ID_LIST.
TraCIPosition TraCIAPI::GUIScope::getOffset | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 794 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 799 of file TraCIAPI.cpp.
References CMD_GET_GUI_VARIABLE, and VAR_VIEW_SCHEMA.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::GUIScope::getZoom | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 789 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 853 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, |
double | xmin, | ||
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) | const |
Definition at line 840 of file TraCIAPI.cpp.
References CMD_SET_GUI_VARIABLE, TYPE_BOUNDINGBOX, VAR_VIEW_BOUNDARY, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::GUIScope::setOffset | ( | const std::string & | viewID, |
double | x, | ||
double | y | ||
) | const |
Definition at line 819 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 830 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, |
double | zoom | ||
) | const |
Definition at line 810 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 863 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 129 of file TraCIAPI.h.