Eclipse SUMO - Simulation of Urban MObility
|
#include <Polygon.h>
Static Public Member Functions | |
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 | 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 | 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 | cleanup () |
static bool | exists (std::string polyID) |
Checks if a polygon of the given name exists already in the simulation. More... | |
static libsumo::TraCIColor | getColor (const std::string &polygonID) |
static bool | getFilled (const std::string &polygonID) |
static double | getLineWidth (const std::string &polygonID) |
static libsumo::TraCIPositionVector | getShape (const std::string &polygonID) |
static 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, tcpip::Storage *paramData) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | remove (const std::string &polygonID, int layer=0) |
static void | setColor (const std::string &polygonID, const libsumo::TraCIColor &color) |
static void | setFilled (std::string polygonID, bool filled) |
static void | setLineWidth (std::string polygonID, double lineWidth) |
static void | setShape (const std::string &polygonID, const libsumo::TraCIPositionVector &shape) |
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void | setType (const std::string &polygonID, const std::string &polygonType) |
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 SUMOTrafficObject * | getTrafficObject (const std::string &id) |
Obtain a traffic object with the given id if one exists. More... | |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
static NamedRTree * | myTree |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 122 of file libsumo/Polygon.cpp.
References ShapeContainer::addPolygon(), Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_RELATIVEPATH, NamedObjectCont< T >::get(), PositionVector::getBoxBoundary(), MSNet::getInstance(), ShapeContainer::getPolygons(), SUMOPolygon::getShape(), MSNet::getShapeContainer(), libsumo::Helper::makePositionVector(), libsumo::Helper::makeRGBColor(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
static |
Definition at line 147 of file libsumo/Polygon.cpp.
References MSEventControl::addEvent(), ShapeContainer::addPolygonDynamics(), ShapeContainer::addPolygonUpdateCommand(), MSNet::addVehicleStateListener(), MSNet::getEndOfTimestepEvents(), MSNet::getInstance(), PolygonDynamics::getPolygonID(), MSNet::getShapeContainer(), MSNet::makeDynamicShapeUpdater(), ShapeContainer::polygonDynamicsUpdate(), SIMSTEP, and SIMTIME.
|
static |
Definition at line 140 of file libsumo/Polygon.cpp.
References MSNet::getInstance(), MSNet::getShapeContainer(), and ShapeContainer::registerHighlight().
|
static |
Definition at line 279 of file libsumo/Polygon.cpp.
|
static |
Checks if a polygon of the given name exists already in the simulation.
Definition at line 326 of file libsumo/Polygon.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPolygons(), and MSNet::getShapeContainer().
|
static |
Definition at line 85 of file libsumo/Polygon.cpp.
References Shape::getShapeColor(), and libsumo::Helper::makeTraCIColor().
|
static |
Definition at line 75 of file libsumo/Polygon.cpp.
|
static |
Definition at line 80 of file libsumo/Polygon.cpp.
|
staticprivate |
Definition at line 224 of file libsumo/Polygon.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPolygons(), and MSNet::getShapeContainer().
|
static |
Definition at line 68 of file libsumo/Polygon.cpp.
References SUMOPolygon::getShape(), and libsumo::Helper::makeTraCIPositionVector().
|
staticprivate |
Obtain a traffic object with the given id if one exists.
Definition at line 234 of file libsumo/Polygon.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), MSNet::getPersonControl(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().
|
static |
Returns a tree filled with polygon instances.
Definition at line 264 of file libsumo/Polygon.cpp.
References PositionVector::getBoxBoundary(), MSNet::getInstance(), ShapeContainer::getPolygons(), Boundary::getShape(), MSNet::getShapeContainer(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
static |
Definition at line 62 of file libsumo/Polygon.cpp.
|
static |
Definition at line 297 of file libsumo/Polygon.cpp.
References libsumo::ID_COUNT, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_COLOR, libsumo::VAR_FILL, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, libsumo::VAR_SHAPE, libsumo::VAR_TYPE, and libsumo::VAR_WIDTH.
|
static |
Definition at line 291 of file libsumo/Polygon.cpp.
|
static |
Definition at line 192 of file libsumo/Polygon.cpp.
References NamedObjectCont< T >::get(), PositionVector::getBoxBoundary(), MSNet::getInstance(), ShapeContainer::getPolygons(), SUMOPolygon::getShape(), MSNet::getShapeContainer(), ShapeContainer::removePolygon(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
static |
Definition at line 116 of file libsumo/Polygon.cpp.
References libsumo::Helper::makeRGBColor().
|
static |
Definition at line 211 of file libsumo/Polygon.cpp.
References SUMOPolygon::setFill().
|
static |
Definition at line 217 of file libsumo/Polygon.cpp.
References SUMOPolygon::setLineWidth().
|
static |
Definition at line 107 of file libsumo/Polygon.cpp.
References MSNet::getInstance(), MSNet::getShapeContainer(), libsumo::Helper::makePositionVector(), and ShapeContainer::reshapePolygon().
|
static |
Definition at line 101 of file libsumo/Polygon.cpp.
|
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 285 of file libsumo/Polygon.cpp.
|
staticprivate |
|
staticprivate |
|
staticprivate |