SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIPerson Class Reference

#include <GUIPerson.h>

Inheritance diagram for GUIPerson:
MSPerson GUIGlObject MSTransportable

Data Structures

class  GUIPersonPopupMenu
 

Public Types

typedef std::vector
< MSTransportable::Stage * > 
MSTransportablePlan
 the structure holding the plan of a container More...
 
enum  StageType { DRIVING = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2 }
 
enum  VisualisationFeatures { VO_SHOW_WALKINGAREA_PATH = 1, VO_SHOW_ROUTE = 2, VO_TRACKED = 8 }
 Additional visualisation feature ids. More...
 

Public Member Functions

void drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
 
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 container More...
 
SUMOTime getDesiredDepart () const
 Returns the desired departure time. More...
 
const MSEdge & getDestination () const
 Returns the current destination. More...
 
const MSEdge * getEdge () const
 Returns the current edge. More...
 
const MSEdge * getFromEdge () const
 Returns the departure edge. More...
 
const std::string & getID () const
 returns the id of the transportable More...
 
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 SUMOVehicleParameter & getParameter () const
 
const MSVehicleType & getVehicleType () const
 
 GUIPerson (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan)
 Constructor. More...
 
bool isWaiting4Vehicle () const
 Whether the container waits for a vehicle. More...
 
bool isWaitingFor (const std::string &line) const
 Whether the container waits for a vehicle of the line specified. More...
 
bool proceed (MSNet *net, SUMOTime time)
 
void routeOutput (OutputDevice &os) const
 Called on writing vehroute output. More...
 
void setDeparted (SUMOTime now)
 logs depart time of the current stage More...
 
void setPositionInVehicle (const Position &pos)
 
void 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...
 
Boundary getCenteringBoundary () const
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
void drawGL (const GUIVisualizationSettings &s) const
 Draws the object. More...
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additionally triggered visualisations. More...
 
inherited from MSPerson with added locking
SUMOReal getEdgePos () const
 return the offset from the start of the current edge More...
 
Position getPosition () const
 return the Network coordinate of the person More...
 
SUMOReal getAngle () const
 return the current angle of the person More...
 
SUMOReal getWaitingSeconds () const
 the time this person spent waiting in seconds More...
 
SUMOReal getSpeed () const
 the current speed of the person More...
 
Additional visualisations
bool hasActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) const
 Returns whether the named feature is enabled in the given view. More...
 
void addActiveAddVisualisation (GUISUMOAbstractView *const parent, int which)
 Adds the named visualisation feature to the given view. More...
 
void removeActiveAddVisualisation (GUISUMOAbstractView *const parent, int which)
 Adds the named visualisation feature to the given view. More...
 
Atomar getter methods
const std::string & getFullName () const
 Returns the full name appearing in the tool tip. More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
interfaces to be implemented by derived classes
const std::string & getMicrosimID () const
 Returns the id of the object as known to microsim. More...
 
void setMicrosimID (const std::string &newID)
 Changes the microsimID of the object (happens in NETEDIT) More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
Parameter table window I/O
void addParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was opened. More...
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Data Fields

std::map< GUISUMOAbstractView
*, int > 
myAdditionalVisualizations
 Enabled visualisations, per view. More...
 

Static Public Attributes

static StringBijection
< GUIGlObjectType > 
TypeNames
 associates object types with strings More...
 

Protected Member Functions

void setPrefix (const std::string &prefix)
 
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 buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More...
 
void buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the manipulator window. More...
 

Protected Attributes

const SUMOVehicleParameter * myParameter
 the plan of the container More...
 
MSTransportablePlan * myPlan
 the plan of the container More...
 
MSTransportablePlan::iterator myStep
 the iterator over the route More...
 
const MSVehicleType * myVType
 This container's type. (mainly used for drawing related information Note sure if it is really necessary. More...
 
bool myWriteEvents
 Whether events shall be written. More...
 

Private Member Functions

SUMOReal getColorValue (size_t 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 (size_t activeScheme) const
 sets the color according to the current scheme index and some vehicle function More...
 
drawing helper methods
void drawAction_drawAsTriangle (const GUIVisualizationSettings &s) const
 
void drawAction_drawAsPoly (const GUIVisualizationSettings &s) const
 
void drawAction_drawAsImage (const GUIVisualizationSettings &s) const
 
void drawAction_drawWalkingareaPath (const GUIVisualizationSettings &s) const
 

Private Attributes

MFXMutex myLock
 The mutex used to avoid concurrent updates of the vehicle buffer. More...
 
Position myPositionInVehicle
 The position of a person while riding a vehicle. More...
 

Detailed Description

Definition at line 61 of file GUIPerson.h.

Member Typedef Documentation

the structure holding the plan of a container

Definition at line 174 of file MSTransportable.h.

Member Enumeration Documentation

Enumerator
DRIVING 
WAITING 
MOVING_WITHOUT_VEHICLE 

Definition at line 55 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 188 of file GUIPerson.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 117 of file GUIPerson.cpp.

GUIPerson::~GUIPerson ( )

destructor

Definition at line 123 of file GUIPerson.cpp.

Member Function Documentation

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 434 of file GUIPerson.cpp.

References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.

Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().

void GUIGlObject::addParameterTable ( GUIParameterTableWindow *  w)
inherited

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

Parameters
[in]wThe opened parameter window

Definition at line 188 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

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

Builds an entry which allows to open the manipulator window.

Parameters
in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 179 of file GUIGlObject.cpp.

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

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

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

Builds an entry which allows to open the parameter window.

Parameters
in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 158 of file GUIGlObject.cpp.

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

Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChrgStn::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().

void GUIPerson::drawAction_drawAsPoly ( const GUIVisualizationSettings &  s) const
private
void GUIPerson::drawAction_drawAsTriangle ( const GUIVisualizationSettings &  s) const
private
void GUIPerson::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings &  s 
) const
virtual

