Eclipse SUMO - Simulation of Urban MObility
GUIPerson Class Reference

#include <GUIPerson.h>

Inheritance diagram for GUIPerson:
Collaboration diagram for GUIPerson:

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
}
 
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 MSEdgegetArrivalEdge () 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::StagegetCurrentStage () 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 MSEdgegetDestination () const
 Returns the current destination. More...
 
MSTransportableDevicegetDevice (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 MSEdgegetEdge () const
 Returns the current edge. More...
 
ConstMSEdgeVector getEdges (int next) const
 Return the edges of the nth next stage. More...
 
const MSEdgegetFromEdge () const
 Returns the departure edge. More...
 
const std::string & getID () const
 returns the id of the transportable More...
 
InfluencergetInfluencer ()
 Returns the velocity/lane influencer. More...
 
const InfluencergetInfluencer () const
 
const MSEdgegetNextDestination () 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 MSEdgegetNextEdgePtr () const
 returns the next edge ptr if this person is walking and the pedestrian model allows it More...
 
MSTransportable::StagegetNextStage (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 SUMOVehicleParametergetParameter () const
 
MSVehicleTypegetSingularType ()
 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...
 
SUMOVehiclegetVehicle () const
 The vehicle associated with this transportable. More...
 
const MSVehicleTypegetVehicleType () 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 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 SUMOVehicle *vehicle) const
 Whether the transportable waits for the given vehicle in the current step. 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
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own parameter window. More...
 
GUIParameterTableWindowgetTypeParameterWindow (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)
 
inherited from MSPerson with added locking

return the offset from the start of the current edge

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...
 
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

Returns
This object's typed id
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 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

Parameters
[in]wThe opened parameter window
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< GUIGlObjectTypeTypeNames
 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 SUMOVehicleParametermyParameter
 the plan of the transportable More...
 
MSTransportablePlanmyPlan
 the plan of the transportable More...
 
MSTransportablePlan::iterator myStep
 the iterator over the route More...
 
MSVehicleTypemyVType
 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

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...
 
FXMutex 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...
 

Detailed Description

Definition at line 54 of file GUIPerson.h.

Member Typedef Documentation

◆ MSTransportablePlan

the structure holding the plan of a transportable

Definition at line 588 of file MSTransportable.h.

Member Enumeration Documentation

◆ StageType

Enumerator
WAITING_FOR_DEPART 
WAITING 
MOVING_WITHOUT_VEHICLE 
DRIVING 
ACCESS 
TRIP 

Definition at line 61 of file MSTransportable.h.

◆ VisualisationFeatures

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 215 of file GUIPerson.h.

Constructor & Destructor Documentation

◆ GUIPerson()

GUIPerson::GUIPerson ( const SUMOVehicleParameter pars,
MSVehicleType vtype,
MSTransportable::MSTransportablePlan plan,
const double  speedFactor 
)

Constructor.

Definition at line 168 of file GUIPerson.cpp.

◆ ~GUIPerson()

GUIPerson::~GUIPerson ( )

destructor

Definition at line 175 of file GUIPerson.cpp.

References GUIGlObject::getGlID(), myAdditionalVisualizations, and myLock.

Member Function Documentation

◆ addActiveAddVisualisation()

void GUIPerson::addActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)

Adds the named visualisation feature to the given view.

Parameters
[in]parentThe view for which the feature shall be enabled
[in]whichThe visualisation feature to enable
See also
GUISUMOAbstractView::addAdditionalGLVisualisation

Definition at line 537 of file GUIPerson.cpp.

References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.

Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

◆ appendStage()

◆ buildAdditionalsPopupOptions()

void GUIGlObject::buildAdditionalsPopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildCenterPopupEntry()

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

◆ buildPositionCopyEntry()

void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildSelectionPopupEntry()

◆ buildShapePopupOptions()

void GUIGlObject::buildShapePopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildShowManipulatorPopupEntry()

void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters

Definition at line 279 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.

Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().

◆ buildShowParamsPopupEntry()

◆ buildShowTypeParamsPopupEntry()

void GUIGlObject::buildShowTypeParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the type parameter window.

Parameters

Definition at line 258 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.

Referenced by getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().

◆ drawAction_drawWalkingareaPath()

