![]() |
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 473 of file TraCIAPI.h.
|
inline |
Definition at line 475 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 476 of file TraCIAPI.h.
References TraCIAPI::getColor(), TraCIAPI::getPosition(), SUMOReal, TraCIAPI::TraCIPosition::x, and TraCIAPI::TraCIPosition::y.
|
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 1140 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 1100 of file TraCIAPI.cpp.
References CMD_GET_POI_VARIABLE, and VAR_COLOR.
std::vector< std::string > TraCIAPI::POIScope::getIDList | ( | ) | const |
Definition at line 1085 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 1095 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 1090 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 1162 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 1127 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 1116 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 1106 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 206 of file TraCIAPI.h.