![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with the gui. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | clearSubscriptionResults () |
const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
libsumo::TraCIPositionVector | getBoundary (const std::string &viewID=DEFAULT_VIEW) const |
const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
std::vector< std::string > | getIDList () const |
libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
libsumo::TraCIPosition | getOffset (const std::string &viewID=DEFAULT_VIEW) const |
std::string | getParameter (const std::string &objectID, const std::string &key) const |
retrieve generic paramter More... | |
std::string | getSchema (const std::string &viewID=DEFAULT_VIEW) const |
const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
double | getZoom (const std::string &viewID=DEFAULT_VIEW) const |
GUIScope (TraCIAPI &parent) | |
void | screenshot (const std::string &viewID, const std::string &filename, const int width=-1, const int height=-1) 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 | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
set generic paramter More... | |
void | setSchema (const std::string &viewID, const std::string &schemeName) const |
void | setZoom (const std::string &viewID, double zoom) const |
void | subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const |
void | subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const |
void | trackVehicle (const std::string &viewID, const std::string &vehID) const |
virtual | ~GUIScope () |
Protected Attributes | |
int | myCmdGetID |
int | myCmdSetID |
int | myContextSubscribeID |
libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
int | mySubscribeID |
libsumo::SubscriptionResults | mySubscriptionResults |
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 217 of file TraCIAPI.h.
|
inline |
Definition at line 219 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 220 of file TraCIAPI.h.
|
private |
invalidated copy constructor
|
inherited |
Definition at line 3667 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3651 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3635 of file TraCIAPI.cpp.
libsumo::TraCIPositionVector TraCIAPI::GUIScope::getBoundary | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 852 of file TraCIAPI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, and libsumo::VAR_VIEW_BOUNDARY.
|
inherited |
Definition at line 3657 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::GUIScope::getIDList | ( | ) | const |
Definition at line 832 of file TraCIAPI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, and libsumo::TRACI_ID_LIST.
|
inherited |
Definition at line 3680 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3674 of file TraCIAPI.cpp.
libsumo::TraCIPosition TraCIAPI::GUIScope::getOffset | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 842 of file TraCIAPI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, and libsumo::VAR_VIEW_OFFSET.
|
inherited |
retrieve generic paramter
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::GUIScope::getSchema | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 847 of file TraCIAPI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, and libsumo::VAR_VIEW_SCHEMA.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3641 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::GUIScope::getZoom | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 837 of file TraCIAPI.cpp.
References libsumo::CMD_GET_GUI_VARIABLE, and libsumo::VAR_VIEW_ZOOM.
Referenced by TraCITestClient::testAPI().
invalidated assignment operator
void TraCIAPI::GUIScope::screenshot | ( | const std::string & | viewID, |
const std::string & | filename, | ||
const int | width = -1 , |
||
const int | height = -1 |
||
) | const |
Definition at line 899 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::VAR_SCREENSHOT, tcpip::Storage::writeByte(), tcpip::Storage::writeInt(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::setBoundary | ( | const std::string & | viewID, |
double | xmin, | ||
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) | const |
Definition at line 886 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_POLYGON, libsumo::VAR_VIEW_BOUNDARY, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::GUIScope::setOffset | ( | const std::string & | viewID, |
double | x, | ||
double | y | ||
) | const |
Definition at line 867 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::POSITION_2D, libsumo::VAR_VIEW_OFFSET, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
set generic paramter
Definition at line 3599 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::setSchema | ( | const std::string & | viewID, |
const std::string & | schemeName | ||
) | const |
Definition at line 877 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_STRING, libsumo::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 858 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_VIEW_ZOOM, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3613 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3625 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::trackVehicle | ( | const std::string & | viewID, |
const std::string & | vehID | ||
) | const |
Definition at line 914 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_TRACK_VEHICLE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 146 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 147 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 149 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 151 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 145 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.