Eclipse SUMO - Simulation of Urban MObility
|
#include <POI.h>
Static Public Member Functions | |
static bool | add (const std::string &poiID, double x, double y, const libsumo::TraCIColor &color, const std::string &poiType="", int layer=0, const std::string &imgFile="", double width=1, double height=1, double angle=0, const std::string &icon="") |
static void | cleanup () |
static double | getAngle (const std::string &poiID) |
static libsumo::TraCIColor | getColor (const std::string &poiID) |
static double | getHeight (const std::string &poiID) |
static std::string | getImageFile (const std::string &poiID) |
static libsumo::TraCIPosition | getPosition (const std::string &poiID, const bool includeZ=false) |
static NamedRTree * | getTree () |
Returns a tree filled with PoI instances. More... | |
static std::string | getType (const std::string &poiID) |
static double | getWidth (const std::string &poiID) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData) |
static void | highlight (const std::string &poiID, const libsumo::TraCIColor &col=libsumo::TraCIColor(255, 0, 0, 255), double size=-1, const int alphaMax=-1, const double duration=-1, const int type=0) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static bool | remove (const std::string &poiID, int layer=0) |
static void | setAngle (const std::string &poiID, double angle) |
static void | setColor (const std::string &poiID, const libsumo::TraCIColor &color) |
static void | setHeight (const std::string &poiID, double height) |
static void | setImageFile (const std::string &poiID, const std::string &imageFile) |
static void | setPosition (const std::string &poiID, double x, double y) |
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void | setType (const std::string &poiID, const std::string &poiType) |
static void | setWidth (const std::string &poiID, double width) |
static void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Private Member Functions | |
POI ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static PointOfInterest * | getPoI (const std::string &id) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
static NamedRTree * | myTree |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 158 of file libsumo/POI.cpp.
References ShapeContainer::addPOI(), Shape::DEFAULT_RELATIVEPATH, NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), MSNet::getShapeContainer(), libsumo::Helper::makeRGBColor(), Position::x(), and Position::y().
|
static |
Definition at line 278 of file libsumo/POI.cpp.
|
static |
Definition at line 93 of file libsumo/POI.cpp.
|
static |
Definition at line 69 of file libsumo/POI.cpp.
References libsumo::Helper::makeTraCIColor().
|
static |
Definition at line 87 of file libsumo/POI.cpp.
|
static |
Definition at line 99 of file libsumo/POI.cpp.
|
staticprivate |
Definition at line 254 of file libsumo/POI.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().
|
static |
Definition at line 75 of file libsumo/POI.cpp.
References libsumo::Helper::makeTraCIPosition().
|
static |
Returns a tree filled with PoI instances.
Definition at line 264 of file libsumo/POI.cpp.
References MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().
|
static |
Definition at line 63 of file libsumo/POI.cpp.
|
static |
Definition at line 81 of file libsumo/POI.cpp.
|
static |
Definition at line 297 of file libsumo/POI.cpp.
References libsumo::ID_COUNT, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, libsumo::VAR_HEIGHT, libsumo::VAR_IMAGEFILE, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_TYPE, and libsumo::VAR_WIDTH.
|
static |
Definition at line 189 of file libsumo/POI.cpp.
References PointOfInterest::getHeight(), Named::getID(), MSNet::getInstance(), Shape::getShapeLayer(), PointOfInterest::getWidth(), GeomHelper::makeRing(), libsumo::Helper::makeTraCIPositionVector(), MIN2(), SIMTIME, and toString().
|
static |
Definition at line 291 of file libsumo/POI.cpp.
|
static |
Definition at line 176 of file libsumo/POI.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), MSNet::getShapeContainer(), ShapeContainer::removePOI(), Position::x(), and Position::y().
|
static |
Definition at line 146 of file libsumo/POI.cpp.
|
static |
Definition at line 128 of file libsumo/POI.cpp.
References libsumo::Helper::makeRGBColor().
|
static |
Definition at line 140 of file libsumo/POI.cpp.
|
static |
Definition at line 152 of file libsumo/POI.cpp.
|
static |
Definition at line 120 of file libsumo/POI.cpp.
References MSNet::getInstance(), MSNet::getShapeContainer(), and ShapeContainer::movePOI().
|
static |
Definition at line 114 of file libsumo/POI.cpp.
|
static |
Definition at line 134 of file libsumo/POI.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/POI.cpp.
|
staticprivate |
|
staticprivate |