◆ drawGL()

◆ drawGLAdditional()

◆ drawName()

◆ getAcceleration()

double MSTransportable::getAcceleration ( ) const
inlinevirtualinherited

Returns the vehicle's acceleration.

Returns
The acceleration

Implements SUMOTrafficObject.

Definition at line 570 of file MSTransportable.h.

◆ getAngle()

double MSTransportable::getAngle ( ) const
virtualinherited

◆ getArrivalEdge()

◆ getArrivalPos()

double MSTransportable::getArrivalPos ( ) const
inlineinherited

◆ getBackPositionOnLane()

double MSTransportable::getBackPositionOnLane ( const MSLane lane) const
inlinevirtualinherited

Get the vehicle's back position along the given lane.

Returns
The position of the vehicle (in m from the given lane's begin)

Implements SUMOTrafficObject.

Definition at line 578 of file MSTransportable.h.

References MSTransportable::Stage::getEdgePos().

◆ getBoundingBox()

◆ getCenteringBoundary()

Boundary GUIPerson::getCenteringBoundary ( ) const
virtual

Returns the boundary to which the view shall be centered in order to show the object.

Returns
The boundary the object is within
See also
GUIGlObject::getCenteringBoundary

Implements GUIGlObject.

Definition at line 267 of file GUIPerson.cpp.

References Boundary::add(), getGUIPosition(), MSTransportable::getVehicleType(), Boundary::grow(), and MAX2().

◆ getChosenSpeedFactor()

double MSTransportable::getChosenSpeedFactor ( ) const
inlinevirtualinherited

◆ getColorValue()

double GUIPerson::getColorValue ( const GUIVisualizationSettings s,
int  activeScheme 
) const
privatevirtual

gets the color value according to the current scheme index

Reimplemented from GUIGlObject.

Definition at line 427 of file GUIPerson.cpp.

References MSTransportable::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_PERSON, gSelected, GUISelectedStorage::isSelected(), and MSTransportable::isWaiting4Vehicle().

Referenced by drawGL(), and setColor().

◆ getCurrentStage()

◆ getCurrentStageDescription()

std::string MSTransportable::getCurrentStageDescription ( ) const
inlineinherited

Returns the current stage description as a string.

Definition at line 673 of file MSTransportable.h.

Referenced by getParameterWindow(), GUIContainer::getParameterWindow(), libsumo::Person::moveTo(), libsumo::Person::moveToXY(), and MSXMLRawOut::writeTransportable().

◆ getCurrentStageType()

◆ getDesiredDepart()

SUMOTime MSTransportable::getDesiredDepart ( ) const
inherited

◆ getDestination()

const MSEdge* MSTransportable::getDestination ( ) const
inlineinherited

◆ getDestinationEdgeID()

std::string GUIPerson::getDestinationEdgeID ( ) const

get destination edge ID

Definition at line 514 of file GUIPerson.cpp.

References MSTransportable::getDestination(), Named::getID(), and myLock.

Referenced by getParameterWindow().

◆ getDevice()

MSTransportableDevice * MSTransportable::getDevice ( const std::type_info &  type) const
inherited

Returns a device of the given type if it exists or 0.

Definition at line 902 of file MSTransportable.cpp.

References MSTransportable::myDevices.

Referenced by MSTransportable::getArrivalEdge(), and MSFCDExport::writeTransportable().

◆ getDevices()

const std::vector<MSTransportableDevice*>& MSTransportable::getDevices ( ) const
inlineinherited

Returns this vehicle's devices.

Returns
This vehicle's devices

Definition at line 789 of file MSTransportable.h.

References MSTransportable::myDevices.

◆ getEdge()

◆ getEdgeID()

std::string GUIPerson::getEdgeID ( ) const

get edge ID

Definition at line 500 of file GUIPerson.cpp.

References MSTransportable::getEdge(), Named::getID(), and myLock.

Referenced by getParameterWindow().

◆ getEdgePos()

double GUIPerson::getEdgePos ( ) const
virtual

Return the position on the edge.

Reimplemented from MSTransportable.

Definition at line 447 of file GUIPerson.cpp.

References MSTransportable::getEdgePos(), and myLock.

Referenced by getParameterWindow().

◆ getEdges()

◆ getFromEdge()

const MSEdge* MSTransportable::getFromEdge ( ) const
inlineinherited

◆ getFromEdgeID()

std::string GUIPerson::getFromEdgeID ( ) const

ger from edge ID

Definition at line 507 of file GUIPerson.cpp.

References MSTransportable::getFromEdge(), Named::getID(), and myLock.

Referenced by getParameterWindow().

◆ getFullName()

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 150 of file GUIGlObject.cpp.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GNEChargingStation::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEInternalLane::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GNECrossing::drawGL(), GUILaneSpeedTrigger::drawGL(), drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEJunction::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIPointOfInterest::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GNEStop::drawGL(), GNELane::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEPerson::drawGL(), GUILane::drawGL(), GNEVehicle::drawGL(), drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEVehicleType::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEVehicleType::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and ~GUIPerson().

◆ getGUIPosition()

Position GUIPerson::getGUIPosition ( ) const

return the Network coordinate of the person (only for drawing centering and tracking)

Definition at line 461 of file GUIPerson.cpp.

References MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), MSTransportable::getPosition(), Position::INVALID, MSTransportable::isWaiting4Vehicle(), myLock, and myPositionInVehicle.

