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

Scope for interaction with polygons. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::PolygonScope:
TraCIAPI::TraCIScopeWrapper

Public Member Functions

void add (const std::string &polygonID, const TraCIPositionVector &shape, const TraCIColor &c, bool fill, const std::string &type, int layer) const
 
TraCIColor getColor (const std::string &polygonID) const
 
std::vector< std::string > getIDList () const
 
TraCIPositionVector getShape (const std::string &polygonID) const
 
std::string getType (const std::string &polygonID) const
 
 PolygonScope (TraCIAPI &parent)
 
void remove (const std::string &polygonID, int layer=0) const
 
void setColor (const std::string &polygonID, const TraCIColor &c) const
 
void setShape (const std::string &polygonID, const TraCIPositionVector &shape) const
 
void setType (const std::string &polygonID, const std::string &setType) const
 
virtual ~PolygonScope ()
 

Protected Attributes

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

Private Member Functions

PolygonScopeoperator= (const PolygonScope &src)
 invalidated assignment operator More...
 
 PolygonScope (const PolygonScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with polygons.

Definition at line 470 of file TraCIAPI.h.

Constructor & Destructor Documentation

TraCIAPI::PolygonScope::PolygonScope ( TraCIAPI parent)
inline

Definition at line 472 of file TraCIAPI.h.

virtual TraCIAPI::PolygonScope::~PolygonScope ( )
inlinevirtual

Definition at line 473 of file TraCIAPI.h.

TraCIAPI::PolygonScope::PolygonScope ( const PolygonScope src)
private

invalidated copy constructor

Member Function Documentation

void TraCIAPI::PolygonScope::add ( const std::string &  polygonID,
const TraCIPositionVector shape,
const TraCIColor c,
bool  fill,
const std::string &  type,
int  layer 
) const
TraCIAPI::TraCIColor TraCIAPI::PolygonScope::getColor ( const std::string &  polygonID) const

Definition at line 1007 of file TraCIAPI.cpp.

References CMD_GET_POLYGON_VARIABLE, and VAR_COLOR.

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

Definition at line 992 of file TraCIAPI.cpp.

References CMD_GET_POLYGON_VARIABLE, and ID_LIST.

TraCIAPI::TraCIPositionVector TraCIAPI::PolygonScope::getShape ( const std::string &  polygonID) const

Definition at line 1002 of file TraCIAPI.cpp.

References CMD_GET_POLYGON_VARIABLE, and VAR_SHAPE.

std::string TraCIAPI::PolygonScope::getType ( const std::string &  polygonID) const

Definition at line 997 of file TraCIAPI.cpp.

References CMD_GET_POLYGON_VARIABLE, and VAR_TYPE.

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

invalidated assignment operator

void TraCIAPI::PolygonScope::remove ( const std::string &  polygonID,
int  layer = 0 
) const
void TraCIAPI::PolygonScope::setColor ( const std::string &  polygonID,
const TraCIColor c 
) const
void TraCIAPI::PolygonScope::setShape ( const std::string &  polygonID,
const TraCIPositionVector shape 
) const
void TraCIAPI::PolygonScope::setType ( const std::string &  polygonID,
const std::string &  setType 
) const

Field Documentation

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 190 of file TraCIAPI.h.

Referenced by TraCIAPI::EdgeScope::getIDList().


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