SUMO - Simulation of Urban MObility
TraCI_Polygon Class Reference

#include <TraCI_Polygon.h>

Collaboration diagram for TraCI_Polygon:
Collaboration graph

Static Public Member Functions

static void add (const std::string &polygonID, const TraCIPositionVector &shape, const TraCIColor &c, bool fill, const std::string &type, int layer)
 
static TraCIColor getColor (const std::string &polygonID)
 
static bool getFilled (const std::string &polygonID)
 
static std::vector< std::string > getIDList ()
 
static std::string getParameter (const std::string &polygonID, const std::string &paramName)
 
static TraCIPositionVector getShape (const std::string &polygonID)
 
static std::string getType (const std::string &polygonID)
 
static void remove (const std::string &polygonID, int layer=0)
 
static void setColor (const std::string &polygonID, const TraCIColor &c)
 
static void setFilled (std::string polygonID, bool filled)
 
static void setParameter (std::string &name, std::string &value, std::string &string)
 
static void setShape (const std::string &polygonID, const TraCIPositionVector &shape)
 
static void setType (const std::string &polygonID, const std::string &setType)
 
static void subscribe (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
 
static void subscribeContext (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
 

Private Member Functions

TraCI_Polygonoperator= (const TraCI_Polygon &src)
 invalidated assignment operator More...
 
 TraCI_Polygon ()
 invalidated standard constructor More...
 
 TraCI_Polygon (const TraCI_Polygon &src)
 invalidated copy constructor More...
 

Static Private Member Functions

static SUMO::PolygongetPolygon (const std::string &id)
 

Detailed Description

Definition at line 29 of file TraCI_Polygon.h.

Constructor & Destructor Documentation

◆ TraCI_Polygon() [1/2]

TraCI_Polygon::TraCI_Polygon ( )
private

invalidated standard constructor

◆ TraCI_Polygon() [2/2]

TraCI_Polygon::TraCI_Polygon ( const TraCI_Polygon src)
private

invalidated copy constructor

Member Function Documentation

◆ add()

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

◆ getColor()

TraCIColor TraCI_Polygon::getColor ( const std::string &  polygonID)
static

◆ getFilled()

bool TraCI_Polygon::getFilled ( const std::string &  polygonID)
static

Definition at line 43 of file TraCI_Polygon.cpp.

References SUMO::Polygon::getFill(), and getPolygon().

Referenced by TraCIServerAPI_Polygon::processGet().

◆ getIDList()

std::vector< std::string > TraCI_Polygon::getIDList ( )
static

◆ getParameter()

std::string TraCI_Polygon::getParameter ( const std::string &  polygonID,
const std::string &  paramName 
)
static

Definition at line 50 of file TraCI_Polygon.cpp.

References Parameterised::getParameter(), and getPolygon().

Referenced by TraCIServerAPI_Polygon::processGet().

◆ getPolygon()

SUMO::Polygon * TraCI_Polygon::getPolygon ( const std::string &  id)
staticprivate

◆ getShape()

TraCIPositionVector TraCI_Polygon::getShape ( const std::string &  polygonID)
static

◆ getType()

std::string TraCI_Polygon::getType ( const std::string &  polygonID)
static

Definition at line 36 of file TraCI_Polygon.cpp.

References getPolygon(), and Shape::getType().

Referenced by TraCIServerAPI_Polygon::processGet().

◆ operator=()

TraCI_Polygon& TraCI_Polygon::operator= ( const TraCI_Polygon src)
private

invalidated assignment operator

◆ remove()

void TraCI_Polygon::remove ( const std::string &  polygonID,
int  layer = 0 
)
static

◆ setColor()

void TraCI_Polygon::setColor ( const std::string &  polygonID,
const TraCIColor c 
)
static

◆ setFilled()

void TraCI_Polygon::setFilled ( std::string  polygonID,
bool  filled 
)
static

Definition at line 83 of file TraCI_Polygon.cpp.

References getPolygon(), and SUMO::Polygon::setFill().

Referenced by TraCIServerAPI_Polygon::processSet().

◆ setParameter()

void TraCI_Polygon::setParameter ( std::string &  name,
std::string &  value,
std::string &  string 
)
static

Definition at line 95 of file TraCI_Polygon.cpp.

References Parameterised::addParameter(), and getPolygon().

Referenced by TraCIServerAPI_Polygon::processSet().

◆ setShape()

void TraCI_Polygon::setShape ( const std::string &  polygonID,
const TraCIPositionVector shape 
)
static

◆ setType()

void TraCI_Polygon::setType ( const std::string &  polygonID,
const std::string &  setType 
)
static

Definition at line 53 of file TraCI_Polygon.cpp.

References getPolygon(), and Shape::setType().

Referenced by TraCIServerAPI_Polygon::processSet().

◆ subscribe()

static void TraCI_Polygon::subscribe ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
const std::vector< int > &  vars 
)
static

◆ subscribeContext()

static void TraCI_Polygon::subscribeContext ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
int  domain,
double  range,
const std::vector< int > &  vars 
)
static

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