Referenced by drawGL(), and getCenteringBoundary().

◆ getID()

const std::string & MSTransportable::getID ( ) const
virtualinherited

returns the id of the transportable

Implements SUMOTrafficObject.

Definition at line 694 of file MSTransportable.cpp.

References SUMOVehicleParameter::id, and MSTransportable::myParameter.

Referenced by MSTransportableControl::abortAnyWaitingForVehicle(), 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(), MSTransportableDevice_FCD::buildDevices(), MSTransportableDevice_Routing::buildDevices(), libsumo::Person::convertTraCIStage(), 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::PState::getID(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), MSTransportable::getSingularType(), MSPModel_Striping::getVehicleObstacles(), MSVehicleControl::getWaitingVehicle(), MSPedestrianPushButton::isActiveForEdge(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), MSDevice_Transportable::notifyLeave(), MSEdge::transportable_by_position_sorter::operator()(), MSPModel_Striping::PState::PState(), MSPerson::reroute(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), MSTransportable::Stage_Trip::setArrived(), libsumo::Helper::setRemoteControlled(), MSContainer::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), MSPerson::tripInfoOutput(), MSPModel_Striping::PState::walk(), MSFCDExport::writeTransportable(), MSXMLRawOut::writeTransportable(), and MSDevice_Transportable::~MSDevice_Transportable().

◆ getInfluencer() [1/2]

MSPerson::Influencer & MSPerson::getInfluencer ( )
inherited

Returns the velocity/lane influencer.

If no influencer was existing before, one is built, first

Returns
Reference to this vehicle's speed influencer

Definition at line 740 of file MSPerson.cpp.

References MSPerson::myInfluencer.

Referenced by libsumo::Helper::setRemoteControlled().

◆ getInfluencer() [2/2]

const MSPerson::Influencer * MSPerson::getInfluencer ( ) const
inherited

Definition at line 749 of file MSPerson.cpp.

References MSPerson::myInfluencer.

◆ getMaxSpeed()

double MSTransportable::getMaxSpeed ( ) const
virtualinherited

Returns the vehicle's maximum speed.

Returns
The vehicle's maximum speed

Implements SUMOTrafficObject.

Definition at line 925 of file MSTransportable.cpp.

References MSVehicleType::getMaxSpeed(), MSTransportable::getSpeedFactor(), and MSTransportable::getVehicleType().

Referenced by MSTransportable::getChosenSpeedFactor(), and MSTransportable::Stage_Trip::setArrived().

◆ getMicrosimID()

const std::string & GUIGlObject::getMicrosimID ( ) const
virtualinherited

Returns the id of the object as known to microsim.

Definition at line 164 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(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEDemandElement::getDemandElementID(), GNEDialogACChooser::getObjectName(), GUIDialog_GLObjChooser::getObjectName(), GNEDetectorE3::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEVehicleType::getParentName(), GNETAZ::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNERide::getParentName(), GNEPersonTrip::getParentName(), GNEPOI::getParentName(), GNEWalk::getParentName(), GNERoute::getParentName(), GNEPerson::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), GNEProhibitionFrame::RelativeToConnection::updateDescription(), and GNEConnection::updateID().

