![]() |
Eclipse 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, TRIP = 5 } |
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... | ||||
MSTransportableDevice * | getDevice (const std::type_info &type) const | |||
Returns a device of the given type if it exists or 0. More... | ||||
const std::vector< MSTransportableDevice * > & | getDevices () const | |||
Returns this vehicle's devices. 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 | |||
Returns the vehicle's type. More... | ||||
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 | hasDeparted () const | |||
return whether the transportable has started it's plan More... | ||||
bool | hasInfluencer () const | |||
bool | isWaiting4Vehicle () const | |||
Whether the transportable waits for a vehicle. More... | ||||
bool | isWaitingFor (const SUMOVehicle *vehicle) const | |||
Whether the transportable waits for the given vehicle in the current step. More... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click 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 bool withRouteLength) const | |||
Called on writing vehroute output. More... | ||||
void | setDeparted (SUMOTime now) | |||
logs depart time of the current stage More... | ||||
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) 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... | ||||
void | setPositionInVehicle (const Position &pos) | |||
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... | ||||
inherited from SUMOTrafficObject | ||||
bool | isVehicle () const | |||
Get the vehicle's ID. More... | ||||
bool | isStopped () const | |||
Returns whether the vehicle is at a stop. More... | ||||
double | getSlope () const | |||
Returns the slope of the road at vehicle's position. More... | ||||
double | getChosenSpeedFactor () const | |||
SUMOVehicleClass | getVClass () const | |||
Returns the vehicle's access class. More... | ||||
double | getMaxSpeed () const | |||
Returns the vehicle's maximum speed. More... | ||||
SUMOTime | getWaitingTime () const | |||
double | getPreviousSpeed () const | |||
Returns the vehicle's previous speed. More... | ||||
double | getAcceleration () const | |||
Returns the vehicle's acceleration. More... | ||||
double | getPositionOnLane () const | |||
Get the vehicle's position along the lane. More... | ||||
double | getBackPositionOnLane (const MSLane *) const | |||
Get the vehicle's back position along the given lane. More... | ||||
Position | getPosition (const double) const | |||
Return current position (x/y, cartesian) 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 void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
virtual const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. More... | ||||
virtual const std::string | getOptionalName () const | |||
Returns the name of the object (default "") 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... | ||||
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 | |
std::vector< MSTransportableDevice * > | myDevices |
The devices this transportable has. More... | |
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 | |
std::string | createFullName () const |
create full name More... | |
void | drawAction_drawWalkingareaPath (const GUIVisualizationSettings &s) const |
draw walking area path More... | |
double | getColorValue (const GUIVisualizationSettings &s, 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... | |
Private Attributes | |
std::map< GUISUMOAbstractView *, int > | myAdditionalVisualizations |
Enabled visualisations, per view. More... | |
const double | myChosenSpeedFactor |
std::string | myFullName |
full name of GL Object More... | |
GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
Influencer * | myInfluencer |
An instance of a speed/position influencing instance; built in "getInfluencer". More... | |
FXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
Position | myPositionInVehicle |
The position of a person while riding a vehicle. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
static DummyState | myDummyState |
inherited from MSPerson with added locking | |
enum | VisualisationFeatures { VO_SHOW_WALKINGAREA_PATH = 1, VO_SHOW_ROUTE = 2, VO_TRACKED = 8 } |
Additional visualisation feature ids. More... | |
double | getEdgePos () const |
Return the position on the 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... | |
std::string | getStageIndexDescription () const |
get stage index description More... | |
std::string | getEdgeID () const |
get edge ID More... | |
std::string | getFromEdgeID () const |
ger from edge ID More... | |
std::string | getDestinationEdgeID () const |
get destination edge ID More... | |
double | getStageArrivalPos () const |
get stage arrival position More... | |
bool | isSelected () const |
whether this person is selected in the GUI More... | |
Definition at line 53 of file GUIPerson.h.
|
inherited |
the structure holding the plan of a transportable
Definition at line 587 of file MSTransportable.h.
|
inherited |
Enumerator | |
---|---|
WAITING_FOR_DEPART | |
WAITING | |
MOVING_WITHOUT_VEHICLE | |
DRIVING | |
ACCESS | |
TRIP |
Definition at line 60 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 205 of file GUIPerson.h.
GUIPerson::GUIPerson | ( | const SUMOVehicleParameter * | pars, |
MSVehicleType * | vtype, | ||
MSTransportable::MSTransportablePlan * | plan, | ||
const double | speedFactor | ||
) |
Constructor.
Definition at line 165 of file GUIPerson.cpp.
GUIPerson::~GUIPerson | ( | ) |
destructor
Definition at line 172 of file GUIPerson.cpp.
References GUIGlObject::getGlID(), myAdditionalVisualizations, and myLock.
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 534 of file GUIPerson.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().
|
inherited |
Definition at line 287 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
inherited |
Appends the given stage to the current plan.
Definition at line 750 of file MSTransportable.cpp.
References MSTransportable::getID(), MSTransportable::myPlan, MSTransportable::myStep, and toString().
Referenced by libsumo::Person::appendDrivingStage(), libsumo::Person::appendStage(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), MSTransportable::removeStage(), libsumo::Person::replaceStage(), MSPerson::reroute(), MSTransportable::rerouteParkingArea(), and MSTransportable::Stage_Trip::setArrived().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 325 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 216 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 225 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 207 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 266 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 235 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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 302 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GNEPOI::getPopUpMenu(), and GUIPointOfInterest::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 278 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 248 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 257 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), and getPopUpMenu().
|
privateinherited |
create full name
Definition at line 348 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
private |
draw walking area path
Definition at line 316 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 274 of file GUIPerson.cpp.
References GUIVisualizationSettings::angle, GUIBasePersonHelper::drawAction_drawAsCircle(), GUIBasePersonHelper::drawAction_drawAsImage(), GUIBasePersonHelper::drawAction_drawAsPoly(), GUIBasePersonHelper::drawAction_drawAsTriangle(), drawAction_drawWalkingareaPath(), GUIGlObject::drawName(), GLHelper::drawTextSettings(), GUIPropertySchemeStorage< T >::getActive(), MSTransportable::getAngle(), getColorValue(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), getGUIPosition(), GUIGlObject::getType(), MSTransportable::getVehicleType(), GLO_MAX, GUIVisualizationSettings::personColorer, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::personValue, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), setColor(), GUIVisualizationTextSettings::show, toString(), 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 335 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 354 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
|
inlinevirtualinherited |
Returns the vehicle's acceleration.
Implements SUMOTrafficObject.
Definition at line 569 of file MSTransportable.h.
|
virtualinherited |
return the current angle of the transportable
Implements SUMOTrafficObject.
Reimplemented in GUIContainer.
Definition at line 724 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by drawGL(), GUIContainer::getAngle(), MSTransportable::getBoundingBox(), getNaviDegree(), setFunctionalColor(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
returns the final arrival edge
Definition at line 745 of file MSTransportable.h.
References MSTransportable::myPlan.
Referenced by libsumo::Person::appendWaitingStage(), and libsumo::Person::convertTraCIStage().
|
inlineinherited |
returns the final arrival pos
Definition at line 740 of file MSTransportable.h.
References MSTransportable::myPlan.
Referenced by libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), libsumo::Person::convertTraCIStage(), GUIContainer::getParameterWindow(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), and MSPerson::reroute().
|
inlinevirtualinherited |
Get the vehicle's back position along the given lane.
Implements SUMOTrafficObject.
Definition at line 577 of file MSTransportable.h.
References MSTransportable::getEdgePos().
|
inherited |
return the bounding box of the person
Definition at line 815 of file MSTransportable.cpp.
References PositionVector::append(), MSTransportable::getAngle(), MSVehicleType::getLength(), MSTransportable::getPosition(), MSTransportable::getVehicleType(), PositionVector::move2side(), POSITION_EPS, and PositionVector::reverse().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 264 of file GUIPerson.cpp.
References Boundary::add(), getGUIPosition(), MSTransportable::getVehicleType(), Boundary::grow(), and MAX2().
|
inlinevirtualinherited |
Implements SUMOTrafficObject.
Definition at line 555 of file MSTransportable.h.
Referenced by GUISUMOViewParent::onUpdSpeedFactor().
|
privatevirtual |
gets the color value according to the current scheme index
Reimplemented from GUIGlObject.
Definition at line 424 of file GUIPerson.cpp.
References MSTransportable::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_PERSON, gSelected, GUISelectedStorage::isSelected(), and MSTransportable::isWaiting4Vehicle().
Referenced by drawGL(), and setColor().
|
inlineinherited |
Return the current stage.
Definition at line 677 of file MSTransportable.h.
References MSTransportable::myStep.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle(), drawAction_drawWalkingareaPath(), drawGLAdditional(), GUIContainer::getParameterWindow(), getStageArrivalPos(), libsumo::Person::moveToXY(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSEdge::transportable_by_position_sorter::operator()(), and MSPerson::Influencer::postProcessRemoteControl().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 672 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 657 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), MSPModel_Remote::add(), GUIContainer::drawGL(), drawGLAdditional(), GUIContainer::getColorValue(), getColorValue(), getGUIPosition(), MSPerson::getNextEdgePtr(), GUIContainer::getPosition(), MSTransportable::isStopped(), MSTransportable::rerouteParkingArea(), libsumo::Person::rerouteTraveltime(), and MSTransportable::~MSTransportable().
|
inherited |
Returns the desired departure time.
Definition at line 704 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and MSTransportable::myParameter.
Referenced by MSContainer::routeOutput(), MSContainer::tripInfoOutput(), and MSPerson::tripInfoOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 617 of file MSTransportable.h.
Referenced by getDestinationEdgeID(), MSTransportable::Stage::getEdges(), MSTransportable::Stage_Driving::getEdges(), GUIContainer::getParameterWindow(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), MSTransportable::rerouteParkingArea(), MSContainer::MSContainerStage_Driving::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), and MSPerson::MSPersonStage_Driving::routeOutput().
std::string GUIPerson::getDestinationEdgeID | ( | ) | const |
get destination edge ID
Definition at line 511 of file GUIPerson.cpp.
References MSTransportable::getDestination(), Named::getID(), and myLock.
Referenced by getParameterWindow().
|
inherited |
Returns a device of the given type if it exists or 0.
Definition at line 907 of file MSTransportable.cpp.
References MSTransportable::myDevices.
Referenced by MSFCDExport::writeTransportable().
|
inlineinherited |
Returns this vehicle's devices.
Definition at line 788 of file MSTransportable.h.
References MSTransportable::myDevices.
|
inlinevirtualinherited |
Returns the current edge.
Implements SUMOTrafficObject.
Definition at line 627 of file MSTransportable.h.
Referenced by MSTransportableControl::abortWaitingForVehicle(), MSPModel_Striping::add(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), getEdgeID(), MSTransportable::Stage_Driving::getEdgePos(), GUIContainer::getParameterWindow(), GUIContainer::getPosition(), libsumo::Person::getRoadID(), libsumo::TrafficLight::getServedPersonCount(), MSTransportable::getSlope(), libsumo::Person::getSlope(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), libsumo::Person::moveToXY(), MSPerson::MSPersonStage_Walking::proceed(), MSPerson::MSPersonStage_Access::proceed(), MSTransportable::removeStage(), libsumo::Person::rerouteTraveltime(), and MSPerson::MSPersonStage_Walking::setRouteIndex().
std::string GUIPerson::getEdgeID | ( | ) | const |
get edge ID
Definition at line 497 of file GUIPerson.cpp.
References MSTransportable::getEdge(), Named::getID(), and myLock.
Referenced by getParameterWindow().
|
virtual |
Return the position on the edge.
Reimplemented from MSTransportable.
Definition at line 444 of file GUIPerson.cpp.
References MSTransportable::getEdgePos(), and myLock.
Referenced by getParameterWindow().
|
inlineinherited |
Return the edges of the nth next stage.
Definition at line 689 of file MSTransportable.h.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getEdges(), and libsumo::Person::rerouteTraveltime().
|
inlineinherited |
Returns the departure edge.
Definition at line 632 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Driving::getEdges(), getFromEdgeID(), GUIContainer::getParameterWindow(), MSContainer::MSContainerStage_Driving::routeOutput(), and MSPerson::MSPersonStage_Driving::routeOutput().
std::string GUIPerson::getFromEdgeID | ( | ) | const |
ger from edge ID
Definition at line 504 of file GUIPerson.cpp.
References MSTransportable::getFromEdge(), Named::getID(), and myLock.
Referenced by getParameterWindow().
|
inherited |
Definition at line 137 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObjectStorage::remove(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
Returns the numerical id of the object.
Definition at line 149 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertPersonIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIEdge::isSelected(), GUILane::isSelected(), isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processSet(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEAdditional::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEAdditional::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNENetElement::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 458 of file GUIPerson.cpp.
References MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), MSTransportable::getPosition(), Position::INVALID, MSTransportable::isWaiting4Vehicle(), myLock, and myPositionInVehicle.
Referenced by drawGL(), and getCenteringBoundary().
|
virtualinherited |
returns the id of the transportable
Implements SUMOTrafficObject.
Definition at line 699 of file MSTransportable.cpp.
References SUMOVehicleParameter::id, and MSTransportable::myParameter.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle(), MSPModel_Striping::add(), MSPModel_Remote::add(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSTransportable::appendStage(), libsumo::Person::appendWalkingStage(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSTransportableDevice_Routing::buildDevices(), MSTransportableDevice_FCD::buildDevices(), libsumo::Person::convertTraCIStage(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSTransportableControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), MSTransportable::getSingularType(), MSPModel_Striping::getVehicleObstacles(), MSEdge::getWaitingVehicle(), MSPedestrianPushButton::isActiveForEdge(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), libsumo::Person::moveToXY(), MSDevice_Transportable::notifyLeave(), MSEdge::transportable_by_position_sorter::operator()(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSPerson::reroute(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSTransportable::Stage_Trip::setArrived(), libsumo::Helper::setRemoteControlled(), MSContainer::tripInfoOutput(), MSPerson::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), MSFCDExport::writeTransportable(), MSXMLRawOut::writeTransportable(), and MSDevice_Transportable::~MSDevice_Transportable().
|
inherited |
Returns the velocity/lane influencer.
If no influencer was existing before, one is built, first
Definition at line 751 of file MSPerson.cpp.
References MSPerson::myInfluencer.
Referenced by libsumo::Helper::setRemoteControlled().
|
inherited |
Definition at line 760 of file MSPerson.cpp.
References MSPerson::myInfluencer.
|
virtualinherited |
Returns the vehicle's maximum speed.
Implements SUMOTrafficObject.
Definition at line 930 of file MSTransportable.cpp.
References MSVehicleType::getMaxSpeed(), MSTransportable::getSpeedFactor(), and MSTransportable::getVehicleType().
Referenced by MSTransportable::Stage_Trip::setArrived(), and MSPerson::MSPersonStage_Walking::tripInfoOutput().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 163 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEDemandElement::getDemandElementID(), GUIDialog_GLObjChooser::getObjectName(), GNEDialogACChooser::getObjectName(), GNEDetector::getParentName(), GNEDetectorE3::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNEVariableSpeedSign::getParentName(), GNEPerson::getParentName(), GNEPersonTrip::getParentName(), GNERide::getParentName(), GNERoute::getParentName(), GNEVehicleType::getParentName(), GNEWalk::getParentName(), GNELane::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnection::updateID().
double GUIPerson::getNaviDegree | ( | ) | const |
return the current angle of the person
Definition at line 469 of file GUIPerson.cpp.
References MSTransportable::getAngle(), myLock, and GeomHelper::naviDegree().
Referenced by getParameterWindow().
|
inlineinherited |
Returns the destination after the current destination.
Definition at line 622 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 666 of file MSPerson.cpp.
References StringUtils::emptyString, Named::getID(), and MSPerson::getNextEdgePtr().
Referenced by libsumo::Person::getNextEdge(), and libsumo::TrafficLight::getServedPersonCount().
|
inherited |
returns the next edge ptr if this person is walking and the pedestrian model allows it
Definition at line 685 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 682 of file MSTransportable.h.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getStage(), MSPerson::reroute(), libsumo::Person::rerouteTraveltime(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
Return the number of remaining stages (including the current)
Definition at line 740 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getEdges(), GUIContainer::getParameterWindow(), libsumo::Person::getRemainingStages(), libsumo::Person::getStage(), getStageIndexDescription(), MSPerson::MSPersonStage_Driving::proceed(), libsumo::Person::removeStage(), libsumo::Person::replaceStage(), libsumo::Person::rerouteTraveltime(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
Return the total number stages in this persons plan.
Definition at line 745 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by libsumo::Person::getEdges(), GUIContainer::getParameterWindow(), libsumo::Person::getStage(), getStageIndexDescription(), GUIContainer::GUIContainerPopupMenu::onCmdShowPlan(), GUIPerson::GUIPersonPopupMenu::onCmdShowPlan(), MSPerson::MSPersonStage_Driving::proceed(), and MSTransportable::Stage_Trip::setArrived().
|
virtualinherited |
Returns the name of the object (default "")
Reimplemented in GNEEdge, GUIParkingArea, GUIJunctionWrapper, GUIEdge, GUIContainerStop, GUIChargingStation, GUIBusStop, and GUIBaseVehicle.
Definition at line 168 of file GUIGlObject.cpp.
Referenced by GUIDialog_GLObjChooser::getObjectName().
|
inlineinherited |
Definition at line 602 of file MSTransportable.h.
References MSTransportable::myParameter.
Referenced by MSTransportableControl::add(), MSTransportableDevice_Routing::buildDevices(), libsumo::Person::getParameter(), GUIContainer::getParameterWindow(), getParameterWindow(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), MSPerson::MSPersonStage_Driving::proceed(), MSTransportable::Stage_Trip::setArrived(), 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 220 of file GUIPerson.cpp.
References GUIParameterTableWindow::closeBuilding(), MSTransportable::getCurrentStageDescription(), getDestinationEdgeID(), getEdgeID(), getEdgePos(), getFromEdgeID(), getNaviDegree(), MSTransportable::getParameter(), getSpeed(), MSPerson::getSpeedFactor(), getStageArrivalPos(), getStageIndexDescription(), getWaitingSeconds(), GUIParameterTableWindow::mkItem(), and time2string().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNELane, GNEWalk, GNEVehicleType, GNEVehicle, GNEStop, GNERoute, GNERide, GNEPersonTrip, GNEPerson, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZSourceSink, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, GNEAccess, and GUILane.
Definition at line 143 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 185 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_REMOVE_OBJECT, MID_SHOW_CURRENTROUTE, MID_SHOW_WALKINGAREA_PATH, MID_SHOWPLAN, MID_START_TRACK, MID_STOP_TRACK, VO_SHOW_ROUTE, and VO_SHOW_WALKINGAREA_PATH.
|
virtual |
return the Network coordinate of the person
Reimplemented from MSTransportable.
Definition at line 451 of file GUIPerson.cpp.
References MSTransportable::getPosition(), and myLock.
|
inlinevirtualinherited |
Return current position (x/y, cartesian)
If the vehicle is not in the net, Position::INVALID.
[in] | offset | optional offset in longitudinal direction |
Implements SUMOTrafficObject.
Definition at line 581 of file MSTransportable.h.
References MSTransportable::getPosition().
Referenced by MSLink::checkWalkingAreaFoe(), libsumo::Person::moveToXY(), and MSFCDExport::writeTransportable().
|
inlinevirtualinherited |
Get the vehicle's position along the lane.
Implements SUMOTrafficObject.
Definition at line 573 of file MSTransportable.h.
References MSTransportable::getEdgePos().
|
inlinevirtualinherited |
Returns the vehicle's previous speed.
Implements SUMOTrafficObject.
Definition at line 565 of file MSTransportable.h.
References MSTransportable::getSpeed().
|
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 804 of file MSTransportable.cpp.
References MSVehicleType::buildSingularType(), MSTransportable::getID(), MSVehicleType::getID(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSTransportable::replaceVehicleType().
Referenced by TraCIServerAPI_Person::processSet().
|
virtualinherited |
Returns the slope of the road at vehicle's position.
Implements SUMOTrafficObject.
Definition at line 917 of file MSTransportable.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), and MSEdge::getLanes().
|
virtual |
the current speed of the person
Reimplemented from MSTransportable.
Definition at line 483 of file GUIPerson.cpp.
References MSTransportable::getSpeed(), and myLock.
Referenced by getColorValue(), and getParameterWindow().
|
inlinevirtualinherited |
the current speed factor of the transportable (where applicable)
Reimplemented from MSTransportable.
Definition at line 386 of file MSPerson.h.
References MSPerson::myChosenSpeedFactor.
Referenced by getParameterWindow().
double GUIPerson::getStageArrivalPos | ( | ) | const |
get stage arrival position
Definition at line 518 of file GUIPerson.cpp.
References MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStage(), and myLock.
Referenced by getParameterWindow().
std::string GUIPerson::getStageIndexDescription | ( | ) | const |
get stage index description
Definition at line 490 of file GUIPerson.cpp.
References MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), myLock, and toString().
Referenced by getParameterWindow().
|
inherited |
return textual summary for the given stage
Definition at line 833 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by GUIContainer::GUIContainerPopupMenu::onCmdShowPlan(), and GUIPerson::GUIPersonPopupMenu::onCmdShowPlan().
|
inlineinherited |
the stage type for the nth next stage
Definition at line 662 of file MSTransportable.h.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::moveToXY(), MSPerson::Influencer::postProcessRemoteControl(), and libsumo::Person::rerouteTraveltime().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 180 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), drawAction_drawWalkingareaPath(), GNECalibrator::drawCalibratorSymbol(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIBaseVehicle::drawGLAdditional(), drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_GLObjChooser::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), and GNENetElement::unselectAttributeCarrier().
|
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 245 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.
|
virtualinherited |
Returns the vehicle's access class.
Implements SUMOTrafficObject.
Definition at line 935 of file MSTransportable.cpp.
References MSVehicleType::getVehicleClass(), and MSTransportable::getVehicleType().
Referenced by libsumo::Person::moveToXY().
|
inlineinherited |
The vehicle associated with this transportable.
Definition at line 726 of file MSTransportable.h.
Referenced by libsumo::Person::getVehicle().
|
inlinevirtualinherited |
Returns the vehicle's type.
Implements SUMOTrafficObject.
Definition at line 606 of file MSTransportable.h.
References MSTransportable::myVType.
Referenced by libsumo::Person::appendWalkingStage(), MSLink::checkWalkingAreaFoe(), libsumo::Person::convertTraCIStage(), GUIContainer::drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), drawGL(), MSTransportable::getBoundingBox(), getCenteringBoundary(), MSTransportable::getMaxSpeed(), MSPerson::MSPersonStage_Walking::getMaxSpeed(), MSPModel_Striping::getNextLaneObstacles(), libsumo::Person::getTypeID(), MSTransportable::getVClass(), MSPModel_Striping::getVehicleObstacles(), libsumo::Person::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSPModel_Striping::nextBlocking(), MSPerson::MSPersonStage_Access::proceed(), libsumo::Person::rerouteTraveltime(), MSPerson::routeOutput(), GUIContainer::setFunctionalColor(), setFunctionalColor(), and MSPerson::tripInfoOutput().
|
virtual |
the time this person spent waiting in seconds
Reimplemented from MSTransportable.
Definition at line 476 of file GUIPerson.cpp.
References MSTransportable::getWaitingSeconds(), and myLock.
Referenced by getColorValue(), and getParameterWindow().
|
virtualinherited |
Implements SUMOTrafficObject.
Definition at line 925 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
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 528 of file GUIPerson.cpp.
References myAdditionalVisualizations.
Referenced by drawGLAdditional(), getPopUpMenu(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().
|
virtualinherited |
return whether the person has reached the end of its plan
Implements SUMOTrafficObject.
Definition at line 841 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by MSPerson::routeOutput().
|
inherited |
return whether the transportable has started it's plan
Definition at line 846 of file MSTransportable.cpp.
References MSTransportable::myPlan.
|
inlineinherited |
Definition at line 442 of file MSPerson.h.
References MSPerson::myInfluencer.
|
virtual |
whether this person is selected in the GUI
Reimplemented from MSPerson.
Definition at line 550 of file GUIPerson.cpp.
References GUIGlObject::getGlID(), GLO_PERSON, gSelected, and GUISelectedStorage::isSelected().
|
inlinevirtualinherited |
Returns whether the vehicle is at a stop.
Implements SUMOTrafficObject.
Definition at line 549 of file MSTransportable.h.
References MSTransportable::getCurrentStageType(), and MSTransportable::WAITING.
|
inlinevirtualinherited |
Get the vehicle's ID.
Implements SUMOTrafficObject.
Definition at line 545 of file MSTransportable.h.
|
inlineinherited |
Whether the transportable waits for a vehicle.
Definition at line 721 of file MSTransportable.h.
Referenced by GUIContainer::drawGL(), MSTransportable::Stage_Driving::getAngle(), GUIContainer::getColorValue(), getColorValue(), MSTransportable::Stage_Driving::getEdgePos(), getGUIPosition(), MSTransportable::Stage_Driving::getPosition(), MSTransportable::Stage_Driving::getSpeed(), MSContainer::MSContainerStage_Driving::getStageDescription(), MSPerson::MSPersonStage_Driving::getStageDescription(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSTransportable::Stage_Driving::getWaitingDescription(), and MSTransportable::Stage_Driving::getWaitingTime().
|
inlineinherited |
Whether the transportable waits for the given vehicle in the current step.
Definition at line 716 of file MSTransportable.h.
Referenced by MSEdge::getWaitingVehicle().
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 165 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
Implements MSTransportable.
Definition at line 614 of file MSPerson.cpp.
References MSTransportable::ACCESS, MSStoppingPlace::getAccessDistance(), MSStoppingPlace::getAccessPos(), MSStoppingPlace::getBeginLanePosition(), MSTransportable::Stage::getDestination(), MSTransportable::Stage::getDestinationStop(), MSTransportable::Stage::getEdge(), MSStoppingPlace::getEndLanePosition(), MSTransportable::Stage::getStageType(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSTransportable::myPlan, MSTransportable::myStep, MSEdge::removePerson(), MSStoppingPlace::removeTransportable(), MSTransportable::Stage::setArrived(), and MSTransportable::TRIP.
Referenced by MSPerson::MSPersonStage_Walking::moveToNextEdge().
|
virtual |
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 |
Reimplemented from GUIGlObject.
Definition at line 544 of file GUIPerson.cpp.
References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath().
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 111 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 293 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
inherited |
removes the nth next stage
Definition at line 766 of file MSTransportable.cpp.
References MSTransportable::appendStage(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSNet::getInstance(), MSTransportable::myPlan, MSTransportable::myStep, and MSTransportable::proceed().
Referenced by libsumo::Person::removeStage(), libsumo::Person::replaceStage(), MSPerson::reroute(), and MSTransportable::rerouteParkingArea().
|
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 795 of file MSTransportable.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSVehicleControl::removeVType().
Referenced by 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 726 of file MSPerson.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), MSTransportable::getID(), MSTransportable::getNextStage(), and MSTransportable::removeStage().
Referenced by libsumo::Person::rerouteTraveltime().
|
inherited |
adapt plan when the vehicle reroutes and now stops at replacement instead of orig
Definition at line 852 of file MSTransportable.cpp.
References MSTransportable::appendStage(), MSTransportable::DRIVING, MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::Stage::getDestination(), MSTransportable::getDestination(), MSTransportable::Stage::getDestinationStop(), MSLane::getEdge(), MSTransportable::Stage::getFromEdge(), MSStoppingPlace::getLane(), MSTransportable::Stage_Driving::getLines(), MSTransportable::Stage::getStageType(), MSTransportable::Stage_Driving::getVehicle(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSTransportable::myPlan, MSTransportable::myStep, MSTransportable::removeStage(), MSTransportable::Stage::setDestination(), MSTransportable::TRIP, and WRITE_WARNING.
|
virtualinherited |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 711 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 370 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 709 of file MSTransportable.cpp.
|
private |
sets the color according to the current scheme index and some vehicle function
Definition at line 379 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 173 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
void GUIPerson::setPositionInVehicle | ( | const Position & | pos | ) |
Definition at line 364 of file GUIPerson.cpp.
References myPositionInVehicle.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers().
|
inherited |
sets position outside the road network
|
inherited |
sets the walking speed (ignored in other stages)
Definition at line 787 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 698 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getVehicleType(), MSTransportable::myPlan, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
staticprivateinherited |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 277 of file GUIGlObject.h.
|
staticinherited |
Definition at line 69 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
|
private |
Enabled visualisations, per view.
Definition at line 259 of file GUIPerson.h.
Referenced by addActiveAddVisualisation(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIPerson().
|
privateinherited |
Definition at line 453 of file MSPerson.h.
Referenced by MSPerson::getSpeedFactor().
|
protectedinherited |
The devices this transportable has.
Definition at line 813 of file MSTransportable.h.
Referenced by MSTransportable::getDevice(), MSTransportable::getDevices(), MSTransportable::MSTransportable(), and MSTransportable::~MSTransportable().
|
staticprivateinherited |
Definition at line 455 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage_Walking::~MSPersonStage_Walking().
|
privateinherited |
full name of GL Object
Definition at line 260 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 251 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID(), and GUIGlObject::GUIGlObject().
|
privateinherited |
The type of the object.
Definition at line 254 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
privateinherited |
An instance of a speed/position influencing instance; built in "getInfluencer".
Definition at line 451 of file MSPerson.h.
Referenced by MSPerson::getInfluencer(), and MSPerson::hasInfluencer().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 253 of file GUIPerson.h.
Referenced by getDestinationEdgeID(), getEdgeID(), getEdgePos(), getFromEdgeID(), getGUIPosition(), getNaviDegree(), getPosition(), getSpeed(), getStageArrivalPos(), getStageIndexDescription(), getWaitingSeconds(), and ~GUIPerson().
|
privateinherited |
ID of GL object.
Definition at line 257 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
protectedinherited |
the plan of the transportable
Definition at line 797 of file MSTransportable.h.
Referenced by MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getParameter(), MSPerson::routeOutput(), and MSTransportable::~MSTransportable().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 263 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
protectedinherited |
the plan of the transportable
Definition at line 807 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::hasDeparted(), 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 256 of file GUIPerson.h.
Referenced by getGUIPosition(), and setPositionInVehicle().
|
protectedinherited |
the iterator over the route
Definition at line 810 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(), MSContainer::routeOutput(), MSTransportable::Stage_Trip::setArrived(), and MSTransportable::~MSTransportable().
|
protectedinherited |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 801 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 804 of file MSTransportable.h.
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 794 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Trip::getPosition(), MSTransportable::Stage_Waiting::getPosition(), and MSTransportable::Stage_Driving::getPosition().
|
staticinherited |
associates object types with strings
Definition at line 68 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().