SUMO - Simulation of Urban MObility
|
#include <GUIPerson.h>
Data Structures | |
class | GUIPersonPopupMenu |
Public Types | |
typedef std::vector< MSPersonStage * > | MSPersonPlan |
the structure holding the plan of a person More... | |
enum | StageType { WALKING = 0, DRIVING = 1, WAITING = 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 |
MSPersonStage * | getCurrentStage () const |
std::string | getCurrentStageDescription () const |
StageType | getCurrentStageType () const |
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 person id More... | |
const SUMOVehicleParameter & | getParameter () const |
const MSVehicleType & | getVehicleType () const |
GUIPerson (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSPerson::MSPersonPlan *plan) | |
Constructor. More... | |
bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. More... | |
bool | isWaitingFor (const std::string &line) const |
Whether the person 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 end of the step 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 person More... | |
MSPersonPlan * | myPlan |
the plan of the person More... | |
MSPersonPlan::iterator | myStep |
the iterator over the route More... | |
const MSVehicleType * | myVType |
This Persons's type. (mainly used for drawing related information. 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... | |
Definition at line 61 of file GUIPerson.h.
|
inherited |
the structure holding the plan of a person
Definition at line 514 of file MSPerson.h.
|
inherited |
Enumerator | |
---|---|
WALKING | |
DRIVING | |
WAITING |
Definition at line 71 of file MSPerson.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.
GUIPerson::GUIPerson | ( | const SUMOVehicleParameter * | pars, |
const MSVehicleType * | vtype, | ||
MSPerson::MSPersonPlan * | plan | ||
) |
Constructor.
Definition at line 117 of file GUIPerson.cpp.
GUIPerson::~GUIPerson | ( | ) |
destructor
Definition at line 123 of file GUIPerson.cpp.
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 434 of file GUIPerson.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and myAdditionalVisualizations.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath().
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 188 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 126 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 135 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 116 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
Definition at line 167 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 145 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 GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 179 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 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(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().
|
private |
Definition at line 406 of file GUIPerson.cpp.
References drawAction_drawAsPoly(), GUITexturesHelper::drawTexturedBox(), getAngle(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSPerson::getVehicleType(), MSVehicleType::getWidth(), GUIVisualizationSettings::personSize, SUMOReal, and SVS_PEDESTRIAN.
Referenced by drawGL().
|
private |
Definition at line 380 of file GUIPerson.cpp.
References RGBColor::changedBrightness(), GLHelper::drawFilledCircle(), getAngle(), GLHelper::getColor(), MSPerson::getVehicleType(), and GLHelper::setColor().
Referenced by drawAction_drawAsImage(), and drawGL().
|
private |
Definition at line 358 of file GUIPerson.cpp.
References getAngle(), GLHelper::getColor(), MSPerson::getVehicleType(), and GLHelper::setColor().
Referenced by drawGL().
|
private |
Definition at line 213 of file GUIPerson.cpp.
References GLHelper::drawBoxLines(), MSPerson::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 179 of file GUIPerson.cpp.
References drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), drawAction_drawWalkingareaPath(), GUIGlObject::drawName(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), getPosition(), GUIGlObject::getType(), GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::scale, setColor(), SUMOReal, Position::x(), and Position::y().
Referenced by GUIVehicle::drawGL(), GUIBusStop::drawGL(), 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 231 of file GUIPerson.cpp.
References drawAction_drawWalkingareaPath(), GUIGlObject::getGlID(), GUIGlObject::getType(), hasActiveAddVisualisation(), and VO_SHOW_WALKINGAREA_PATH.
|
inherited |
Definition at line 215 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIContainer::drawGL(), drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), and GUIEdge::drawGL().
|
virtual |
return the current angle of the person
Reimplemented from MSPerson.
Definition at line 337 of file GUIPerson.cpp.
References MSPerson::getAngle(), and myLock.
Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), getParameterWindow(), and setFunctionalColor().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 170 of file GUIPerson.cpp.
References Boundary::add(), getPosition(), and Boundary::grow().
|
private |
gets the color value according to the current scheme index
Definition at line 300 of file GUIPerson.cpp.
References MSPerson::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_PERSON, gSelected, GUISelectedStorage::isSelected(), MSPerson::isWaiting4Vehicle(), and SUMOReal.
Referenced by setColor().
|
inlineinherited |
Definition at line 576 of file MSPerson.h.
References MSPerson::myStep.
Referenced by drawAction_drawWalkingareaPath(), and MSEdge::person_by_offset_sorter::operator()().
|
inlineinherited |
Definition at line 572 of file MSPerson.h.
Referenced by getParameterWindow().
|
inlineinherited |
Definition at line 567 of file MSPerson.h.
Referenced by MSPModel_Striping::add(), getColorValue(), and getPosition().
|
inherited |
Returns the desired departure time.
Definition at line 585 of file MSPerson.cpp.
References SUMOVehicleParameter::depart, and MSPerson::myParameter.
Referenced by MSPersonControl::erase(), and MSPerson::routeOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 537 of file MSPerson.h.
Referenced by getParameterWindow(), MSDevice_Person::notifyLeave(), MSDevice_Person::notifyMove(), MSPerson::MSPersonStage_Driving::routeOutput(), and MSPerson::MSPersonStage_Waiting::routeOutput().
|
inlineinherited |
Returns the current edge.
Definition at line 542 of file MSPerson.h.
Referenced by MSPModel_Striping::add(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::getEdgePos(), getParameterWindow(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), and TraCIServerAPI_Person::processGet().
|
virtual |
return the offset from the start of the current edge
Reimplemented from MSPerson.
Definition at line 320 of file GUIPerson.cpp.
References MSPerson::getEdgePos(), and myLock.
Referenced by getParameterWindow().
|
inlineinherited |
Returns the departure edge.
Definition at line 547 of file MSPerson.h.
Referenced by getParameterWindow(), and MSPerson::MSPersonStage_Driving::routeOutput().
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 107 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inlineinherited |
Returns the numerical id of the object.
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(), 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< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), and GUIGlObject::~GUIGlObject().
|
inherited |
returns the person id
Definition at line 552 of file MSPerson.cpp.
References SUMOVehicleParameter::id, and MSPerson::myParameter.
Referenced by MSPersonControl::abortWaiting(), MSVehicle::addPerson(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSPersonControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), getParameterWindow(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Person::notifyLeave(), MSPModel_Striping::by_xpos_sorter::operator()(), MSEdge::person_by_offset_sorter::operator()(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSPerson::MSPersonStage_Driving::routeOutput(), MSPerson::MSPersonStage_Waiting::routeOutput(), MSPersonControl::setWalking(), MSPersonControl::unsetWalking(), and MSFCDExport::write().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 146 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by GUIGlObject::createFullName(), GUIGlObject::drawName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), and GUIGLObjectPopupMenu::onCmdCopyName().
|
inlineinherited |
Definition at line 605 of file MSPerson.h.
References MSPerson::myParameter.
Referenced by TraCIServerAPI_Person::processGet(), TraCIServerAPI_Person::processSet(), and setFunctionalColor().
|
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 149 of file GUIPerson.cpp.
References GUIParameterTableWindow::closeBuilding(), getAngle(), MSPerson::getCurrentStageDescription(), MSPerson::getDestination(), MSPerson::getEdge(), getEdgePos(), MSPerson::getFromEdge(), MSPerson::getID(), getSpeed(), getWaitingSeconds(), and GUIParameterTableWindow::mkItem().
|
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 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.
|
virtual |
return the Network coordinate of the person
Reimplemented from MSPerson.
Definition at line 327 of file GUIPerson.cpp.
References MSPerson::DRIVING, MSPerson::getCurrentStageType(), MSPerson::getPosition(), MSPerson::isWaiting4Vehicle(), myLock, and myPositionInVehicle.
Referenced by drawGL(), and getCenteringBoundary().
|
virtual |
the current speed of the person
Reimplemented from MSPerson.
Definition at line 351 of file GUIPerson.cpp.
References MSPerson::getSpeed(), and myLock.
Referenced by getColorValue(), and getParameterWindow().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 159 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), drawAction_drawWalkingareaPath(), GUIContainer::drawGL(), drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), drawGLAdditional(), GUIVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GUILane::getColorValue(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), LayeredRTree::selectLayer(), and GUISelectedStorage::toggleSelection().
|
inlineinherited |
Definition at line 610 of file MSPerson.h.
References MSPerson::myVType.
Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), drawAction_drawAsTriangle(), TraCIServerAPI_Person::processGet(), and setFunctionalColor().
|
virtual |
the time this person spent waiting in seconds
Reimplemented from MSPerson.
Definition at line 344 of file GUIPerson.cpp.
References MSPerson::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.
[in] | parent | The view for which the feature may be enabled |
[in] | which | The visualisation feature |
Definition at line 428 of file GUIPerson.cpp.
References myAdditionalVisualizations.
Referenced by drawGLAdditional(), and getPopUpMenu().
|
inlineinherited |
Whether the person waits for a vehicle.
Definition at line 600 of file MSPerson.h.
Referenced by getColorValue(), getPosition(), MSPerson::MSPersonStage_Driving::getStageDescription(), and MSPerson::MSPersonStage_Driving::getWaitingTime().
|
inlineinherited |
Whether the person waits for a vehicle of the line specified.
Definition at line 595 of file MSPerson.h.
Definition at line 558 of file MSPerson.cpp.
References MSPerson::myPlan, MSPerson::myStep, MSEdge::removePerson(), and SUMOReal.
Referenced by MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSDevice_Person::notifyLeave(), MSDevice_Person::notifyMove(), and MSPerson::MSPersonStage_Walking::proceed().
void GUIPerson::removeActiveAddVisualisation | ( | GUISUMOAbstractView *const | parent, |
int | which | ||
) |
Adds the named visualisation feature to the given view.
[in] | parent | The view for which the feature shall be enabled |
[in] | which | The visualisation feature to enable |
Definition at line 444 of file GUIPerson.cpp.
References myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 194 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
inherited |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Definition at line 605 of file MSPerson.cpp.
References MSPerson::getDesiredDepart(), MSPerson::MSPersonStage_Waiting::getUntil(), MSPerson::myPlan, and MSPerson::WAITING.
Referenced by MSPersonControl::erase().
|
private |
sets the color according to the currente settings
Definition at line 246 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(), and drawGL().
|
inherited |
logs end of the step
Definition at line 591 of file MSPerson.cpp.
|
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(), MSPerson::getParameter(), MSPerson::getVehicleType(), GLHelper::setColor(), SUMOReal, VEHPARS_COLOR_SET, and VTYPEPARS_COLOR_SET.
Referenced by setColor().
|
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.
|
inline |
Definition at line 120 of file GUIPerson.h.
References myPositionInVehicle.
Referenced by GUIVehicle::drawGL().
|
protectedinherited |
Definition at line 203 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
inherited |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Definition at line 597 of file MSPerson.cpp.
References MSPerson::myPlan.
Referenced by MSPersonControl::erase().
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().
|
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().
|
protectedinherited |
the plan of the person
Definition at line 617 of file MSPerson.h.
Referenced by MSPerson::getDesiredDepart(), MSPerson::getID(), MSPerson::getParameter(), and MSPerson::~MSPerson().
|
protectedinherited |
the plan of the person
Definition at line 623 of file MSPerson.h.
Referenced by MSPerson::MSPerson(), MSPerson::proceed(), MSPerson::routeOutput(), MSPerson::tripInfoOutput(), and MSPerson::~MSPerson().
|
private |
The position of a person while riding a vehicle.
Definition at line 234 of file GUIPerson.h.
Referenced by getPosition(), and setPositionInVehicle().
|
protectedinherited |
the iterator over the route
Definition at line 626 of file MSPerson.h.
Referenced by MSPerson::getCurrentStage(), MSPerson::MSPerson(), and MSPerson::proceed().
|
protectedinherited |
This Persons's type. (mainly used for drawing related information.
Definition at line 620 of file MSPerson.h.
Referenced by MSPerson::getVehicleType().
|
protectedinherited |
Whether events shall be written.
Definition at line 629 of file MSPerson.h.
|
staticinherited |
associates object types with strings
Definition at line 99 of file GUIGlObject.h.