◆ getNaviDegree()

double GUIPerson::getNaviDegree ( ) const

return the current angle of the person

Definition at line 472 of file GUIPerson.cpp.

References MSTransportable::getAngle(), myLock, and GeomHelper::naviDegree().

Referenced by getParameterWindow().

◆ getNextDestination()

const MSEdge* MSTransportable::getNextDestination ( ) const
inlineinherited

Returns the destination after the current destination.

Definition at line 623 of file MSTransportable.h.

References MSTransportable::myStep.

◆ getNextEdge()

const std::string & MSPerson::getNextEdge ( ) const
inherited

return the list of internal edges if this person is walking and the pedestrian model allows it

Definition at line 655 of file MSPerson.cpp.

References StringUtils::emptyString, Named::getID(), and MSPerson::getNextEdgePtr().

Referenced by libsumo::Person::getNextEdge().

◆ getNextEdgePtr()

const MSEdge * MSPerson::getNextEdgePtr ( ) const
inherited

returns the next edge ptr if this person is walking and the pedestrian model allows it

Definition at line 674 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().

◆ getNextStage()

MSTransportable::Stage* MSTransportable::getNextStage ( int  next) const
inlineinherited

◆ getNumRemainingStages()

◆ getNumStages()

◆ getOptionalName()

const std::string GUIGlObject::getOptionalName ( ) const
virtualinherited

Returns the name of the object (default "")

Reimplemented in GNEAdditional, GNEEdge, GUIBaseVehicle, GUIEdge, GUIParkingArea, GUIBusStop, GUIContainerStop, and GUIChargingStation.

Definition at line 169 of file GUIGlObject.cpp.

Referenced by GUIDialog_GLObjChooser::getObjectName().

◆ getParameter()

◆ getParameterWindow()

GUIParameterTableWindow * GUIPerson::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See also
GUIGlObject::getParameterWindow

Implements GUIGlObject.

Definition at line 223 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().

◆ getParentName()

◆ getPopUpMenu()

◆ getPosition() [1/2]

Position GUIPerson::getPosition ( ) const
virtual

return the Network coordinate of the person

Reimplemented from MSTransportable.

Definition at line 454 of file GUIPerson.cpp.

References MSTransportable::getPosition(), and myLock.

◆ getPosition() [2/2]

Position MSTransportable::getPosition ( const double  offset) const
inlinevirtualinherited

Return current position (x/y, cartesian)

If the vehicle is not in the net, Position::INVALID.

Parameters
[in]offsetoptional offset in longitudinal direction
Returns
The current position (in cartesian coordinates)
See also
myLane

Implements SUMOTrafficObject.

Definition at line 582 of file MSTransportable.h.

References MSTransportable::Stage::getPosition().

Referenced by MSLink::checkWalkingAreaFoe(), libsumo::Person::moveToXY(), and MSFCDExport::writeTransportable().

◆ getPositionOnLane()

double MSTransportable::getPositionOnLane ( ) const
inlinevirtualinherited

Get the vehicle's position along the lane.

