![]() |
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 TraCIColor &color, const std::string &poiType="", int layer=0, const std::string &imgFile=Shape::DEFAULT_IMG_FILE, double width=Shape::DEFAULT_IMG_WIDTH, double height=Shape::DEFAULT_IMG_HEIGHT, double angle=Shape::DEFAULT_ANGLE) |
static double | getAngle (const std::string &poiID) |
static TraCIColor | getColor (const std::string &poiID) |
static double | getHeight (const std::string &poiID) |
static int | getIDCount () |
static std::vector< std::string > | getIDList () |
static std::string | getImageFile (const std::string &poiID) |
static std::string | getParameter (const std::string &poiID, const std::string &key) |
static TraCIPosition | getPosition (const std::string &poiID, const bool includeZ=false) |
static LIBSUMO_SUBSCRIPTION_API 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) |
static void | highlight (const std::string &poiID, const TraCIColor &col, double size, const int alphaMax, const double duration, const int type) |
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 TraCIColor &c) |
static void | setHeight (const std::string &poiID, double height) |
static void | setImageFile (const std::string &poiID, const std::string &imageFile) |
static void | setParameter (const std::string &poiID, const std::string &key, const std::string &value) |
static void | setPosition (const std::string &poiID, double x, double y) |
static void | setType (const std::string &poiID, const std::string &setType) |
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 |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 157 of file POI.cpp.
References ShapeContainer::addPOI(), Shape::DEFAULT_RELATIVEPATH, MSNet::getInstance(), MSNet::getShapeContainer(), and libsumo::Helper::makeRGBColor().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 95 of file POI.cpp.
References getPoI(), and Shape::getShapeNaviDegree().
Referenced by handleVariable().
|
static |
Definition at line 71 of file POI.cpp.
References getPoI(), and libsumo::Helper::makeTraCIColor().
Referenced by handleVariable().
|
static |
Definition at line 89 of file POI.cpp.
References PointOfInterest::getHeight(), and getPoI().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 50 of file POI.cpp.
References MSNet::getInstance(), ShapeContainer::getPOIs(), MSNet::getShapeContainer(), and NamedObjectCont< T >::insertIDs().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 101 of file POI.cpp.
References getPoI(), and Shape::getShapeImgFile().
Referenced by handleVariable().
|
static |
Definition at line 107 of file POI.cpp.
References Parameterised::getParameter(), and getPoI().
Referenced by TraCIServerAPI_POI::processGet().
|
staticprivate |
Definition at line 241 of file POI.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().
Referenced by getAngle(), getColor(), getHeight(), getImageFile(), getParameter(), getPosition(), getType(), getWidth(), highlight(), setAngle(), setColor(), setHeight(), setImageFile(), setParameter(), setPosition(), setType(), setWidth(), and storeShape().
|
static |
Definition at line 77 of file POI.cpp.
References getPoI(), and libsumo::Helper::makeTraCIPosition().
Referenced by handleVariable().
|
static |
Returns a tree filled with PoI instances.
Definition at line 251 of file POI.cpp.
References MSNet::getInstance(), ShapeContainer::getPOIs(), MSNet::getShapeContainer(), and NamedRTree::Insert().
|
static |
Definition at line 65 of file POI.cpp.
References getPoI(), and Shape::getShapeType().
Referenced by handleVariable().
|
static |
Definition at line 83 of file POI.cpp.
References getPoI(), and PointOfInterest::getWidth().
Referenced by handleVariable().
|
static |
Definition at line 276 of file POI.cpp.
References getAngle(), getColor(), getHeight(), getIDCount(), getIDList(), getImageFile(), getPosition(), getType(), getWidth(), libsumo::ID_COUNT, libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, libsumo::VAR_HEIGHT, libsumo::VAR_IMAGEFILE, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_TYPE, libsumo::VAR_WIDTH, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_POI::processGet().
|
static |
Definition at line 176 of file POI.cpp.
References libsumo::Polygon::addDynamics(), libsumo::Polygon::addHighlightPolygon(), libsumo::Polygon::exists(), PointOfInterest::getHeight(), Named::getID(), MSNet::getInstance(), getPoI(), Shape::getShapeLayer(), PointOfInterest::getWidth(), GeomHelper::makeRing(), libsumo::Helper::makeTraCIPositionVector(), MIN2(), SIMTIME, and toString().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 270 of file POI.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
static |
Definition at line 169 of file POI.cpp.
References MSNet::getInstance(), MSNet::getShapeContainer(), and ShapeContainer::removePOI().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 145 of file POI.cpp.
References getPoI(), and Shape::setShapeNaviDegree().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 127 of file POI.cpp.
References getPoI(), libsumo::Helper::makeRGBColor(), and Shape::setShapeColor().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 139 of file POI.cpp.
References getPoI(), and PointOfInterest::setHeight().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 151 of file POI.cpp.
References getPoI(), and Shape::setShapeImgFile().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 230 of file POI.cpp.
References getPoI(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and Parameterised::setParameter().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 119 of file POI.cpp.
References MSNet::getInstance(), getPoI(), MSNet::getShapeContainer(), and ShapeContainer::movePOI().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 113 of file POI.cpp.
References getPoI(), and Shape::setShapeType().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
Definition at line 133 of file POI.cpp.
References getPoI(), and PointOfInterest::setWidth().
Referenced by TraCIServerAPI_POI::processSet().
|
static |
|
staticprivate |
Definition at line 101 of file POI.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 100 of file POI.h.
Referenced by makeWrapper().