Draws additionally triggered visualisations.

Parameters
[in]parentThe view
[in]sThe settings for the current view (may influence drawing)

Reimplemented from GUIGlObject.

Definition at line 231 of file GUIPerson.cpp.

References drawAction_drawWalkingareaPath(), GUIGlObject::getGlID(), GUIGlObject::getType(), hasActiveAddVisualisation(), and VO_SHOW_WALKINGAREA_PATH.

SUMOReal GUIPerson::getAngle ( ) const
virtual

return the current angle of the person

Reimplemented from MSTransportable.

Definition at line 337 of file GUIPerson.cpp.

References MSTransportable::getAngle(), and myLock.

Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), getParameterWindow(), and setFunctionalColor().

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 170 of file GUIPerson.cpp.

References Boundary::add(), getPosition(), and Boundary::grow().

SUMOReal GUIPerson::getColorValue ( size_t  activeScheme) const
private
MSTransportable::Stage* MSTransportable::getCurrentStage ( ) const
inlineinherited

Return the current stage.

Definition at line 249 of file MSTransportable.h.

References MSTransportable::myStep.

Referenced by drawAction_drawWalkingareaPath(), and MSEdge::transportable_by_position_sorter::operator()().

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

Returns the current stage description as a string.

Definition at line 244 of file MSTransportable.h.

Referenced by GUIContainer::getParameterWindow(), and getParameterWindow().

StageType MSTransportable::getCurrentStageType ( ) const
inlineinherited

the current stage type of the container

Definition at line 239 of file MSTransportable.h.

Referenced by MSPModel_Striping::add(), GUIContainer::getColorValue(), getColorValue(), MSPerson::getNextEdge(), GUIContainer::getPosition(), and getPosition().

SUMOTime MSTransportable::getDesiredDepart ( ) const
inherited
SUMOReal GUIPerson::getEdgePos ( ) const
virtual

return the offset from the start of the current edge

Reimplemented from MSTransportable.

Definition at line 320 of file GUIPerson.cpp.

References MSTransportable::getEdgePos(), and myLock.

Referenced by getParameterWindow().

const MSEdge* MSTransportable::getFromEdge ( ) const
inlineinherited
GUIGlID GUIGlObject::getGlID ( ) const
inlineinherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 115 of file GUIGlObject.h.

References GUIGlObject::myGlID.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GUIContainer::drawGL(), drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChrgStn::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), drawGLAdditional(), GUIVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIJunctionWrapper::getColorValue(), GUIContainer::getColorValue(), getColorValue(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIVehicle::getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< long long int, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), and GUIGlObject::~GUIGlObject().

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

returns the id of the transportable

Definition at line 109 of file MSTransportable.cpp.

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

Referenced by MSContainerControl::abortWaiting(), MSPersonControl::abortWaiting(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSContainerControl::erase(), MSPersonControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), getParameterWindow(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSPModel_Striping::by_xpos_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::MSContainerStage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSPerson::MSPersonStage_Waiting::routeOutput(), MSContainerControl::setTranship(), MSPersonControl::setWalking(), MSContainerControl::unsetTranship(), MSPersonControl::unsetWalking(), and MSFCDExport::write().

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

Returns the id of the object as known to microsim.

Returns
The id of the object

Definition at line 146 of file GUIGlObject.h.

References GUIGlObject::myMicrosimID.

Referenced by GUIGlObject::createFullName(), GUIGlObject::drawName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GUIGLObjectPopupMenu::onCmdAddSelected(), and GUIGLObjectPopupMenu::onCmdCopyName().

const MSEdge& MSTransportable::getNextDestination ( ) const
inlineinherited

Returns the destination after the current destination.

Definition at line 209 of file MSTransportable.h.

References MSTransportable::myStep.

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 524 of file MSPerson.cpp.

References StringUtils::emptyString, MSTransportable::getCurrentStageType(), Named::getID(), PedestrianState::getNextEdge(), MSPerson::MSPersonStage_Walking::getPedestrianState(), and MSTransportable::MOVING_WITHOUT_VEHICLE.

const SUMOVehicleParameter& MSTransportable::getParameter ( ) const
inlineinherited
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 149 of file GUIPerson.cpp.

References GUIParameterTableWindow::closeBuilding(), getAngle(), MSTransportable::getCurrentStageDescription(), MSTransportable::getDestination(), MSTransportable::getEdge(), getEdgePos(), MSTransportable::getFromEdge(), MSTransportable::getID(), getSpeed(), getWaitingSeconds(), and GUIParameterTableWindow::mkItem().

GUIGLObjectPopupMenu * GUIPerson::getPopUpMenu ( GUIMainWindow &  app,
GUISUMOAbstractView &  parent 
)
virtual

Returns an own popup-menu.

Parameters
[in]appThe application needed to build the popup-menu
[in]parentThe parent window needed to build the popup-menu
Returns
The built popup-menu
See Also
GUIGlObject::getPopUpMenu

Implements GUIGlObject.

Definition at line 128 of file GUIPerson.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), hasActiveAddVisualisation(), MID_HIDE_WALKINGAREA_PATH, MID_SHOW_WALKINGAREA_PATH, myAdditionalVisualizations, and VO_SHOW_WALKINGAREA_PATH.

