22 #ifndef ShapeContainer_h
23 #define ShapeContainer_h
71 virtual bool addPolygon(
const std::string&
id,
const std::string& type,
73 SUMOReal angle,
const std::string& imgFile,
75 bool ignorePruning =
false);
90 virtual bool addPOI(
const std::string&
id,
const std::string& type,
107 virtual bool removePOI(
const std::string&
id);
Polygons myPolygons
stored Polygons
ShapeContainer()
Constructor.
Storage for geometrical objects.
const Polygons & getPolygons() const
Returns all polygons.
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.
const POIs & getPOIs() const
Returns all pois.
virtual void reshapePolygon(const std::string &id, const PositionVector &shape)
Assigns a shape to the named polygon.
NamedObjectCont< PointOfInterest * > POIs
NamedObjectCont< SUMO::Polygon * > Polygons
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.