19 #ifndef SUMO_Polygon_H 20 #define SUMO_Polygon_H 49 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);
59 static void remove(
const std::string& polygonID,
int layer = 0);
65 static void setFilled(std::string polygonID,
bool filled);
66 static void setParameter(std::string& name, std::string& value, std::string&
string);
91 #endif //SUMO_Polygon_H static void setColor(const std::string &polygonID, const TraCIColor &c)
static void subscribe(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
A RT-tree for efficient storing of SUMO's Named objects.
static void setFilled(std::string polygonID, bool filled)
static std::string getType(const std::string &polygonID)
static void subscribeContext(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
static 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)
Polygon & operator=(const Polygon &src)
invalidated assignment operator
static void setParameter(std::string &name, std::string &value, std::string &string)
static std::vector< std::string > getIDList()
static void add(const std::string &polygonID, const TraCIPositionVector &shape, const TraCIColor &c, bool fill, const std::string &type, int layer)
static TraCIColor getColor(const std::string &polygonID)
static bool getFilled(const std::string &polygonID)
static SUMOPolygon * getPolygon(const std::string &id)
Polygon()
invalidated standard constructor
static void setType(const std::string &polygonID, const std::string &setType)