Returns
The position of the vehicle (in m from the lane's begin)

Implements SUMOTrafficObject.

Definition at line 574 of file MSTransportable.h.

References MSTransportable::Stage::getEdgePos().

◆ getPreviousSpeed()

double MSTransportable::getPreviousSpeed ( ) const
inlinevirtualinherited

Returns the vehicle's previous speed.

Returns
The vehicle's previous speed

Implements SUMOTrafficObject.

Definition at line 566 of file MSTransportable.h.

References MSTransportable::Stage::getSpeed().

◆ getSingularType()

MSVehicleType & MSTransportable::getSingularType ( )
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.

Returns
The new modifiable vehicle type
See also
MSTransportable::myVType

Definition at line 799 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().

◆ getSlope()

double MSTransportable::getSlope ( ) const
virtualinherited

Returns the slope of the road at vehicle's position.

Returns
The slope

Implements SUMOTrafficObject.

Definition at line 912 of file MSTransportable.cpp.

References MSTransportable::getEdge(), MSTransportable::getEdgePos(), and MSEdge::getLanes().

Referenced by MSTransportable::isStopped().

◆ getSpeed()

double GUIPerson::getSpeed ( ) const
virtual

the current speed of the person

Reimplemented from MSTransportable.

Definition at line 486 of file GUIPerson.cpp.

References MSTransportable::getSpeed(), and myLock.

Referenced by getColorValue(), and getParameterWindow().

◆ getSpeedFactor()

double MSPerson::getSpeedFactor ( ) const
inlinevirtualinherited

the current speed factor of the transportable (where applicable)

Reimplemented from MSTransportable.

Definition at line 387 of file MSPerson.h.

References MSPerson::myChosenSpeedFactor, and MSPerson::reroute().

Referenced by getParameterWindow().

◆ getStageArrivalPos()

double GUIPerson::getStageArrivalPos ( ) const

get stage arrival position

Definition at line 521 of file GUIPerson.cpp.

References MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStage(), and myLock.

Referenced by getParameterWindow().

◆ getStageIndexDescription()

std::string GUIPerson::getStageIndexDescription ( ) const

get stage index description

Definition at line 493 of file GUIPerson.cpp.

References MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), myLock, and toString().

Referenced by getParameterWindow().

◆ getStageSummary()

std::string MSTransportable::getStageSummary ( int  stageIndex) const
inherited

return textual summary for the given stage

Definition at line 828 of file MSTransportable.cpp.

References MSTransportable::myPlan.

Referenced by GUIContainer::GUIContainerPopupMenu::onCmdShowPlan(), and GUIPerson::GUIPersonPopupMenu::onCmdShowPlan().

◆ getStageType()

StageType MSTransportable::getStageType ( int  next) const
inlineinherited

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 181 of file GUIGlObject.cpp.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), drawAction_drawWalkingareaPath(), GNEChargingStation::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GNECrossing::drawGL(), GUILaneSpeedTrigger::drawGL(), drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEJunction::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GNEStop::drawGL(), GNELane::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNEPerson::drawGL(), GUILane::drawGL(), GNEVehicle::drawGL(), drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::BlockIcon::drawIcon(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GNEJunction::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISelectedStorage::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::onCmdHideFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowDetectors(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFutureRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStopTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GUIDialog_GLObjChooser::onCmdTrack(), GNENetElement::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNENetElement::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), and GNEVehicle::unselectAttributeCarrier().

◆ getTypeParameterWindow()

GUIParameterTableWindow * GUIPerson::getTypeParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own type parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window

Reimplemented from GUIGlObject.

Definition at line 248 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.

◆ getVClass()

SUMOVehicleClass MSTransportable::getVClass ( ) const
virtualinherited

Returns the vehicle's access class.

Returns
The vehicle's access class

Implements SUMOTrafficObject.

Definition at line 930 of file MSTransportable.cpp.

References MSVehicleType::getVehicleClass(), and MSTransportable::getVehicleType().

Referenced by MSTransportable::getChosenSpeedFactor(), and libsumo::Person::moveToXY().

◆ getVehicle()

SUMOVehicle* MSTransportable::getVehicle ( ) const
inlineinherited

The vehicle associated with this transportable.

Definition at line 727 of file MSTransportable.h.

References MSTransportable::appendStage(), MSTransportable::removeStage(), and MSTransportable::Stage::setSpeed().

Referenced by libsumo::Person::getVehicle().

◆ getVehicleType()

◆ getWaitingSeconds()

double GUIPerson::getWaitingSeconds ( ) const
virtual

the time this person spent waiting in seconds

Reimplemented from MSTransportable.

Definition at line 479 of file GUIPerson.cpp.

References MSTransportable::getWaitingSeconds(), and myLock.

Referenced by getColorValue(), and getParameterWindow().

◆ getWaitingTime()

SUMOTime MSTransportable::getWaitingTime ( ) const
virtualinherited

Implements SUMOTrafficObject.

Definition at line 920 of file MSTransportable.cpp.

References MSNet::getCurrentTimeStep(), and MSNet::getInstance().

◆ hasActiveAddVisualisation()

bool GUIPerson::hasActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
) const

Returns whether the named feature is enabled in the given view.

Parameters
[in]parentThe view for which the feature may be enabled
[in]whichThe visualisation feature
Returns
see comment

