21 #ifndef ShapeContainer_h 22 #define ShapeContainer_h 72 virtual bool addPolygon(
const std::string&
id,
const std::string& type,
74 double angle,
const std::string& imgFile,
76 bool fill,
bool ignorePruning =
false);
94 virtual bool addPOI(
const std::string&
id,
const std::string& type,
const RGBColor& color,
const Position& pos,
bool geo,
95 const std::string& lane,
double posOverLane,
double posLat,
double layer,
double angle,
96 const std::string& imgFile,
double width,
double height,
bool ignorePruning =
false);
108 virtual bool removePOI(
const std::string&
id);
const Polygons & getPolygons() const
Returns all polygons.
Polygons myPolygons
stored Polygons
ShapeContainer()
Constructor.
Storage for geometrical objects.
NamedObjectCont< PointOfInterest * > POIs
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 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
NamedObjectCont< SUMOPolygon * > Polygons
containers
virtual ~ShapeContainer()
Destructor.
const POIs & getPOIs() const
Returns all pois.