 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef GUIShapeContainer_h
19 #define GUIShapeContainer_h
69 virtual bool addPolygon(
const std::string&
id,
const std::string& type,
const RGBColor& color,
double layer,
70 double angle,
const std::string& imgFile,
bool relativePath,
const PositionVector& shape,
bool geo,
71 bool fill,
double lineWidth,
bool ignorePruning =
false)
override;
78 const std::vector<double>& timeSpan,
79 const std::vector<double>& alphaSpan,
81 bool rotate)
override;
104 virtual bool addPOI(
const std::string&
id,
const std::string& type,
const RGBColor& color,
const Position& pos,
bool geo,
105 const std::string& lane,
double posOverLane,
double posLat,
double layer,
double angle,
106 const std::string& imgFile,
bool relativePath,
double width,
double height,
bool ignorePruning =
false)
override;
114 virtual bool removePolygon(
const std::string&
id,
bool useLock =
true)
override;
121 virtual bool removePOI(
const std::string&
id)
override;
129 virtual void movePOI(
const std::string&
id,
const Position& pos)
override;
Representation of a vehicle or person.
FXMutex myLock
The mutex for adding/removing operations.
SUMORTree & myVis
The RTree structure to add and remove visualization elements.
virtual void movePOI(const std::string &id, const Position &pos) override
Assigns a new position to the named PoI.
Storage for geometrical objects.
SUMOTime polygonDynamicsUpdate(SUMOTime t, PolygonDynamics *pd) override
Update PolygonDynamics,.
virtual bool removePOI(const std::string &id) override
Removes a PoI from the container.
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) override
Builds a polygon using the given values and adds it to the container.
Storage for geometrical objects extended by mutexes.
virtual ~GUIShapeContainer()
Destructor.
A RT-tree for efficient storing of SUMO's GL-objects.
virtual bool removePolygon(const std::string &id, bool useLock=true) override
Removes a polygon from the container.
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) override
Builds a POI using the given values and adds it to the container.
A point in 2D or 3D with translation and scaling methods.
std::vector< GUIGlID > getPolygonIDs() const
Returns the gl-ids of all polygons.
virtual void reshapePolygon(const std::string &id, const PositionVector &shape) override
Assigns a shape to the named polygon.
PolygonDynamics * addPolygonDynamics(double simtime, std::string polyID, SUMOTrafficObject *trackedObject, const std::vector< double > &timeSpan, const std::vector< double > &alphaSpan, bool looped, bool rotate) override
Adds dynamics to the given Polygon,.
std::vector< GUIGlID > getPOIIds() const
Returns the gl-ids of all pois.
GUIShapeContainer(SUMORTree &vis)
Constructor.
bool myAllowReplacement
whether existing ids shall be replaced