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 double getLineWidth(
const std::string& polygonID);
55 static std::string
getParameter(
const std::string& polygonID,
const std::string& key);
56 static void setType(
const std::string& polygonID,
const std::string&
setType);
59 static void add(
const std::string& polygonID,
const TraCIPositionVector& shape,
const TraCIColor& color,
bool fill =
false,
double lineWidth = 1,
const std::string& polygonType =
"",
int layer = 0);
60 static void remove(
const std::string& polygonID,
int layer = 0);
62 static void setFilled(std::string polygonID,
bool filled);
63 static void setLineWidth(std::string polygonID,
double lineWidth);
64 static void setParameter(
const std::string& polygonID,
const std::string& key,
const std::string& value);
79 static std::shared_ptr<VariableWrapper>
makeWrapper();
98 #endif //SUMO_Polygon_H static void setColor(const std::string &polygonID, const TraCIColor &c)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
static void setLineWidth(std::string polygonID, double lineWidth)
#define LIBSUMO_SUBSCRIPTION_API
static std::string getParameter(const std::string &polygonID, const std::string &key)
static void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
static SubscriptionResults mySubscriptionResults
static void add(const std::string &polygonID, const TraCIPositionVector &shape, const TraCIColor &color, bool fill=false, double lineWidth=1, const std::string &polygonType="", int layer=0)
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 std::string getType(const std::string &polygonID)
static LIBSUMO_SUBSCRIPTION_API NamedRTree * getTree()
Returns a tree filled with polygon instances.
static TraCIPositionVector getShape(const std::string &polygonID)
static void setShape(const std::string &polygonID, const TraCIPositionVector &shape)
static std::shared_ptr< VariableWrapper > makeWrapper()
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 void setParameter(const std::string &polygonID, const std::string &key, const std::string &value)
static ContextSubscriptionResults myContextSubscriptionResults
static void setType(const std::string &polygonID, const std::string &setType)
static double getLineWidth(const std::string &polygonID)