49 #ifdef CHECK_MEMORY_LEAKS 51 #endif // CHECK_MEMORY_LEAKS 64 SUMOReal angle,
const std::string& imgFile,
66 return add(
new SUMO::Polygon(
id, type, color, shape, fill, layer, angle, imgFile), ignorePruning);
74 return add(
new PointOfInterest(
id, type, color, pos, layer, angle, imgFile, width, height), ignorePruning);
virtual bool add(const std::string &id, T item)
Adds an item.
T get(const std::string &id) const
Retrieves an item.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
Polygons myPolygons
stored Polygons
ShapeContainer()
Constructor.
const std::string & getID() const
Returns the id.
virtual void movePOI(const std::string &id, const Position &pos)
Assigns a new position to the named PoI.
virtual bool addPOI(const std::string &id, const std::string &type, const RGBColor &color, SUMOReal layer, SUMOReal angle, const std::string &imgFile, const Position &pos, SUMOReal width, SUMOReal height, bool ignorePruning=false)
Builds a POI using the given values and adds it to the container.
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 add(SUMO::Polygon *poly, bool ignorePruning=false)
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
virtual bool remove(const std::string &id)
Removes an item.
virtual void reshapePolygon(const std::string &id, const PositionVector &shape)
Assigns a shape to the named polygon.
virtual bool addPolygon(const std::string &id, const std::string &type, const RGBColor &color, SUMOReal layer, SUMOReal angle, const std::string &imgFile, const PositionVector &shape, bool fill, bool ignorePruning=false)
Builds a polygon using the given values and adds it to the container.
virtual ~ShapeContainer()
Destructor.