19 #ifndef GUIShapeContainer_h 20 #define GUIShapeContainer_h 71 virtual bool addPolygon(
const std::string&
id,
const std::string& type,
const RGBColor& color,
double layer,
72 double angle,
const std::string& imgFile,
bool relativePath,
const PositionVector& shape,
bool geo,
73 bool fill,
double lineWidth,
bool ignorePruning =
false);
93 virtual bool addPOI(
const std::string&
id,
const std::string& type,
const RGBColor& color,
const Position& pos,
bool geo,
94 const std::string& lane,
double posOverLane,
double posLat,
double layer,
double angle,
95 const std::string& imgFile,
bool relativePath,
double width,
double height,
bool ignorePruning =
false);
110 virtual bool removePOI(
const std::string&
id);
Storage for geometrical objects extended by mutexes.
std::vector< GUIGlID > getPOIIds() const
Returns the gl-ids of all pois.
SUMORTree & myVis
The RTree structure to add and remove visualization elements.
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, bool relativePath, double width, double height, bool ignorePruning=false)
Builds a POI using the given values and adds it to the container.
Storage for geometrical objects.
A RT-tree for efficient storing of SUMO's GL-objects.
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
A point in 2D or 3D with translation and scaling methods.
virtual void movePOI(const std::string &id, const Position &pos)
Assigns a new position to the named PoI.
MFXMutex myLock
The mutex for adding/removing operations.
virtual ~GUIShapeContainer()
Destructor.
GUIShapeContainer(SUMORTree &vis)
Constructor.
virtual bool removePolygon(const std::string &id)
Removes a polygon from the container.
std::vector< GUIGlID > getPolygonIDs() const
Returns the gl-ids of all polygons.
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, double layer, double angle, const std::string &imgFile, bool relativePath, const PositionVector &shape, bool geo, bool fill, double lineWidth, bool ignorePruning=false)
Builds a polygon using the given values and adds it to the container.
bool myAllowReplacement
whether existing ids shall be replaced