46 std::vector<std::string>
48 std::vector<std::string> ids;
double z() const
Returns the z-position.
static const std::string DEFAULT_IMG_FILE
static void setColor(const std::string &poiID, const TraCIColor &c)
double x() const
Returns the x-position.
static TraCIColor makeTraCIColor(const RGBColor &color)
static const double DEFAULT_IMG_HEIGHT
static void setType(const std::string &poiID, const std::string &setType)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static std::vector< std::string > getIDList()
Storage for geometrical objects.
void set(double x, double y)
set positions x and y
T get(const std::string &id) const
Retrieves an item.
ShapeContainer & getShapeContainer()
Returns the shapes container.
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
static std::string getParameter(const std::string &poiID, const std::string ¶m)
void insertIDs(std::vector< std::string > &into) const
double y() const
Returns the y-position.
void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
const std::string getParameter(const std::string &key, const std::string &defaultValue="") const
Returns the value for a given key.
const POIs & getPOIs() const
Returns all pois.
const RGBColor & getColor() const
Returns the color of the Shape.
static TraCIPosition getPosition(const std::string &poiID)
static void setParameter(const std::string &poiID, const std::string ¶m, const std::string &value)
static PointOfInterest * getPoI(const std::string &id)
static bool add(const std::string &poiID, const TraCIPosition &pos, const TraCIColor &c, const std::string &type, int layer)
static TraCIColor getColor(const std::string &poiID)
void setType(const std::string &type)
Sets a new type.
static void setPosition(const std::string &poiID, const TraCIPosition &pos)
static std::string getType(const std::string &poiID)
virtual bool addPOI(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, bool geo, const std::string &lane, double posOverLane, double posLat, double layer, double angle, const std::string &imgFile, double width, double height, bool ignorePruning=false)
Builds a POI using the given values and adds it to the container.
static Position makePosition(const TraCIPosition &position)
static const double DEFAULT_IMG_WIDTH
static RGBColor makeRGBColor(const TraCIColor &color)
const std::string & getType() const
Returns the (abstract) type of the Shape.
static bool remove(const std::string &poiID, int layer=0)
void setColor(const RGBColor &col)
Sets a new color.
static const double DEFAULT_ANGLE