44 static std::string
getType(
const std::string& polygonID);
47 static bool getFilled(
const std::string& polygonID);
48 static double getLineWidth(
const std::string& polygonID);
53 static void setType(
const std::string& polygonID,
const std::string& polygonType);
58 static void addDynamics(
const std::string& polygonID,
const std::string& trackedObjectID =
"",
const std::vector<double>& timeSpan = std::vector<double>(),
const std::vector<double>& alphaSpan = std::vector<double>(),
bool looped =
false,
bool rotate =
true);
59 static void remove(
const std::string& polygonID,
int layer = 0);
61 static void setFilled(std::string polygonID,
bool filled);
62 static void setLineWidth(std::string polygonID,
double lineWidth);
81 static std::shared_ptr<VariableWrapper>
makeWrapper();
86 static bool exists(std::string polyID);
#define LIBSUMO_ID_PARAMETER_API
#define LIBSUMO_SUBSCRIPTION_API
static bool getFilled(const std::string &polygonID)
static NamedRTree * myTree
static void setLineWidth(std::string polygonID, double lineWidth)
static double getLineWidth(const std::string &polygonID)
static SUMOTrafficObject * getTrafficObject(const std::string &id)
Obtain a traffic object with the given id if one exists.
static std::string getType(const std::string &polygonID)
static libsumo::TraCIPositionVector getShape(const std::string &polygonID)
static void setColor(const std::string &polygonID, const libsumo::TraCIColor &color)
static NamedRTree * getTree()
Returns a tree filled with polygon instances.
static SUMOPolygon * getPolygon(const std::string &id)
static void addDynamics(const std::string &polygonID, const std::string &trackedObjectID="", const std::vector< double > &timeSpan=std::vector< double >(), const std::vector< double > &alphaSpan=std::vector< double >(), bool looped=false, bool rotate=true)
static void add(const std::string &polygonID, const libsumo::TraCIPositionVector &shape, const libsumo::TraCIColor &color, bool fill=false, const std::string &polygonType="", int layer=0, double lineWidth=1)
static void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
static libsumo::TraCIColor getColor(const std::string &polygonID)
static void addHighlightPolygon(const std::string &objectID, const int type, const std::string &polygonID, const libsumo::TraCIPositionVector &shape, const libsumo::TraCIColor &color, bool fill, const std::string &polygonType, int layer, double lineWidth)
static void remove(const std::string &polygonID, int layer=0)
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
static ContextSubscriptionResults myContextSubscriptionResults
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setType(const std::string &polygonID, const std::string &polygonType)
static void setFilled(std::string polygonID, bool filled)
static void setShape(const std::string &polygonID, const libsumo::TraCIPositionVector &shape)
static bool exists(std::string polyID)
Checks if a polygon of the given name exists already in the simulation.
Polygon()=delete
invalidated standard constructor
static std::shared_ptr< VariableWrapper > makeWrapper()
static SubscriptionResults mySubscriptionResults
A RT-tree for efficient storing of SUMO's Named objects.
Representation of a vehicle, person, or container.