Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::POI Class Reference

#include <POI.h>

Collaboration diagram for LIBSUMO_NAMESPACE::POI:
[legend]

Static Public Member Functions

static bool add (const std::string &poiID, double x, double y, const libsumo::TraCIColor &color, const std::string &poiType="", int layer=0, const std::string &imgFile="", double width=1, double height=1, double angle=0)
 
static void cleanup ()
 
static double getAngle (const std::string &poiID)
 
static libsumo::TraCIColor getColor (const std::string &poiID)
 
static double getHeight (const std::string &poiID)
 
static std::string getImageFile (const std::string &poiID)
 
static libsumo::TraCIPosition getPosition (const std::string &poiID, const bool includeZ=false)
 
static NamedRTreegetTree ()
 Returns a tree filled with PoI instances.
 
static std::string getType (const std::string &poiID)
 
static double getWidth (const std::string &poiID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
 
static void highlight (const std::string &poiID, const libsumo::TraCIColor &col=libsumo::TraCIColor(255, 0, 0, 255), double size=-1, const int alphaMax=-1, const double duration=-1, const int type=0)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
static bool remove (const std::string &poiID, int layer=0)
 
static void setAngle (const std::string &poiID, double angle)
 
static void setColor (const std::string &poiID, const libsumo::TraCIColor &color)
 
static void setHeight (const std::string &poiID, double height)
 
static void setImageFile (const std::string &poiID, const std::string &imageFile)
 
static void setPosition (const std::string &poiID, double x, double y)
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setType (const std::string &poiID, const std::string &setType)
 
static void setWidth (const std::string &poiID, double width)
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container.
 

Private Member Functions

 POI ()=delete
 invalidated standard constructor
 

Static Private Member Functions

static PointOfInterestgetPoI (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 
static NamedRTreemyTree
 

Detailed Description

Definition at line 46 of file POI.h.

Constructor & Destructor Documentation

◆ POI()

LIBSUMO_NAMESPACE::POI::POI ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ add()

bool POI::add ( const std::string &  poiID,
double  x,
double  y,
const libsumo::TraCIColor color,
const std::string &  poiType = "",
int  layer = 0,
const std::string &  imgFile = "",
double  width = 1,
double  height = 1,
double  angle = 0 
)
static

◆ cleanup()

void POI::cleanup ( )
static

Definition at line 282 of file libsumo/POI.cpp.

◆ getAngle()

double POI::getAngle ( const std::string &  poiID)
static

Definition at line 94 of file libsumo/POI.cpp.

◆ getColor()

libsumo::TraCIColor POI::getColor ( const std::string &  poiID)
static

Definition at line 70 of file libsumo/POI.cpp.

References libsumo::Helper::makeTraCIColor().

◆ getHeight()

double POI::getHeight ( const std::string &  poiID)
static

Definition at line 88 of file libsumo/POI.cpp.

◆ getImageFile()

std::string POI::getImageFile ( const std::string &  poiID)
static

Definition at line 100 of file libsumo/POI.cpp.

◆ getPoI()

PointOfInterest * POI::getPoI ( const std::string &  id)
staticprivate

◆ getPosition()

libsumo::TraCIPosition POI::getPosition ( const std::string &  poiID,
const bool  includeZ = false 
)
static

Definition at line 76 of file libsumo/POI.cpp.

References libsumo::Helper::makeTraCIPosition().

◆ getTree()

NamedRTree * POI::getTree ( )
static

Returns a tree filled with PoI instances.

Returns
The rtree of PoIs

Definition at line 268 of file libsumo/POI.cpp.

References MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().

◆ getType()

std::string POI::getType ( const std::string &  poiID)
static

Definition at line 64 of file libsumo/POI.cpp.

◆ getWidth()

double POI::getWidth ( const std::string &  poiID)
static

Definition at line 82 of file libsumo/POI.cpp.

◆ handleVariable()

◆ highlight()

void POI::highlight ( const std::string &  poiID,
const libsumo::TraCIColor col = libsumo::TraCIColor(255, 0, 0, 255),
double  size = -1,
const int  alphaMax = -1,
const double  duration = -1,
const int  type = 0 
)
static

◆ makeWrapper()

std::shared_ptr< VariableWrapper > POI::makeWrapper ( )
static

Definition at line 295 of file libsumo/POI.cpp.

◆ remove()

bool POI::remove ( const std::string &  poiID,
int  layer = 0 
)
static

◆ setAngle()

void POI::setAngle ( const std::string &  poiID,
double  angle 
)
static

Definition at line 147 of file libsumo/POI.cpp.

◆ setColor()

void POI::setColor ( const std::string &  poiID,
const libsumo::TraCIColor color 
)
static

Definition at line 129 of file libsumo/POI.cpp.

References libsumo::Helper::makeRGBColor().

◆ setHeight()

void POI::setHeight ( const std::string &  poiID,
double  height 
)
static

Definition at line 141 of file libsumo/POI.cpp.

◆ setImageFile()

void POI::setImageFile ( const std::string &  poiID,
const std::string &  imageFile 
)
static

Definition at line 153 of file libsumo/POI.cpp.

◆ setPosition()

void POI::setPosition ( const std::string &  poiID,
double  x,
double  y 
)
static

◆ setType()

void POI::setType ( const std::string &  poiID,
const std::string &  setType 
)
static

Definition at line 115 of file libsumo/POI.cpp.

◆ setWidth()

void POI::setWidth ( const std::string &  poiID,
double  width 
)
static

Definition at line 135 of file libsumo/POI.cpp.

◆ storeShape()

void POI::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the poi to retrieve
shapeThe container to fill

Definition at line 289 of file libsumo/POI.cpp.

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults POI::myContextSubscriptionResults
staticprivate

Definition at line 95 of file POI.h.

◆ mySubscriptionResults

SubscriptionResults POI::mySubscriptionResults
staticprivate

Definition at line 94 of file POI.h.

◆ myTree

NamedRTree * POI::myTree
staticprivate

Definition at line 96 of file POI.h.


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