![]() |
SUMO - Simulation of Urban MObility
|
#include <Polygon.h>
Static Public Member Functions | |
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) |
static TraCIColor | getColor (const std::string &polygonID) |
static bool | getFilled (const std::string &polygonID) |
static int | getIDCount () |
static std::vector< std::string > | getIDList () |
static double | getLineWidth (const std::string &polygonID) |
static std::string | getParameter (const std::string &polygonID, const std::string &key) |
static TraCIPositionVector | getShape (const std::string &polygonID) |
static LIBSUMO_SUBSCRIPTION_API NamedRTree * | getTree () |
Returns a tree filled with polygon instances. More... | |
static std::string | getType (const std::string &polygonID) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | remove (const std::string &polygonID, int layer=0) |
static void | setColor (const std::string &polygonID, const TraCIColor &c) |
static void | setFilled (std::string polygonID, bool filled) |
static void | setLineWidth (std::string polygonID, double lineWidth) |
static void | setParameter (const std::string &polygonID, const std::string &key, const std::string &value) |
static void | setShape (const std::string &polygonID, const TraCIPositionVector &shape) |
static void | setType (const std::string &polygonID, const std::string &setType) |
static void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Private Member Functions | |
Polygon ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static SUMOPolygon * | getPolygon (const std::string &id) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 116 of file Polygon.cpp.
References ShapeContainer::addPolygon(), Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_RELATIVEPATH, MSNet::getInstance(), MSNet::getShapeContainer(), libsumo::Helper::makePositionVector(), and libsumo::Helper::makeRGBColor().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 81 of file Polygon.cpp.
References getPolygon(), Shape::getShapeColor(), and libsumo::Helper::makeTraCIColor().
Referenced by handleVariable().
|
static |
Definition at line 71 of file Polygon.cpp.
References SUMOPolygon::getFill(), and getPolygon().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 43 of file Polygon.cpp.
References MSNet::getInstance(), ShapeContainer::getPolygons(), MSNet::getShapeContainer(), and NamedObjectCont< T >::insertIDs().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 76 of file Polygon.cpp.
References SUMOPolygon::getLineWidth(), and getPolygon().
Referenced by handleVariable().
|
static |
Definition at line 88 of file Polygon.cpp.
References Parameterised::getParameter(), and getPolygon().
Referenced by TraCIServerAPI_Polygon::processGet().
|
staticprivate |
Definition at line 150 of file Polygon.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPolygons(), and MSNet::getShapeContainer().
Referenced by getColor(), getFilled(), getLineWidth(), getParameter(), getShape(), getType(), setColor(), setFilled(), setLineWidth(), setParameter(), setShape(), setType(), and storeShape().
|
static |
Definition at line 64 of file Polygon.cpp.
References getPolygon(), SUMOPolygon::getShape(), and libsumo::Helper::makeTraCIPositionVector().
Referenced by TraCIServerAPI_Polygon::processGet().
|
static |
Returns a tree filled with polygon instances.
Definition at line 170 of file Polygon.cpp.
References MSNet::getInstance(), ShapeContainer::getPolygons(), MSNet::getShapeContainer(), NamedRTree::Insert(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
static |
Definition at line 58 of file Polygon.cpp.
References getPolygon(), and Shape::getShapeType().
Referenced by handleVariable().
|
static |
Definition at line 196 of file Polygon.cpp.
References getColor(), getFilled(), getIDCount(), getIDList(), getLineWidth(), getType(), ID_COUNT, TRACI_ID_LIST, VAR_COLOR, VAR_FILL, VAR_TYPE, VAR_WIDTH, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_Polygon::processGet().
|
static |
Definition at line 190 of file Polygon.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
static |
Definition at line 127 of file Polygon.cpp.
References MSNet::getInstance(), MSNet::getShapeContainer(), and ShapeContainer::removePolygon().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 110 of file Polygon.cpp.
References getPolygon(), libsumo::Helper::makeRGBColor(), and Shape::setShapeColor().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 137 of file Polygon.cpp.
References getPolygon(), and SUMOPolygon::setFill().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 143 of file Polygon.cpp.
References getPolygon(), and SUMOPolygon::setLineWidth().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 160 of file Polygon.cpp.
References getPolygon(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and Parameterised::setParameter().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 101 of file Polygon.cpp.
References MSNet::getInstance(), getPolygon(), MSNet::getShapeContainer(), libsumo::Helper::makePositionVector(), and ShapeContainer::reshapePolygon().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 94 of file Polygon.cpp.
References getPolygon(), and Shape::setShapeType().
Referenced by TraCIServerAPI_Polygon::processSet().
|
static |
Saves the shape of the requested object in the given container.
id | The id of the poi to retrieve |
shape | The container to fill |
Definition at line 184 of file Polygon.cpp.
References getPolygon(), and SUMOPolygon::getShape().
|
staticprivate |
Definition at line 88 of file Polygon.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 87 of file Polygon.h.
Referenced by makeWrapper().