17 #ifndef SUMO_Polygon_H 18 #define SUMO_Polygon_H 38 class VariableWrapper;
48 static std::vector<std::string>
getIDList();
50 static std::string
getType(
const std::string& polygonID);
53 static bool getFilled(
const std::string& polygonID);
54 static std::string
getParameter(
const std::string& polygonID,
const std::string& paramName);
55 static void setType(
const std::string& polygonID,
const std::string&
setType);
58 static void add(
const std::string& polygonID,
const TraCIPositionVector& shape,
const TraCIColor& color,
bool fill =
false,
const std::string& polygonType =
"",
int layer = 0);
59 static void remove(
const std::string& polygonID,
int layer = 0);
61 static void setFilled(std::string polygonID,
bool filled);
62 static void setParameter(std::string& name, std::string& value, std::string&
string);
77 static std::shared_ptr<VariableWrapper>
makeWrapper();
96 #endif //SUMO_Polygon_H static void setColor(const std::string &polygonID, const TraCIColor &c)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
#define LIBSUMO_SUBSCRIPTION_API
static void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
static SubscriptionResults mySubscriptionResults
A RT-tree for efficient storing of SUMO's Named objects.
Polygon()=delete
invalidated standard constructor
static void setFilled(std::string polygonID, bool filled)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static void add(const std::string &polygonID, const TraCIPositionVector &shape, const TraCIColor &color, bool fill=false, const std::string &polygonType="", int layer=0)
static std::string getType(const std::string &polygonID)
static LIBSUMO_SUBSCRIPTION_API NamedRTree * getTree()
Returns a tree filled with polygon instances.
static std::string getParameter(const std::string &polygonID, const std::string ¶mName)
static TraCIPositionVector getShape(const std::string &polygonID)
static void setShape(const std::string &polygonID, const TraCIPositionVector &shape)
static std::shared_ptr< VariableWrapper > makeWrapper()
static void setParameter(std::string &name, std::string &value, std::string &string)
static std::vector< std::string > getIDList()
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static TraCIColor getColor(const std::string &polygonID)
static bool getFilled(const std::string &polygonID)
static SUMOPolygon * getPolygon(const std::string &id)
static ContextSubscriptionResults myContextSubscriptionResults
static void setType(const std::string &polygonID, const std::string &setType)