![]() |
SUMO - Simulation of Urban MObility
|
#include <GUIPerson.h>


Data Structures | |
| class | GUIPersonPopupMenu |
Public Types | |
| typedef std::vector< MSTransportable::Stage * > | MSTransportablePlan |
| the structure holding the plan of a transportable More... | |
| enum | StageType { WAITING_FOR_DEPART = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2, DRIVING = 3, ACCESS = 4 } |
| enum | VisualisationFeatures { VO_SHOW_WALKINGAREA_PATH = 1, VO_SHOW_ROUTE = 2, VO_TRACKED = 8 } |
| Additional visualisation feature ids. More... | |
Public Member Functions | ||||
| void | appendStage (Stage *stage, int next=-1) | |||
| Appends the given stage to the current plan. More... | ||||
| void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
| draw name of item More... | ||||
| virtual double | getAngle () const | |||
| return the current angle of the transportable More... | ||||
| const MSEdge * | getArrivalEdge () const | |||
| returns the final arrival edge More... | ||||
| double | getArrivalPos () const | |||
| returns the final arrival pos More... | ||||
| PositionVector | getBoundingBox () const | |||
| return the bounding box of the person More... | ||||
| MSTransportable::Stage * | getCurrentStage () const | |||
| Return the current stage. More... | ||||
| std::string | getCurrentStageDescription () const | |||
| Returns the current stage description as a string. More... | ||||
| StageType | getCurrentStageType () const | |||
| the current stage type of the transportable More... | ||||
| SUMOTime | getDesiredDepart () const | |||
| Returns the desired departure time. More... | ||||
| const MSEdge * | getDestination () const | |||
| Returns the current destination. More... | ||||
| const MSEdge * | getEdge () const | |||
| Returns the current edge. More... | ||||
| ConstMSEdgeVector | getEdges (int next) const | |||
| Return the edges of the nth next stage. More... | ||||
| const MSEdge * | getFromEdge () const | |||
| Returns the departure edge. More... | ||||
| const std::string & | getID () const | |||
| returns the id of the transportable More... | ||||
| Influencer & | getInfluencer () | |||
| Returns the velocity/lane influencer. More... | ||||
| const Influencer * | getInfluencer () const | |||
| const MSEdge * | getNextDestination () const | |||
| Returns the destination after the current destination. More... | ||||
| const std::string & | getNextEdge () const | |||
| return the list of internal edges if this person is walking and the pedestrian model allows it More... | ||||
| const MSEdge * | getNextEdgePtr () const | |||
| returns the next edge ptr if this person is walking and the pedestrian model allows it More... | ||||
| MSTransportable::Stage * | getNextStage (int next) const | |||
| Return the current stage. More... | ||||
| int | getNumRemainingStages () const | |||
| Return the number of remaining stages (including the current) More... | ||||
| int | getNumStages () const | |||
| Return the total number stages in this persons plan. More... | ||||
| const SUMOVehicleParameter & | getParameter () const | |||
| MSVehicleType & | getSingularType () | |||
| Replaces the current vehicle type with a new one used by this vehicle only. More... | ||||
| double | getSpeedFactor () const | |||
| the current speed factor of the transportable (where applicable) More... | ||||
| std::string | getStageSummary (int stageIndex) const | |||
| return textual summary for the given stage More... | ||||
| StageType | getStageType (int next) const | |||
| the stage type for the nth next stage More... | ||||
| SUMOVehicle * | getVehicle () const | |||
| The vehicle associated with this transportable. More... | ||||
| const MSVehicleType & | getVehicleType () const | |||
| GUIPerson (const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan, const double speedFactor) | ||||
| Constructor. More... | ||||
| bool | hasArrived () const | |||
| return whether the person has reached the end of its plan More... | ||||
| bool | hasInfluencer () const | |||
| bool | isSelected () const | |||
| whether this person is selected in the GUI More... | ||||
| bool | isWaiting4Vehicle () const | |||
| Whether the transportable waits for a vehicle. More... | ||||
| bool | isWaitingFor (const std::string &line) const | |||
| Whether the transportable waits for a vehicle of the line specified. More... | ||||
| bool | proceed (MSNet *net, SUMOTime time) | |||
| void | removeStage (int next) | |||
| removes the nth next stage More... | ||||
| void | replaceVehicleType (MSVehicleType *type) | |||
| Replaces the current vehicle type by the one given. More... | ||||
| void | reroute (ConstMSEdgeVector &newEdges, double departPos, int firstIndex, int nextIndex) | |||
| set new walk and replace the stages with relative indices in the interval [firstIndex, nextIndex[ More... | ||||
| void | rerouteParkingArea (MSStoppingPlace *orig, MSStoppingPlace *replacement) | |||
| adapt plan when the vehicle reroutes and now stops at replacement instead of orig More... | ||||
| virtual void | routeOutput (OutputDevice &os) const | |||
| Called on writing vehroute output. More... | ||||
| void | setDeparted (SUMOTime now) | |||
| logs depart time of the current stage More... | ||||
| void | setPositionInVehicle (const Position &pos) | |||
| void | setRemoteState (Position xyPos) | |||
| sets position outside the road network More... | ||||
| void | setSpeed (double speed) | |||
| sets the walking speed (ignored in other stages) More... | ||||
| virtual void | tripInfoOutput (OutputDevice &os, MSTransportable *transportable) const | |||
| Called on writing tripinfo output. More... | ||||
| ~GUIPerson () | ||||
| destructor More... | ||||
inherited from GUIGlObject | ||||
| GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
| Returns an own popup-menu. More... | ||||
| GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
| Returns an own parameter window. More... | ||||
| GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
| Returns an own type parameter window. More... | ||||
| Boundary | getCenteringBoundary () const | |||
| Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
| void | drawGL (const GUIVisualizationSettings &s) const | |||
| Draws the object. More... | ||||
| virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
| Draws additionally triggered visualisations. More... | ||||
inherited from MSPerson with added locking | ||||
| double | getEdgePos () const | |||
| return the offset from the start of the current edge More... | ||||
| Position | getPosition () const | |||
| return the Network coordinate of the person More... | ||||
| Position | getGUIPosition () const | |||
| return the Network coordinate of the person (only for drawing centering and tracking) More... | ||||
| double | getNaviDegree () const | |||
| return the current angle of the person More... | ||||
| double | getWaitingSeconds () const | |||
| the time this person spent waiting in seconds More... | ||||
| double | getSpeed () const | |||
| the current speed of the person More... | ||||
Additional visualisations | ||||
| bool | hasActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) const | |||
| Returns whether the named feature is enabled in the given view. More... | ||||
| void | addActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) | |||
| Adds the named visualisation feature to the given view. More... | ||||
| void | removeActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) | |||
| Adds the named visualisation feature to the given view. More... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
| const std::string & | getFullName () const | |||
| virtual std::string | getParentName () const | |||
| Returns the name of the parent object (if any) More... | ||||
| GUIGlID | getGlID () const | |||
| Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
| virtual const std::string & | getMicrosimID () const | |||
| Returns the id of the object as known to microsim. More... | ||||
| virtual void | setMicrosimID (const std::string &newID) | |||
| Changes the microsimID of the object. More... | ||||
| GUIGlObjectType | getType () const | |||
| Returns the type of the object as coded in GUIGlObjectType. More... | ||||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
| void | addParameterTable (GUIParameterTableWindow *w) | |||
| void | removeParameterTable (GUIParameterTableWindow *w) | |||
| Lets this object know a parameter window showing the object's values was closed. More... | ||||
Data Fields | |
| std::map< GUISUMOAbstractView *, int > | myAdditionalVisualizations |
| Enabled visualisations, per view. More... | |
Static Public Attributes | |
| static const GUIGlID | INVALID_ID = 0 |
| static StringBijection< GUIGlObjectType > | TypeNames |
| associates object types with strings More... | |
Protected Member Functions | |
| void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
| void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
| build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
helper methods for building popup-menus | |
| void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
| Builds the header. More... | |
| void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to center to the object. More... | |
| void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds entries which allow to copy the name / typed name into the clipboard. More... | |
| void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to (de)select the object. More... | |
| void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to open the parameter window. More... | |
| void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to open the type parameter window. More... | |
| void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
| void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
| Builds an entry which allows to open the manipulator window. More... | |
Protected Attributes | |
| const SUMOVehicleParameter * | myParameter |
| the plan of the transportable More... | |
| MSTransportablePlan * | myPlan |
| the plan of the transportable More... | |
| MSTransportablePlan::iterator | myStep |
| the iterator over the route More... | |
| MSVehicleType * | myVType |
| This transportable's type. (mainly used for drawing related information Note sure if it is really necessary. More... | |
| bool | myWriteEvents |
| Whether events shall be written. More... | |
Static Protected Attributes | |
| static const double | ROADSIDE_OFFSET |
| the offset for computing positions when standing at an edge More... | |
Private Member Functions | |
| double | getColorValue (int activeScheme) const |
| gets the color value according to the current scheme index More... | |
| void | setColor (const GUIVisualizationSettings &s) const |
| sets the color according to the currente settings More... | |
| bool | setFunctionalColor (int activeScheme) const |
| sets the color according to the current scheme index and some vehicle function More... | |
drawing helper methods | |
| void | drawAction_drawAsTriangle (const GUIVisualizationSettings &s) const |
| void | drawAction_drawAsPoly (const GUIVisualizationSettings &s) const |
| void | drawAction_drawAsImage (const GUIVisualizationSettings &s) const |
| void | drawAction_drawWalkingareaPath (const GUIVisualizationSettings &s) const |
Private Attributes | |
| MFXMutex | myLock |
| The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
| Position | myPositionInVehicle |
| The position of a person while riding a vehicle. More... | |
Definition at line 54 of file GUIPerson.h.
|
inherited |
the structure holding the plan of a transportable
Definition at line 386 of file MSTransportable.h.
|
inherited |
| Enumerator | |
|---|---|
| WAITING_FOR_DEPART | |
| WAITING | |
| MOVING_WITHOUT_VEHICLE | |
| DRIVING | |
| ACCESS | |
Definition at line 58 of file MSTransportable.h.
Additional visualisation feature ids.
| Enumerator | |
|---|---|
| VO_SHOW_WALKINGAREA_PATH | show the current walkingarea path |
| VO_SHOW_ROUTE | show persons's current route |
| VO_TRACKED | track person |
Definition at line 202 of file GUIPerson.h.
| GUIPerson::GUIPerson | ( | const SUMOVehicleParameter * | pars, |
| MSVehicleType * | vtype, | ||
| MSTransportable::MSTransportablePlan * | plan, | ||
| const double | speedFactor | ||
| ) |
Constructor.
Definition at line 167 of file GUIPerson.cpp.
| GUIPerson::~GUIPerson | ( | ) |
destructor
Definition at line 174 of file GUIPerson.cpp.
References GUIGlObject::getGlID(), MFXMutex::lock(), myAdditionalVisualizations, myLock, and MFXMutex::unlock().
| void GUIPerson::addActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
| int | which | ||
| ) |
Adds the named visualisation feature to the given view.
| [in] | parent | The view for which the feature shall be enabled |
| [in] | which | The visualisation feature to enable |
Definition at line 554 of file GUIPerson.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().
|
inherited |
Definition at line 262 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
inherited |
Appends the given stage to the current plan.
Definition at line 500 of file MSTransportable.cpp.
References MSTransportable::getID(), MSTransportable::myPlan, MSTransportable::myStep, and toString().
Referenced by libsumo::Person::appendDrivingStage(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), MSTransportable::getVehicle(), MSTransportable::removeStage(), and MSPerson::reroute().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 300 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 191 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 200 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 182 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
Definition at line 241 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 210 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 277 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GUIPointOfInterest::getPopUpMenu(), and GNEPOI::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 253 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 223 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 232 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
private |
Definition at line 526 of file GUIPerson.cpp.
References drawAction_drawAsPoly(), GUITexturesHelper::drawTexturedBox(), MSTransportable::getAngle(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), M_PI, GUIVisualizationSettings::personSize, RAD2DEG, and SVS_PEDESTRIAN.
Referenced by drawGL().
|
private |
Definition at line 500 of file GUIPerson.cpp.
References RGBColor::changedBrightness(), GLHelper::drawFilledCircle(), MSTransportable::getAngle(), GLHelper::getColor(), MSTransportable::getVehicleType(), GeomHelper::naviDegree(), and GLHelper::setColor().
Referenced by drawAction_drawAsImage(), and drawGL().
|
private |
Definition at line 478 of file GUIPerson.cpp.
References MSTransportable::getAngle(), GLHelper::getColor(), MSTransportable::getVehicleType(), M_PI, RAD2DEG, and GLHelper::setColor().
Referenced by drawGL().
|
private |
Definition at line 309 of file GUIPerson.cpp.
References GLHelper::drawBoxLines(), MSTransportable::getCurrentStage(), MSPerson::MSPersonStage_Walking::getPedestrianState(), GUIGlObject::getType(), MSPModel_Striping::PState::myWalkingAreaPath, setColor(), and MSPModel_Striping::WalkingAreaPath::shape.
Referenced by drawGL(), and drawGLAdditional().
|
virtual |
Draws the object.
| [in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 276 of file GUIPerson.cpp.
References GUIVisualizationSettings::angle, drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), drawAction_drawWalkingareaPath(), GUIGlObject::drawName(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), getGUIPosition(), GUIGlObject::getType(), GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::scale, setColor(), Position::x(), and Position::y().
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers(), and GUIEdge::drawGL().
|
virtual |
Draws additionally triggered visualisations.
| [in] | parent | The view |
| [in] | s | The settings for the current view (may influence drawing) |
Reimplemented from GUIGlObject.
Definition at line 327 of file GUIPerson.cpp.
References RGBColor::changedBrightness(), drawAction_drawWalkingareaPath(), GLHelper::drawBoxLines(), GLHelper::getColor(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageType(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSPerson::MSPersonStage_Walking::getRoute(), GUILane::getShape(), GUILane::getShapeLengths(), GUILane::getShapeRotations(), GUIGlObject::getType(), hasActiveAddVisualisation(), MSTransportable::MOVING_WITHOUT_VEHICLE, GUIVisualizationSettings::personSize, setColor(), GLHelper::setColor(), VO_SHOW_ROUTE, and VO_SHOW_WALKINGAREA_PATH.
|
inherited |
draw name of item
Definition at line 329 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::scaledSize(), and GUIVisualizationTextSettings::show.
Referenced by GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEEdge::drawGL(), and GUIBaseVehicle::drawOnPos().
|
virtualinherited |
return the current angle of the transportable
Reimplemented in GUIContainer.
Definition at line 474 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), GUIContainer::getAngle(), MSTransportable::getBoundingBox(), getNaviDegree(), setFunctionalColor(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
returns the final arrival edge
Definition at line 544 of file MSTransportable.h.
References MSTransportable::getBoundingBox(), MSTransportable::getSingularType(), MSTransportable::hasArrived(), MSTransportable::myPlan, MSTransportable::replaceVehicleType(), and MSTransportable::rerouteParkingArea().
Referenced by libsumo::Person::appendWaitingStage().
|
inlineinherited |
returns the final arrival pos
Definition at line 539 of file MSTransportable.h.
References MSTransportable::myPlan.
Referenced by libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), getParameterWindow(), and MSPerson::reroute().
|
inherited |
return the bounding box of the person
Definition at line 565 of file MSTransportable.cpp.
References PositionVector::append(), MSTransportable::getAngle(), MSVehicleType::getLength(), MSTransportable::getPosition(), MSTransportable::getVehicleType(), PositionVector::move2side(), POSITION_EPS, and PositionVector::reverse().
Referenced by MSTransportable::getArrivalEdge().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 266 of file GUIPerson.cpp.
References Boundary::add(), getGUIPosition(), MSTransportable::getVehicleType(), Boundary::grow(), and MAX2().
|
private |
gets the color value according to the current scheme index
Definition at line 412 of file GUIPerson.cpp.
References MSTransportable::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_PERSON, gSelected, GUISelectedStorage::isSelected(), and MSTransportable::isWaiting4Vehicle().
Referenced by setColor().
|
inlineinherited |
Return the current stage.
Definition at line 476 of file MSTransportable.h.
References MSTransportable::myStep.
Referenced by MSTransportableControl::abortWaitingForVehicle(), drawAction_drawWalkingareaPath(), drawGLAdditional(), getParameterWindow(), libsumo::Person::moveToXY(), MSEdge::transportable_by_position_sorter::operator()(), and MSPerson::Influencer::postProcessRemoteControl().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 471 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), getParameterWindow(), libsumo::Person::moveTo(), libsumo::Person::moveToXY(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
the current stage type of the transportable
Definition at line 456 of file MSTransportable.h.
Referenced by MSPModel_Remote::add(), MSPModel_Striping::add(), GUIContainer::drawGL(), drawGLAdditional(), GUIContainer::getColorValue(), getColorValue(), getGUIPosition(), MSPerson::getNextEdgePtr(), GUIContainer::getPosition(), MSTransportable::rerouteParkingArea(), and libsumo::Person::rerouteTraveltime().
|
inherited |
Returns the desired departure time.
Definition at line 454 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and MSTransportable::myParameter.
Referenced by MSTransportable::getVehicleType(), MSContainer::routeOutput(), MSContainer::tripInfoOutput(), and MSPerson::tripInfoOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 416 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), getParameterWindow(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), and MSTransportable::rerouteParkingArea().
|
inlineinherited |
Returns the current edge.
Definition at line 426 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), GUIContainer::getParameterWindow(), getParameterWindow(), GUIContainer::getPosition(), libsumo::Person::getRoadID(), libsumo::Person::moveToXY(), MSTransportable::removeStage(), and libsumo::Person::rerouteTraveltime().
|
virtual |
return the offset from the start of the current edge
Reimplemented from MSTransportable.
Definition at line 432 of file GUIPerson.cpp.
References MSTransportable::getEdgePos(), and myLock.
Referenced by getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Return the edges of the nth next stage.
Definition at line 488 of file MSTransportable.h.
References MSTransportable::Stage::getEdges(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSTransportable::myPlan, MSTransportable::myStep, MSTransportable::Stage::routeOutput(), and MSTransportable::Stage::tripInfoOutput().
Referenced by libsumo::Person::getEdges(), and libsumo::Person::rerouteTraveltime().
|
inlineinherited |
Returns the departure edge.
Definition at line 431 of file MSTransportable.h.
References MSTransportable::Stage::getAngle(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage::getPosition(), MSTransportable::Stage::getSpeed(), and MSTransportable::getWaitingSeconds().
Referenced by GUIContainer::getParameterWindow(), and getParameterWindow().
|
inherited |
Definition at line 116 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inherited |
Returns the numerical id of the object.
Definition at line 128 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GUIGlObject::buildSelectionPopupEntry(), GNEAdditionalHandler::buildVaporizer(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEVariableSpeedSign::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEParkingSpace::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrame::ACHierarchy::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and ~GUIPerson().
| Position GUIPerson::getGUIPosition | ( | ) | const |
return the Network coordinate of the person (only for drawing centering and tracking)
Definition at line 446 of file GUIPerson.cpp.
References MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), MSTransportable::getPosition(), Position::INVALID, MSTransportable::isWaiting4Vehicle(), myLock, and myPositionInVehicle.
Referenced by drawGL(), getCenteringBoundary(), and setPositionInVehicle().
|
inherited |
returns the id of the transportable
Definition at line 449 of file MSTransportable.cpp.
References SUMOVehicleParameter::id, and MSTransportable::myParameter.
Referenced by MSTransportableControl::abortWaitingForVehicle(), MSPModel_Remote::add(), MSPModel_Striping::add(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSTransportable::appendStage(), libsumo::Person::appendWalkingStage(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPModel_Striping::PState::distanceTo(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSTransportableControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), getParameterWindow(), MSTransportable::getSingularType(), MSPModel_Striping::getVehicleObstacles(), MSPedestrianPushButton::isActiveForEdge(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), MSDevice_Transportable::notifyLeave(), MSPModel_Striping::by_xpos_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSPerson::reroute(), MSTransportable::rerouteParkingArea(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), libsumo::Helper::setRemoteControlled(), MSContainer::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), MSPerson::tripInfoOutput(), MSPModel_Striping::PState::walk(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
inherited |
Returns the velocity/lane influencer.
If no influencer was existing before, one is built, first
Definition at line 681 of file MSPerson.cpp.
References MSPerson::myInfluencer.
Referenced by libsumo::Helper::setRemoteControlled().
|
inherited |
Definition at line 690 of file MSPerson.cpp.
References MSPerson::myInfluencer.
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 142 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEVaporizer::getParentName(), GNERouteProbe::getParentName(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEParkingSpace::getParentName(), GNEStoppingPlace::getParentName(), GNECalibratorVehicleType::getParentName(), GNECalibrator::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNEPOI::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GUIDialog_GLObjChooser::refreshList(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), GNEProhibitionFrame::updateDescription(), GNEConnectorFrame::updateDescription(), and GNEConnection::updateID().
| double GUIPerson::getNaviDegree | ( | ) | const |
return the current angle of the person
Definition at line 457 of file GUIPerson.cpp.
References MSTransportable::getAngle(), myLock, and GeomHelper::naviDegree().
Referenced by getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Returns the destination after the current destination.
Definition at line 421 of file MSTransportable.h.
References MSTransportable::myStep.
|
inherited |
return the list of internal edges if this person is walking and the pedestrian model allows it
Definition at line 599 of file MSPerson.cpp.
References StringUtils::emptyString, Named::getID(), and MSPerson::getNextEdgePtr().
Referenced by libsumo::Person::getNextEdge().
|
inherited |
returns the next edge ptr if this person is walking and the pedestrian model allows it
Definition at line 618 of file MSPerson.cpp.
References MSTransportable::getCurrentStageType(), PedestrianState::getNextEdge(), MSPerson::MSPersonStage_Walking::getPedestrianState(), and MSTransportable::MOVING_WITHOUT_VEHICLE.
Referenced by MSPerson::getNextEdge(), and MSPedestrianPushButton::isActiveForEdge().
|
inlineinherited |
Return the current stage.
Definition at line 481 of file MSTransportable.h.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by MSPerson::reroute(), and libsumo::Person::rerouteTraveltime().
|
inherited |
Return the number of remaining stages (including the current)
Definition at line 490 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getEdges(), MSTransportable::getEdges(), getParameterWindow(), libsumo::Person::getRemainingStages(), libsumo::Person::getStage(), libsumo::Person::removeStage(), and libsumo::Person::rerouteTraveltime().
|
inherited |
Return the total number stages in this persons plan.
Definition at line 495 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by libsumo::Person::getEdges(), MSTransportable::getEdges(), getParameterWindow(), libsumo::Person::getStage(), and GUIPerson::GUIPersonPopupMenu::onCmdShowPlan().
|
inlineinherited |
Definition at line 401 of file MSTransportable.h.
References MSTransportable::myParameter.
Referenced by MSTransportableControl::add(), MSDevice::equippedByParameter(), libsumo::Person::getLanePosition(), libsumo::Person::getParameter(), GUIContainer::getParameterWindow(), getParameterWindow(), GUIContainer::setFunctionalColor(), setFunctionalColor(), and libsumo::Person::setParameter().
|
virtual |
Returns an own parameter window.
| [in] | app | The application needed to build the parameter window |
| [in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 222 of file GUIPerson.cpp.
References GUIParameterTableWindow::closeBuilding(), MSTransportable::getArrivalPos(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), MSTransportable::getDestination(), MSTransportable::getEdge(), getEdgePos(), MSTransportable::getFromEdge(), MSTransportable::getID(), getNaviDegree(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSTransportable::getParameter(), getSpeed(), MSPerson::getSpeedFactor(), getWaitingSeconds(), GUIParameterTableWindow::mkItem(), time2string(), and toString().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEPOI, GNEPoly, GNEDetector, GNECalibrator, GNECalibratorVehicleType, GNEStoppingPlace, GUILane, GNEParkingSpace, GNELane, GNECalibratorFlow, GNERerouter, GNEAccess, GNEVariableSpeedSign, GNEVariableSpeedSignStep, GNECalibratorRoute, GNEClosingLaneReroute, GNEClosingReroute, GNEParkingAreaReroute, GNEDestProbReroute, GNERerouterInterval, GNERouteProbReroute, GNEDetectorE3, GNERouteProbe, and GNEVaporizer.
Definition at line 122 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtual |
Returns an own popup-menu.
| [in] | app | The application needed to build the popup-menu |
| [in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 187 of file GUIPerson.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIGlObject::buildShowTypeParamsPopupEntry(), GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUISUMOAbstractView::getTrackedID(), hasActiveAddVisualisation(), ICON_APP_TABLE, MID_HIDE_CURRENTROUTE, MID_HIDE_WALKINGAREA_PATH, MID_SHOW_CURRENTROUTE, MID_SHOW_WALKINGAREA_PATH, MID_SHOWPLAN, MID_START_TRACK, MID_STOP_TRACK, myAdditionalVisualizations, VO_SHOW_ROUTE, and VO_SHOW_WALKINGAREA_PATH.
|
virtual |
return the Network coordinate of the person
Reimplemented from MSTransportable.
Definition at line 439 of file GUIPerson.cpp.
References MSTransportable::getPosition(), and myLock.
Referenced by setPositionInVehicle().
|
inherited |
Replaces the current vehicle type with a new one used by this vehicle only.
If the currently used vehicle type is already marked as being used by this vehicle only, no new type is created.
Definition at line 554 of file MSTransportable.cpp.
References MSVehicleType::buildSingularType(), MSVehicleType::getID(), MSTransportable::getID(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSTransportable::replaceVehicleType().
Referenced by MSTransportable::getArrivalEdge(), TraCIServerAPI_Person::processSet(), and libsumo::Person::setParameter().
|
virtual |
the current speed of the person
Reimplemented from MSTransportable.
Definition at line 471 of file GUIPerson.cpp.
References MSTransportable::getSpeed(), and myLock.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
|
inlinevirtualinherited |
the current speed factor of the transportable (where applicable)
Reimplemented from MSTransportable.
Definition at line 366 of file MSPerson.h.
References MSPerson::myChosenSpeedFactor, and MSPerson::reroute().
Referenced by MSPerson::MSPersonStage_Walking::getMaxSpeed(), and getParameterWindow().
|
inherited |
return textual summary for the given stage
Definition at line 583 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowPlan().
|
inlineinherited |
the stage type for the nth next stage
Definition at line 461 of file MSTransportable.h.
References MSTransportable::Stage::getStageSummary(), MSTransportable::Stage::getStageType(), MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getStage(), libsumo::Person::moveToXY(), MSPerson::Influencer::postProcessRemoteControl(), and libsumo::Person::rerouteTraveltime().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 155 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), drawAction_drawWalkingareaPath(), GNEAdditional::drawChildConnections(), GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEParkingSpace::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEJunction::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getEdgesAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::SelectingArea::processSelection(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISelectedStorage::toggleSelection(), and GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor().
|
virtual |
Returns an own type parameter window.
| [in] | app | The application needed to build the parameter window |
| [in] | parent | The parent window needed to build the parameter window |
Reimplemented from GUIGlObject.
Definition at line 247 of file GUIPerson.cpp.
References GUIParameterTableWindow::closeBuilding(), MSVehicleType::getHeight(), MSVehicleType::getID(), MSVehicleType::getLength(), MSVehicleType::getMaxSpeed(), MSVehicleType::getMinGap(), MSVehicleType::getParameter(), Parameterised::getParametersMap(), MSVehicleType::getWidth(), GUIParameterTableWindow::mkItem(), and MSTransportable::myVType.
|
inlineinherited |
The vehicle associated with this transportable.
Definition at line 525 of file MSTransportable.h.
References MSTransportable::appendStage(), MSTransportable::removeStage(), and MSTransportable::Stage::setSpeed().
Referenced by libsumo::Person::getVehicle().
|
inlineinherited |
Definition at line 405 of file MSTransportable.h.
References MSTransportable::getDesiredDepart(), MSTransportable::myVType, and MSTransportable::Stage::setDeparted().
Referenced by MSStoppingPlace::addTransportable(), libsumo::Person::appendWalkingStage(), GUIContainer::drawAction_drawAsImage(), drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), MSDevice::equippedByParameter(), MSTransportable::getBoundingBox(), getCenteringBoundary(), MSPModel_Striping::PState::getImpatience(), MSLink::getLeaderInfo(), MSPModel_Striping::PState::getLength(), MSPerson::MSPersonStage_Walking::getMaxSpeed(), MSPModel_Striping::PState::getMinGap(), MSPModel_Striping::getNextLaneObstacles(), libsumo::Person::getParameter(), libsumo::Person::getTypeID(), MSPModel_Striping::getVehicleObstacles(), MSPModel_Striping::PState::ignoreRed(), libsumo::Person::moveToXY(), MSPModel_Striping::nextBlocking(), MSPModel_Striping::PState::otherStripe(), MSPerson::MSPersonStage_Access::proceed(), MSStoppingPlace::removeTransportable(), MSTransportable::rerouteParkingArea(), libsumo::Person::rerouteTraveltime(), MSPerson::routeOutput(), GUIContainer::setFunctionalColor(), and setFunctionalColor().
|
virtual |
the time this person spent waiting in seconds
Reimplemented from MSTransportable.
Definition at line 464 of file GUIPerson.cpp.
References MSTransportable::getWaitingSeconds(), and myLock.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
| bool GUIPerson::hasActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
| int | which | ||
| ) | const |
Returns whether the named feature is enabled in the given view.
| [in] | parent | The view for which the feature may be enabled |
| [in] | which | The visualisation feature |
Definition at line 548 of file GUIPerson.cpp.
References myAdditionalVisualizations.
Referenced by drawGLAdditional(), and getPopUpMenu().
|
inherited |
return whether the person has reached the end of its plan
Definition at line 590 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by MSTransportable::getArrivalEdge(), and MSPerson::routeOutput().
|
inlineinherited |
Definition at line 422 of file MSPerson.h.
References MSPerson::myInfluencer, and MSPerson::setRemoteState().
|
virtual |
whether this person is selected in the GUI
Reimplemented from MSPerson.
Definition at line 570 of file GUIPerson.cpp.
References GUIGlObject::getGlID(), GLO_PERSON, gSelected, and GUISelectedStorage::isSelected().
Referenced by setPositionInVehicle().
|
inlineinherited |
Whether the transportable waits for a vehicle.
Definition at line 520 of file MSTransportable.h.
Referenced by GUIContainer::drawGL(), GUIContainer::getColorValue(), getColorValue(), and getGUIPosition().
|
inlineinherited |
Whether the transportable waits for a vehicle of the line specified.
Definition at line 515 of file MSTransportable.h.
Implements MSTransportable.
Definition at line 552 of file MSPerson.cpp.
References MSTransportable::ACCESS, MSStoppingPlace::getAccessDistance(), MSStoppingPlace::getAccessPos(), MSTransportable::Stage::getDestination(), MSTransportable::Stage::getDestinationStop(), MSTransportable::Stage::getEdge(), MSTransportable::Stage::getStageType(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSTransportable::myPlan, MSTransportable::myStep, MSEdge::removePerson(), and MSTransportable::Stage::setArrived().
Referenced by MSPerson::MSPersonStage_Walking::moveToNextEdge().
| void GUIPerson::removeActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
| int | which | ||
| ) |
Adds the named visualisation feature to the given view.
| [in] | parent | The view for which the feature shall be enabled |
| [in] | which | The visualisation feature to enable |
Definition at line 564 of file GUIPerson.cpp.
References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
| [in] | w | The closed parameter window |
Definition at line 268 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
inherited |
removes the nth next stage
Definition at line 516 of file MSTransportable.cpp.
References MSTransportable::appendStage(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSNet::getInstance(), MSTransportable::myPlan, MSTransportable::myStep, and MSTransportable::proceed().
Referenced by MSTransportable::getVehicle(), libsumo::Person::removeStage(), and MSPerson::reroute().
|
inherited |
Replaces the current vehicle type by the one given.
If the currently used vehicle type is marked as being used by this vehicle only, it is deleted, first. The new, given type is then assigned to "myVType".
| [in] | type | The new vehicle type |
Definition at line 545 of file MSTransportable.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSVehicleControl::removeVType().
Referenced by MSTransportable::getArrivalEdge(), MSTransportable::getSingularType(), and libsumo::Person::setType().
|
inherited |
set new walk and replace the stages with relative indices in the interval [firstIndex, nextIndex[
Definition at line 656 of file MSPerson.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), MSTransportable::getID(), MSTransportable::getNextStage(), and MSTransportable::removeStage().
Referenced by MSPerson::getSpeedFactor(), MSTransportable::rerouteParkingArea(), and libsumo::Person::rerouteTraveltime().
|
inherited |
adapt plan when the vehicle reroutes and now stops at replacement instead of orig
Definition at line 596 of file MSTransportable.cpp.
References PedestrianRouter< E, L, N, V >::compute(), MSTransportable::DRIVING, MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::Stage::getDestination(), MSTransportable::getDestination(), MSLane::getEdge(), Named::getID(), SUMOVehicle::getID(), MSTransportable::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSVehicleType::getMaxSpeed(), MSNet::getPedestrianRouter(), MSTransportable::Stage::getStageType(), MSTransportable::Stage_Driving::getVehicle(), MSTransportable::getVehicleType(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSTransportable::myPlan, MSTransportable::myStep, MSPerson::reroute(), MSTransportable::Stage_Driving::setDestination(), and WRITE_WARNING.
Referenced by MSTransportable::getArrivalEdge().
|
virtualinherited |
Called on writing vehroute output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable.
Definition at line 641 of file MSPerson.cpp.
References OutputDevice::closeTag(), DEFAULT_PEDTYPE_ID, MSVehicleType::getID(), MSNet::getInstance(), OptionsCont::getOptions(), MSTransportable::getVehicleType(), MSTransportable::hasArrived(), OutputDevice::lf(), MSTransportable::myParameter, MSTransportable::myPlan, SUMO_TAG_PERSON, time2string(), SUMOVehicleParameter::write(), and OutputDevice::writeAttr().
|
private |
sets the color according to the currente settings
Definition at line 358 of file GUIPerson.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::personColorer, GLHelper::setColor(), and setFunctionalColor().
Referenced by drawAction_drawWalkingareaPath(), drawGL(), and drawGLAdditional().
|
inherited |
logs depart time of the current stage
Definition at line 459 of file MSTransportable.cpp.
Referenced by MSTransportableControl::abortWaitingForVehicle().
|
private |
sets the color according to the current scheme index and some vehicle function
Definition at line 367 of file GUIPerson.cpp.
References RGBColor::fromHSV(), MSTransportable::getAngle(), MSTransportable::getParameter(), MSTransportable::getVehicleType(), GeomHelper::naviDegree(), GLHelper::setColor(), VEHPARS_COLOR_SET, and VTYPEPARS_COLOR_SET.
Referenced by setColor().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 148 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
inline |
Definition at line 119 of file GUIPerson.h.
References getEdgePos(), getGUIPosition(), getNaviDegree(), getPosition(), getSpeed(), getWaitingSeconds(), isSelected(), and myPositionInVehicle.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers().
|
inherited |
sets position outside the road network
Referenced by MSPerson::hasInfluencer().
|
inherited |
sets the walking speed (ignored in other stages)
Definition at line 537 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by libsumo::Person::setSpeed().
|
virtualinherited |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable.
Definition at line 631 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::myPlan, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
staticinherited |
Definition at line 70 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
| std::map<GUISUMOAbstractView*, int> GUIPerson::myAdditionalVisualizations |
Enabled visualisations, per view.
Definition at line 212 of file GUIPerson.h.
Referenced by addActiveAddVisualisation(), getPopUpMenu(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIPerson().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 245 of file GUIPerson.h.
Referenced by getEdgePos(), getGUIPosition(), getNaviDegree(), getPosition(), getSpeed(), getWaitingSeconds(), and ~GUIPerson().
|
protectedinherited |
the plan of the transportable
Definition at line 583 of file MSTransportable.h.
Referenced by MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getParameter(), MSPerson::routeOutput(), and MSTransportable::~MSTransportable().
|
protectedinherited |
the plan of the transportable
Definition at line 593 of file MSTransportable.h.
Referenced by MSTransportable::appendStage(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSTransportable::getEdges(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSTransportable::getStageSummary(), MSTransportable::getStageType(), MSTransportable::hasArrived(), MSTransportable::MSTransportable(), MSContainer::proceed(), MSPerson::proceed(), MSTransportable::removeStage(), MSTransportable::rerouteParkingArea(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSTransportable::setSpeed(), MSContainer::tripInfoOutput(), MSPerson::tripInfoOutput(), and MSTransportable::~MSTransportable().
|
private |
The position of a person while riding a vehicle.
Definition at line 248 of file GUIPerson.h.
Referenced by getGUIPosition(), and setPositionInVehicle().
|
protectedinherited |
the iterator over the route
Definition at line 596 of file MSTransportable.h.
Referenced by MSTransportable::appendStage(), MSTransportable::getCurrentStage(), MSTransportable::getEdges(), MSTransportable::getNextDestination(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getStageType(), MSTransportable::hasArrived(), MSTransportable::MSTransportable(), MSContainer::proceed(), MSPerson::proceed(), MSTransportable::removeStage(), MSTransportable::rerouteParkingArea(), and MSContainer::routeOutput().
|
protectedinherited |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 587 of file MSTransportable.h.
Referenced by MSTransportable::getSingularType(), GUIContainer::getTypeParameterWindow(), getTypeParameterWindow(), MSTransportable::getVehicleType(), MSTransportable::replaceVehicleType(), and MSTransportable::~MSTransportable().
|
protectedinherited |
Whether events shall be written.
Definition at line 590 of file MSTransportable.h.
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 580 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Waiting::getPosition(), and MSTransportable::Stage_Driving::getPosition().
|
staticinherited |
associates object types with strings
Definition at line 69 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().