Definition at line 531 of file GUIPerson.cpp.

References myAdditionalVisualizations.

Referenced by drawGLAdditional(), and getPopUpMenu().

◆ hasArrived()

bool MSTransportable::hasArrived ( ) const
virtualinherited

return whether the person has reached the end of its plan

Implements SUMOTrafficObject.

Definition at line 836 of file MSTransportable.cpp.

References MSTransportable::myPlan, and MSTransportable::myStep.

Referenced by MSTransportable::getArrivalEdge(), and MSPerson::routeOutput().

◆ hasDeparted()

bool MSTransportable::hasDeparted ( ) const
inherited

return whether the transportable has started it's plan

Definition at line 841 of file MSTransportable.cpp.

References MSTransportable::myPlan.

Referenced by MSTransportable::getArrivalEdge().

◆ hasInfluencer()

bool MSPerson::hasInfluencer ( ) const
inlineinherited

Definition at line 443 of file MSPerson.h.

References MSPerson::myInfluencer, and MSPerson::setRemoteState().

◆ isSelected()

bool GUIPerson::isSelected ( ) const
virtual

whether this person is selected in the GUI

Reimplemented from MSPerson.

Definition at line 553 of file GUIPerson.cpp.

References GUIGlObject::getGlID(), GLO_PERSON, gSelected, and GUISelectedStorage::isSelected().

◆ isStopped()

bool MSTransportable::isStopped ( ) const
inlinevirtualinherited

Returns whether the vehicle is at a stop.

Returns
Whether the has stopped

Implements SUMOTrafficObject.

Definition at line 550 of file MSTransportable.h.

References MSTransportable::getCurrentStageType(), MSTransportable::getSlope(), and MSTransportable::WAITING.

◆ isVehicle()

bool MSTransportable::isVehicle ( ) const
inlinevirtualinherited

Get the vehicle's ID.

Returns
The the ID of the vehicle

Implements SUMOTrafficObject.

Definition at line 546 of file MSTransportable.h.

◆ isWaiting4Vehicle()

bool MSTransportable::isWaiting4Vehicle ( ) const
inlineinherited

Whether the transportable waits for a vehicle.

Definition at line 722 of file MSTransportable.h.

Referenced by GUIContainer::drawGL(), GUIContainer::getColorValue(), getColorValue(), and getGUIPosition().

◆ isWaitingFor()

bool MSTransportable::isWaitingFor ( const SUMOVehicle vehicle) const
inlineinherited

Whether the transportable waits for the given vehicle in the current step.

Definition at line 717 of file MSTransportable.h.

Referenced by MSVehicleControl::getWaitingVehicle().

◆ proceed()

◆ removeActiveAddVisualisation()

void GUIPerson::removeActiveAddVisualisation ( GUISUMOAbstractView *const  parent,
int  which 
)

Adds the named visualisation feature to the given view.

Parameters
[in]parentThe view for which the feature shall be enabled
[in]whichThe visualisation feature to enable
See also
GUISUMOAbstractView::removeAdditionalGLVisualisation

Definition at line 547 of file GUIPerson.cpp.

References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().

Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), and GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath().

◆ removeParameterTable()

void GUIGlObject::removeParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was closed.

Parameters
[in]wThe closed parameter window

Definition at line 294 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

◆ removeStage()

◆ replaceVehicleType()

void MSTransportable::replaceVehicleType ( MSVehicleType type)
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".

Parameters
[in]typeThe new vehicle type
See also
MSTransportable::myVType

Definition at line 790 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().

◆ reroute()

void MSPerson::reroute ( ConstMSEdgeVector newEdges,
double  departPos,
int  firstIndex,
int  nextIndex 
)
inherited