Position GUIPerson::getPosition ( ) const
virtual

return the Network coordinate of the person

Reimplemented from MSTransportable.

Definition at line 327 of file GUIPerson.cpp.

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

Referenced by drawGL(), and getCenteringBoundary().

SUMOReal GUIPerson::getSpeed ( ) const
virtual

the current speed of the person

Reimplemented from MSTransportable.

Definition at line 351 of file GUIPerson.cpp.

References MSTransportable::getSpeed(), and myLock.

Referenced by getColorValue(), and getParameterWindow().

SUMOReal GUIPerson::getWaitingSeconds ( ) const
virtual

the time this person spent waiting in seconds

Reimplemented from MSTransportable.

Definition at line 344 of file GUIPerson.cpp.

References MSTransportable::getWaitingSeconds(), and myLock.

Referenced by getColorValue(), and getParameterWindow().

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 428 of file GUIPerson.cpp.

References myAdditionalVisualizations.

Referenced by drawGLAdditional(), and getPopUpMenu().

bool MSTransportable::isWaitingFor ( const std::string &  line) const
inlineinherited

Whether the container waits for a vehicle of the line specified.

Definition at line 268 of file MSTransportable.h.

bool MSPerson::proceed ( MSNet *  net,
SUMOTime  time 
)
virtualinherited
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 444 of file GUIPerson.cpp.

References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().

Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath().

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 194 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

void MSPerson::routeOutput ( OutputDevice &  os) const
virtualinherited

Called on writing vehroute output.

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

Implements MSTransportable.

Definition at line 513 of file MSPerson.cpp.

References MSTransportable::getDesiredDepart(), MSPerson::MSPersonStage_Waiting::getUntil(), MSTransportable::myPlan, and MSTransportable::WAITING.

void MSTransportable::setDeparted ( SUMOTime  now)
inherited

logs depart time of the current stage

Definition at line 119 of file MSTransportable.cpp.

bool GUIPerson::setFunctionalColor ( size_t  activeScheme) const
private

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

Definition at line 255 of file GUIPerson.cpp.

References RGBColor::fromHSV(), getAngle(), MSTransportable::getParameter(), MSTransportable::getVehicleType(), GLHelper::setColor(), SUMOReal, VEHPARS_COLOR_SET, and VTYPEPARS_COLOR_SET.

Referenced by setColor().

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

Changes the microsimID of the object (happens in NETEDIT)

Definition at line 109 of file GUIGlObject.cpp.

References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

void GUIPerson::setPositionInVehicle ( const Position &  pos)
inline

Definition at line 120 of file GUIPerson.h.

References myPositionInVehicle.

Referenced by GUIVehicle::drawGL().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited
void MSTransportable::tripInfoOutput ( OutputDevice &  os) const
inherited

Called on writing tripinfo output.

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

Definition at line 150 of file MSTransportable.cpp.

References MSTransportable::myPlan.

Referenced by MSContainerControl::erase(), and MSPersonControl::erase().

Field Documentation

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

Enabled visualisations, per view.

Definition at line 198 of file GUIPerson.h.

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

MFXMutex GUIPerson::myLock
mutableprivate

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

Definition at line 231 of file GUIPerson.h.

Referenced by getAngle(), getEdgePos(), getPosition(), getSpeed(), and getWaitingSeconds().

const SUMOVehicleParameter* MSTransportable::myParameter
protectedinherited
Position GUIPerson::myPositionInVehicle
private

The position of a person while riding a vehicle.

Definition at line 234 of file GUIPerson.h.

Referenced by getPosition(), and setPositionInVehicle().

MSTransportablePlan::iterator MSTransportable::myStep
protectedinherited
const MSVehicleType* MSTransportable::myVType
protectedinherited

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

Definition at line 283 of file MSTransportable.h.

Referenced by MSTransportable::getVehicleType().

bool MSTransportable::myWriteEvents
protectedinherited

Whether events shall be written.

Definition at line 286 of file MSTransportable.h.

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 99 of file GUIGlObject.h.


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