49 #ifdef CHECK_MEMORY_LEAKS 51 #endif // CHECK_MEMORY_LEAKS 64 SUMOReal angle,
const std::string& imgFile,
66 Polygon* p =
new Polygon(
id, type, color, shape, fill, layer, angle, imgFile);
105 static_cast<Position*
>(p)->
set(pos);
virtual bool add(const std::string &id, T item)
Adds an item.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
Polygons myPolygons
stored Polygons
ShapeContainer()
Constructor.
T get(const std::string &id) const
Retrieves an item.
virtual void movePOI(const std::string &id, const Position &pos)
Assigns a new position to the named PoI.
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 bool remove(const std::string &id)
Removes an item.
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)
Builds a POI using the given values and adds it to the container.
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)
Builds a polygon using the given values and adds it to the container.
virtual ~ShapeContainer()
Destructor.