set new walk and replace the stages with relative indices in the interval [firstIndex, nextIndex[

Definition at line 715 of file MSPerson.cpp.

References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), MSTransportable::getID(), MSTransportable::getNextStage(), and MSTransportable::removeStage().

Referenced by MSPerson::getSpeedFactor(), and libsumo::Person::rerouteTraveltime().

◆ rerouteParkingArea()

◆ routeOutput()

void MSPerson::routeOutput ( OutputDevice os,
const bool  withRouteLength 
) const
virtualinherited

◆ setColor()

◆ setDeparted()

void MSTransportable::setDeparted ( SUMOTime  now)
inherited

logs depart time of the current stage

Definition at line 704 of file MSTransportable.cpp.

◆ setFunctionalColor()

bool GUIPerson::setFunctionalColor ( int  activeScheme) const
private

sets the color according to the current scheme index and some vehicle function

Definition at line 382 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().

◆ setMicrosimID()

void GUIGlObject::setMicrosimID ( const std::string &  newID)
virtualinherited

◆ setPositionInVehicle()

void GUIPerson::setPositionInVehicle ( const Position pos)

Definition at line 367 of file GUIPerson.cpp.

References myPositionInVehicle.

Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers().

◆ setRemoteState()

void MSPerson::setRemoteState ( Position  xyPos)
inherited

sets position outside the road network

Referenced by MSPerson::hasInfluencer().

◆ setSpeed()

void MSTransportable::setSpeed ( double  speed)
inherited

sets the walking speed (ignored in other stages)

Definition at line 782 of file MSTransportable.cpp.

References MSTransportable::myPlan.

Referenced by libsumo::Person::setSpeed().

◆ tripInfoOutput()

void MSPerson::tripInfoOutput ( OutputDevice os) const
virtualinherited

Called on writing tripinfo output.

Parameters
[in]osThe stream to write the information into
Exceptions
IOErrornot yet implemented

Implements MSTransportable.

Definition at line 687 of file MSPerson.cpp.

References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getVehicleType(), MSTransportable::myPlan, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().

Field Documentation

◆ INVALID_ID

const GUIGlID GUIGlObject::INVALID_ID = 0
staticinherited

◆ myAdditionalVisualizations

std::map<GUISUMOAbstractView*, int> GUIPerson::myAdditionalVisualizations
private

Enabled visualisations, per view.

Definition at line 269 of file GUIPerson.h.

Referenced by addActiveAddVisualisation(), getPopUpMenu(), hasActiveAddVisualisation(), removeActiveAddVisualisation(), and ~GUIPerson().

◆ myDevices

std::vector<MSTransportableDevice*> MSTransportable::myDevices
protectedinherited

The devices this transportable has.

Definition at line 814 of file MSTransportable.h.

Referenced by MSTransportable::getDevice(), MSTransportable::getDevices(), and MSTransportable::MSTransportable().

◆ myLock

FXMutex GUIPerson::myLock
mutableprivate

The mutex used to avoid concurrent updates of the vehicle buffer.

Definition at line 263 of file GUIPerson.h.

Referenced by getDestinationEdgeID(), getEdgeID(), getEdgePos(), getFromEdgeID(), getGUIPosition(), getNaviDegree(), getPosition(), getSpeed(), getStageArrivalPos(), getStageIndexDescription(), getWaitingSeconds(), and ~GUIPerson().

◆ myParameter

const SUMOVehicleParameter* MSTransportable::myParameter
protectedinherited

◆ myPlan

◆ myPositionInVehicle

Position GUIPerson::myPositionInVehicle
private

The position of a person while riding a vehicle.

Definition at line 266 of file GUIPerson.h.

Referenced by getGUIPosition(), and setPositionInVehicle().

◆ myStep

◆ myVType

MSVehicleType* MSTransportable::myVType
protectedinherited

This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.

Definition at line 802 of file MSTransportable.h.

Referenced by MSTransportable::getSingularType(), getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), MSTransportable::getVehicleType(), MSTransportable::replaceVehicleType(), and MSTransportable::~MSTransportable().

◆ myWriteEvents

bool MSTransportable::myWriteEvents
protectedinherited

Whether events shall be written.

Definition at line 805 of file MSTransportable.h.

◆ ROADSIDE_OFFSET

const double MSTransportable::ROADSIDE_OFFSET
staticprotectedinherited

the offset for computing positions when standing at an edge

Definition at line 795 of file MSTransportable.h.

Referenced by MSTransportable::Stage_Trip::getPosition(), MSTransportable::Stage_Waiting::getPosition(), and MSTransportable::Stage_Driving::getPosition().

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 69 of file GUIGlObject.h.

Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().


The documentation for this class was generated from the following files: