 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
41 class VariableWrapper;
55 static std::vector<std::string>
getIDList();
57 static std::string
getType(
const std::string& poiID);
60 static double getWidth(
const std::string& poiID);
61 static double getHeight(
const std::string& poiID);
62 static double getAngle(
const std::string& poiID);
63 static std::string
getImageFile(
const std::string& poiID);
64 static std::string
getParameter(
const std::string& poiID,
const std::string& key);
66 static void setType(
const std::string& poiID,
const std::string&
setType);
68 static void setPosition(
const std::string& poiID,
double x,
double y);
69 static void setWidth(
const std::string& poiID,
double width);
70 static void setHeight(
const std::string& poiID,
double height);
71 static void setAngle(
const std::string& poiID,
double angle);
72 static void setImageFile(
const std::string& poiID,
const std::string& imageFile);
74 static bool remove(
const std::string& poiID,
int layer = 0);
75 static void highlight(
const std::string& poiID,
const TraCIColor& col,
double size,
const int alphaMax,
const double duration,
const int type);
77 static void setParameter(
const std::string& poiID,
const std::string& key,
const std::string& value);
92 static std::shared_ptr<VariableWrapper>
makeWrapper();
static std::vector< std::string > getIDList()
#define LIBSUMO_SUBSCRIPTION_API
static double getWidth(const std::string &poiID)
static TraCIPosition getPosition(const std::string &poiID, const bool includeZ=false)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static double getHeight(const std::string &poiID)
static LIBSUMO_SUBSCRIPTION_API NamedRTree * getTree()
Returns a tree filled with PoI instances.
static std::shared_ptr< VariableWrapper > makeWrapper()
static const double DEFAULT_IMG_HEIGHT
static void setHeight(const std::string &poiID, double height)
static void setPosition(const std::string &poiID, double x, double y)
static void setAngle(const std::string &poiID, double angle)
static std::string getImageFile(const std::string &poiID)
static bool add(const std::string &poiID, double x, double y, const TraCIColor &color, const std::string &poiType="", int layer=0, const std::string &imgFile=Shape::DEFAULT_IMG_FILE, double width=Shape::DEFAULT_IMG_WIDTH, double height=Shape::DEFAULT_IMG_HEIGHT, double angle=Shape::DEFAULT_ANGLE)
static std::string getType(const std::string &poiID)
POI()=delete
invalidated standard constructor
static void setType(const std::string &poiID, const std::string &setType)
static PointOfInterest * getPoI(const std::string &id)
static double getAngle(const std::string &poiID)
static void setWidth(const std::string &poiID, double width)
static SubscriptionResults mySubscriptionResults
static TraCIColor getColor(const std::string &poiID)
static void setColor(const std::string &poiID, const TraCIColor &c)
static std::string getParameter(const std::string &poiID, const std::string &key)
static void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
static void setImageFile(const std::string &poiID, const std::string &imageFile)
A RT-tree for efficient storing of SUMO's Named objects.
static const double DEFAULT_ANGLE
static const std::string DEFAULT_IMG_FILE
static void highlight(const std::string &poiID, const TraCIColor &col, double size, const int alphaMax, const double duration, const int type)
static void setParameter(const std::string &poiID, const std::string &key, const std::string &value)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
static ContextSubscriptionResults myContextSubscriptionResults
static const double DEFAULT_IMG_WIDTH
static bool remove(const std::string &poiID, int layer=0)