|
SUMO - Simulation of Urban MObility
|
Scope for interaction with POIs. More...
#include <TraCIAPI.h>


Public Member Functions | |
| void | add (const std::string &poiID, SUMOReal x, SUMOReal y, const TraCIColor &c, const std::string &type, int layer) const |
| TraCIColor | getColor (const std::string &poiID) const |
| std::vector< std::string > | getIDList () const |
| TraCIPosition | getPosition (const std::string &poiID) const |
| std::string | getType (const std::string &poiID) const |
| POIScope (TraCIAPI &parent) | |
| void | remove (const std::string &poiID, int layer=0) const |
| void | setColor (const std::string &poiID, const TraCIColor &c) const |
| void | setPosition (const std::string &poiID, SUMOReal x, SUMOReal y) const |
| void | setType (const std::string &poiID, const std::string &setType) const |
| virtual | ~POIScope () |
Protected Attributes | |
| TraCIAPI & | myParent |
| The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
| POIScope & | operator= (const POIScope &src) |
| invalidated assignment operator More... | |
| POIScope (const POIScope &src) | |
| invalidated copy constructor More... | |
Scope for interaction with POIs.
Definition at line 440 of file TraCIAPI.h.
|
inline |
Definition at line 442 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 443 of file TraCIAPI.h.
|
private |
invalidated copy constructor
| void TraCIAPI::POIScope::add | ( | const std::string & | poiID, |
| SUMOReal | x, | ||
| SUMOReal | y, | ||
| const TraCIColor & | c, | ||
| const std::string & | type, | ||
| int | layer | ||
| ) | const |
Definition at line 970 of file TraCIAPI.cpp.
References TraCIAPI::TraCIColor::a, ADD, TraCIAPI::TraCIColor::b, CMD_SET_POI_VARIABLE, TraCIAPI::TraCIColor::g, POSITION_2D, TraCIAPI::TraCIColor::r, TYPE_COLOR, TYPE_COMPOUND, TYPE_INTEGER, TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| TraCIAPI::TraCIColor TraCIAPI::POIScope::getColor | ( | const std::string & | poiID | ) | const |
Definition at line 936 of file TraCIAPI.cpp.
References CMD_GET_POI_VARIABLE, and VAR_COLOR.
| std::vector< std::string > TraCIAPI::POIScope::getIDList | ( | ) | const |
Definition at line 921 of file TraCIAPI.cpp.
References CMD_GET_POI_VARIABLE, and ID_LIST.
| TraCIAPI::TraCIPosition TraCIAPI::POIScope::getPosition | ( | const std::string & | poiID | ) | const |
Definition at line 931 of file TraCIAPI.cpp.
References CMD_GET_POI_VARIABLE, and VAR_POSITION.
| std::string TraCIAPI::POIScope::getType | ( | const std::string & | poiID | ) | const |
Definition at line 926 of file TraCIAPI.cpp.
References CMD_GET_POI_VARIABLE, and VAR_TYPE.
invalidated assignment operator
| void TraCIAPI::POIScope::remove | ( | const std::string & | poiID, |
| int | layer = 0 |
||
| ) | const |
Definition at line 990 of file TraCIAPI.cpp.
References CMD_SET_POI_VARIABLE, REMOVE, TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::POIScope::setColor | ( | const std::string & | poiID, |
| const TraCIColor & | c | ||
| ) | const |
Definition at line 959 of file TraCIAPI.cpp.
References TraCIAPI::TraCIColor::a, TraCIAPI::TraCIColor::b, CMD_SET_POI_VARIABLE, TraCIAPI::TraCIColor::g, TraCIAPI::TraCIColor::r, TYPE_COLOR, VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
Definition at line 950 of file TraCIAPI.cpp.
References CMD_SET_POI_VARIABLE, POSITION_2D, VAR_POSITION, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::POIScope::setType | ( | const std::string & | poiID, |
| const std::string & | setType | ||
| ) | const |
Definition at line 942 of file TraCIAPI.cpp.
References CMD_SET_POI_VARIABLE, TYPE_STRING, VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 192 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().