![]() |
SUMO - Simulation of Urban MObility
|
#include <GUIContainer.h>
Data Structures | |
class | GUIContainerPopupMenu |
Public Types | |
typedef std::vector< MSTransportable::Stage * > | MSTransportablePlan |
the structure holding the plan of a transportable More... | |
enum | StageType { DRIVING = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2 } |
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 transportable More... | |
SUMOTime | getDesiredDepart () const |
Returns the desired departure time. More... | |
const MSEdge & | getDestination () const |
Returns the current destination. More... | |
const MSEdge * | getEdge () const |
Returns the current edge. More... | |
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 SUMOVehicleParameter & | getParameter () const |
SUMOVehicle * | getVehicle () const |
The vehicle associated with this transportable. More... | |
const MSVehicleType & | getVehicleType () const |
GUIContainer (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan) | |
Constructor. More... | |
bool | isWaiting4Vehicle () const |
Whether the transportable waits for a vehicle. More... | |
bool | isWaitingFor (const std::string &line) const |
Whether the transportable waits for a vehicle of the line specified. More... | |
bool | proceed (MSNet *net, SUMOTime time) |
void | 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... | |
~GUIContainer () | |
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 MSContainer 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 container More... | |
SUMOReal | getAngle () const |
return the current angle of the container More... | |
SUMOReal | getWaitingSeconds () const |
the time this container spent waiting in seconds More... | |
SUMOReal | getSpeed () const |
the current speed of the container More... | |
Atomar getter methods | |
const std::string & | getFullName () const |
Returns the full name appearing in the tool tip. More... | |
virtual const 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 | |
const std::string & | getMicrosimID () const |
Returns the id of the object as known to microsim. More... | |
virtual void | setMicrosimID (const std::string &newID) |
Changes the microsimID of the object (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 const SUMOReal | ROADSIDE_OFFSET |
the offset for computing container positions when standing at an edge More... | |
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 transportable More... | |
MSTransportablePlan * | myPlan |
the plan of the transportable More... | |
MSTransportablePlan::iterator | myStep |
the iterator over the route More... | |
const MSVehicleType * | myVType |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary. More... | |
bool | myWriteEvents |
Whether events shall be written. More... | |
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_drawAsPoly (const GUIVisualizationSettings &s) const |
void | drawAction_drawAsImage (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 container while riding a vehicle. More... | |
Definition at line 59 of file GUIContainer.h.
|
inherited |
the structure holding the plan of a transportable
Definition at line 196 of file MSTransportable.h.
|
inherited |
Enumerator | |
---|---|
DRIVING | |
WAITING | |
MOVING_WITHOUT_VEHICLE |
Definition at line 57 of file MSTransportable.h.
GUIContainer::GUIContainer | ( | const SUMOVehicleParameter * | pars, |
const MSVehicleType * | vtype, | ||
MSTransportable::MSTransportablePlan * | plan | ||
) |
Constructor.
Definition at line 111 of file GUIContainer.cpp.
GUIContainer::~GUIContainer | ( | ) |
destructor
Definition at line 117 of file GUIContainer.cpp.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 189 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 127 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 136 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 117 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::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 168 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 146 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(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 180 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 159 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
private |
Definition at line 394 of file GUIContainer.cpp.
References drawAction_drawAsPoly(), GUITexturesHelper::drawTexturedBox(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), GUIVisualizationSettings::personSize, and SUMOReal.
Referenced by drawGL().
|
private |
Definition at line 372 of file GUIContainer.cpp.
References getAngle(), GLHelper::getColor(), MSTransportable::getVehicleType(), PI, RAD2DEG, and GLHelper::setColor().
Referenced by drawAction_drawAsImage(), and drawGL().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 172 of file GUIContainer.cpp.
References GUIVisualizationSettings::containerName, GUIVisualizationSettings::containerQuality, GUIVisualizationSettings::containerSize, drawAction_drawAsImage(), drawAction_drawAsPoly(), GUIGlObject::drawName(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), getPosition(), GUIGlObject::getType(), GUIVisualizationSettings::scale, setColor(), SUMOReal, Position::x(), and Position::y().
Referenced by GUIVehicle::drawAction_drawPersonsAndContainers(), GUIContainerStop::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 203 of file GUIContainer.cpp.
References GUIGlObject::getGlID().
|
inherited |
Definition at line 216 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), and GUIInductLoop::MyWrapper::drawGL().
|
virtual |
return the current angle of the container
Reimplemented from MSTransportable.
Definition at line 351 of file GUIContainer.cpp.
References MSTransportable::getAngle(), myLock, and SUMOReal.
Referenced by drawAction_drawAsPoly(), getParameterWindow(), setFunctionalColor(), and setPositionInVehicle().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 158 of file GUIContainer.cpp.
References Boundary::add(), MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), getPosition(), MSTransportable::getVehicle(), Boundary::grow(), and MSTransportable::isWaiting4Vehicle().
|
private |
gets the color value according to the current scheme index
Definition at line 309 of file GUIContainer.cpp.
References MSTransportable::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_CONTAINER, gSelected, GUISelectedStorage::isSelected(), MSTransportable::isWaiting4Vehicle(), and SUMOReal.
Referenced by setColor().
|
inlineinherited |
Return the current stage.
Definition at line 271 of file MSTransportable.h.
References MSTransportable::myStep, MSTransportable::Stage::routeOutput(), and MSTransportable::Stage::tripInfoOutput().
Referenced by GUIPerson::drawAction_drawWalkingareaPath(), GUIPerson::drawGLAdditional(), and MSEdge::transportable_by_position_sorter::operator()().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 266 of file MSTransportable.h.
Referenced by getParameterWindow(), and GUIPerson::getParameterWindow().
|
inlineinherited |
the current stage type of the transportable
Definition at line 261 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), GUIPerson::drawGLAdditional(), getCenteringBoundary(), GUIPerson::getCenteringBoundary(), getColorValue(), GUIPerson::getColorValue(), MSPerson::getNextEdge(), getPosition(), and GUIPerson::getPosition().
|
inherited |
Returns the desired departure time.
Definition at line 114 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and MSTransportable::myParameter.
Referenced by MSContainerControl::erase(), MSPersonControl::erase(), MSTransportable::getVehicleType(), MSPerson::routeOutput(), and MSContainer::routeOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 226 of file MSTransportable.h.
Referenced by getParameterWindow(), GUIPerson::getParameterWindow(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSDevice_Container::notifyMove(), and MSDevice_Person::notifyMove().
|
inlineinherited |
Returns the current edge.
Definition at line 236 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), getParameterWindow(), GUIPerson::getParameterWindow(), getPosition(), and TraCIServerAPI_Person::processGet().
|
virtual |
return the offset from the start of the current edge
Reimplemented from MSTransportable.
Definition at line 329 of file GUIContainer.cpp.
References MSTransportable::getEdgePos(), and myLock.
Referenced by getParameterWindow(), getPosition(), and setPositionInVehicle().
|
inlineinherited |
Returns the departure edge.
Definition at line 241 of file MSTransportable.h.
References MSTransportable::Stage::getAngle(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage::getPosition(), MSTransportable::Stage::getSpeed(), MSTransportable::getWaitingSeconds(), and SUMOReal.
Referenced by getParameterWindow(), and GUIPerson::getParameterWindow().
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 108 of file GUIGlObject.h.
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 123 of file GUIGlObject.h.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
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(), getParameterWindow(), GUIPerson::getParameterWindow(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), 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(), MSPModel_Striping::PState::walk(), and MSFCDExport::write().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 154 of file GUIGlObject.h.
Referenced by GNETLSEditor::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getParentName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspector::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnector::updateDescription().
|
inlineinherited |
Returns the destination after the current destination.
Definition at line 231 of file MSTransportable.h.
References MSTransportable::myStep.
|
inlineinherited |
Definition at line 211 of file MSTransportable.h.
References MSTransportable::myParameter.
Referenced by GUIPerson::getParameterWindow(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Person::processSet(), setFunctionalColor(), and GUIPerson::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 137 of file GUIContainer.cpp.
References GUIParameterTableWindow::closeBuilding(), getAngle(), MSTransportable::getCurrentStageDescription(), MSTransportable::getDestination(), MSTransportable::getEdge(), getEdgePos(), MSTransportable::getFromEdge(), MSTransportable::getID(), getSpeed(), getWaitingSeconds(), and GUIParameterTableWindow::mkItem().
|
inlinevirtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GUILane, and GNELane.
Definition at line 115 of file GUIGlObject.h.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 122 of file GUIContainer.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and myAdditionalVisualizations.
|
virtual |
return the Network coordinate of the container
Reimplemented from MSTransportable.
Definition at line 336 of file GUIContainer.cpp.
References MSTransportable::DRIVING, MSTransportable::getCurrentStageType(), MSTransportable::getEdge(), getEdgePos(), MSEdge::getLanes(), MSTransportable::getPosition(), MSLane::getShape(), MSTransportable::isWaiting4Vehicle(), myLock, myPositionInVehicle, PositionVector::positionAtOffset2D(), SUMOReal, SVC_SHIP, MSTransportable::WAITING, and WATER_WAY_OFFSET.
Referenced by drawGL(), getCenteringBoundary(), and setPositionInVehicle().
|
virtual |
the current speed of the container
Reimplemented from MSTransportable.
Definition at line 365 of file GUIContainer.cpp.
References MSTransportable::getSpeed(), and myLock.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 167 of file GUIGlObject.h.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), drawGL(), GUIPerson::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GNEJunction::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnector::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
inlineinherited |
The vehicle associated with this transportable.
Definition at line 300 of file MSTransportable.h.
Referenced by getCenteringBoundary(), and GUIPerson::getCenteringBoundary().
|
inlineinherited |
Definition at line 215 of file MSTransportable.h.
References MSTransportable::getDesiredDepart(), MSTransportable::myVType, and MSTransportable::Stage::setDeparted().
Referenced by MSStoppingPlace::addTransportable(), drawAction_drawAsImage(), GUIPerson::drawAction_drawAsImage(), drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsTriangle(), MSPModel_Striping::PState::getImpatience(), MSPModel_Striping::PState::getLength(), MSPModel_Striping::PState::getMinGap(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::PState::otherStripe(), TraCIServerAPI_Person::processGet(), MSStoppingPlace::removeTransportable(), setFunctionalColor(), and GUIPerson::setFunctionalColor().
|
virtual |
the time this container spent waiting in seconds
Reimplemented from MSTransportable.
Definition at line 358 of file GUIContainer.cpp.
References MSTransportable::getWaitingSeconds(), myLock, and SUMOReal.
Referenced by getColorValue(), getParameterWindow(), and setPositionInVehicle().
|
inlineinherited |
Whether the transportable waits for a vehicle.
Definition at line 295 of file MSTransportable.h.
Referenced by getCenteringBoundary(), GUIPerson::getCenteringBoundary(), getColorValue(), GUIPerson::getColorValue(), getPosition(), and GUIPerson::getPosition().
|
inlineinherited |
Whether the transportable waits for a vehicle of the line specified.
Definition at line 290 of file MSTransportable.h.
Implements MSTransportable.
Definition at line 428 of file MSContainer.cpp.
References MSTransportable::Stage::getEdge(), MSTransportable::myPlan, MSTransportable::myStep, MSEdge::removeContainer(), and MSTransportable::Stage::setArrived().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 195 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 443 of file MSContainer.cpp.
References MSTransportable::getDesiredDepart(), MSContainer::MSContainerStage_Waiting::getUntil(), MSTransportable::myPlan, and MSTransportable::WAITING.
|
private |
sets the color according to the currente settings
Definition at line 261 of file GUIContainer.cpp.
References GUIVisualizationSettings::containerColorer, GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), GLHelper::setColor(), and setFunctionalColor().
Referenced by drawGL().
|
inherited |
logs depart time of the current stage
Definition at line 119 of file MSTransportable.cpp.
References SUMOReal.
|
private |
sets the color according to the current scheme index and some vehicle function
Definition at line 270 of file GUIContainer.cpp.
References RGBColor::fromHSV(), getAngle(), MSTransportable::getParameter(), MSTransportable::getVehicleType(), GeomHelper::naviDegree(), GLHelper::setColor(), SUMOReal, VEHPARS_COLOR_SET, and VTYPEPARS_COLOR_SET.
Referenced by setColor().
|
virtualinherited |
Changes the microsimID of the object (happens in NETEDIT)
Reimplemented in GNEEdge.
Definition at line 110 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
inline |
Definition at line 118 of file GUIContainer.h.
References getAngle(), getEdgePos(), getPosition(), getSpeed(), getWaitingSeconds(), myPositionInVehicle, and SUMOReal.
Referenced by GUIVehicle::drawAction_drawPersonsAndContainers().
|
protectedinherited |
Definition at line 204 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 150 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by MSContainerControl::erase(), and MSPersonControl::erase().
std::map<GUISUMOAbstractView*, int> GUIContainer::myAdditionalVisualizations |
Enabled visualisations, per view.
Definition at line 181 of file GUIContainer.h.
Referenced by getPopUpMenu().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 188 of file GUIContainer.h.
Referenced by getAngle(), getEdgePos(), getPosition(), getSpeed(), and getWaitingSeconds().
|
protectedinherited |
the plan of the transportable
Definition at line 306 of file MSTransportable.h.
Referenced by MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getParameter(), and MSTransportable::~MSTransportable().
|
protectedinherited |
the plan of the transportable
Definition at line 316 of file MSTransportable.h.
Referenced by MSTransportable::MSTransportable(), MSPerson::proceed(), MSContainer::proceed(), MSPerson::routeOutput(), MSContainer::routeOutput(), MSTransportable::tripInfoOutput(), and MSTransportable::~MSTransportable().
|
private |
The position of a container while riding a vehicle.
Definition at line 191 of file GUIContainer.h.
Referenced by getPosition(), and setPositionInVehicle().
|
protectedinherited |
the iterator over the route
Definition at line 319 of file MSTransportable.h.
Referenced by MSTransportable::getCurrentStage(), MSTransportable::getNextDestination(), MSTransportable::MSTransportable(), MSPerson::proceed(), and MSContainer::proceed().
|
protectedinherited |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 310 of file MSTransportable.h.
Referenced by GUIPerson::getParameterWindow(), and MSTransportable::getVehicleType().
|
protectedinherited |
Whether events shall be written.
Definition at line 313 of file MSTransportable.h.
|
staticinherited |
the offset for computing container positions when standing at an edge
Definition at line 71 of file MSContainer.h.
Referenced by MSContainer::MSContainerStage_Driving::getPosition(), and MSContainer::MSContainerStage_Waiting::getPosition().
|
staticinherited |
associates object types with strings
Definition at line 100 of file GUIGlObject.h.