SUMO - Simulation of Urban MObility
TraCIAPI::POIScope Class Reference

Scope for interaction with POIs. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::POIScope:
Inheritance graph
Collaboration diagram for TraCIAPI::POIScope:
Collaboration graph

Public Member Functions

void add (const std::string &poiID, double x, double y, const libsumo::TraCIColor &c, const std::string &type, int layer) const
 
libsumo::TraCIColor getColor (const std::string &poiID) const
 
std::vector< std::string > getIDList () const
 
libsumo::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 libsumo::TraCIColor &c) const
 
void setPosition (const std::string &poiID, double x, double y) const
 
void setType (const std::string &poiID, const std::string &setType) const
 
virtual ~POIScope ()
 

Protected Attributes

TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 

Private Member Functions

POIScopeoperator= (const POIScope &src)
 invalidated assignment operator More...
 
 POIScope (const POIScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with POIs.

Definition at line 382 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ POIScope() [1/2]

TraCIAPI::POIScope::POIScope ( TraCIAPI parent)
inline

Definition at line 384 of file TraCIAPI.h.

◆ ~POIScope()

virtual TraCIAPI::POIScope::~POIScope ( )
inlinevirtual

◆ POIScope() [2/2]

TraCIAPI::POIScope::POIScope ( const POIScope src)
private

invalidated copy constructor

Member Function Documentation

◆ add()

void TraCIAPI::POIScope::add ( const std::string &  poiID,
double  x,
double  y,
const libsumo::TraCIColor c,
const std::string &  type,
int  layer 
) const

◆ getColor()

TraCIColor TraCIAPI::POIScope::getColor ( const std::string &  poiID) const

Definition at line 1283 of file TraCIAPI.cpp.

References CMD_GET_POI_VARIABLE, and VAR_COLOR.

◆ getIDList()

std::vector< std::string > TraCIAPI::POIScope::getIDList ( ) const

Definition at line 1268 of file TraCIAPI.cpp.

References CMD_GET_POI_VARIABLE, and ID_LIST.

◆ getPosition()

TraCIPosition TraCIAPI::POIScope::getPosition ( const std::string &  poiID) const

Definition at line 1278 of file TraCIAPI.cpp.

References CMD_GET_POI_VARIABLE, and VAR_POSITION.

◆ getType()

std::string TraCIAPI::POIScope::getType ( const std::string &  poiID) const

Definition at line 1273 of file TraCIAPI.cpp.

References CMD_GET_POI_VARIABLE, and VAR_TYPE.

◆ operator=()

POIScope& TraCIAPI::POIScope::operator= ( const POIScope src)
private

invalidated assignment operator

◆ remove()

void TraCIAPI::POIScope::remove ( const std::string &  poiID,
int  layer = 0 
) const

◆ setColor()

void TraCIAPI::POIScope::setColor ( const std::string &  poiID,
const libsumo::TraCIColor c 
) const

◆ setPosition()

void TraCIAPI::POIScope::setPosition ( const std::string &  poiID,
double  x,
double  y 
) const

◆ setType()

void TraCIAPI::POIScope::setType ( const std::string &  poiID,
const std::string &  setType 
) const

Field Documentation

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 129 of file TraCIAPI.h.


The documentation for this class was generated from the following files: