57 double angle,
const std::string& imgFile,
58 const PositionVector& shape,
bool geo,
bool fill,
bool ignorePruning) {
59 return add(
new SUMOPolygon(
id, type, color, shape, geo, fill, layer, angle, imgFile), ignorePruning);
65 const std::string& lane,
double posOverLane,
double posLat,
double layer,
double angle,
66 const std::string& imgFile,
double width,
double height,
bool ignorePruning) {
67 return add(
new PointOfInterest(
id, type, color, pos, geo, lane, posOverLane, posLat, layer, angle, imgFile, width, height), ignorePruning);
T get(const std::string &id) const
Retrieves an item.
Polygons myPolygons
stored Polygons
ShapeContainer()
Constructor.
const std::string & getID() const
Returns the id.
bool add(const std::string &id, T item)
Adds an item.
virtual bool addPolygon(const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, const PositionVector &shape, bool geo, bool fill, bool ignorePruning=false)
Builds a polygon using the given values and adds it to the container.
virtual void movePOI(const std::string &id, const Position &pos)
Assigns a new position to the named PoI.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
virtual bool removePolygon(const std::string &id)
Removes a polygon from the container.
A point in 2D or 3D with translation and scaling methods.
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
virtual void reshapePolygon(const std::string &id, const PositionVector &shape)
Assigns a shape to the named polygon.
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.
virtual bool add(SUMOPolygon *poly, bool ignorePruning=false)
add polygon
bool remove(const std::string &id, const bool del=true)
Removes an item.
virtual ~ShapeContainer()
Destructor.