SUMO - Simulation of Urban MObility
|
#include <GUIContainer.h>
Data Structures | |
class | GUIContainerPopupMenu |
Public Types | |
typedef std::vector < MSContainerStage * > | MSContainerPlan |
the structure holding the plan of a container More... | |
enum | StageType { DRIVING = 0, WAITING = 1, TRANSHIP = 2 } |
Public Member Functions | |
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
MSContainerStage * | 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... | |
virtual MSContainerStop * | getDepartContainerStop () 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 container id More... | |
const MSEdge & | getNextDestination () const |
Returns the destination after the current destination. More... | |
const SUMOVehicleParameter & | getParameter () const |
const MSVehicleType & | getVehicleType () const |
GUIContainer (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSContainer::MSContainerPlan *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... | |
~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... | |
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 | |
const MSEdge * | lastDestination |
the last destination of the route of the container More... | |
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 container More... | |
MSContainerPlan * | myPlan |
the plan of the container More... | |
MSContainerPlan::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_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 container
Definition at line 553 of file MSContainer.h.
|
inherited |
Enumerator | |
---|---|
DRIVING | |
WAITING | |
TRANSHIP |
Definition at line 71 of file MSContainer.h.
GUIContainer::GUIContainer | ( | const SUMOVehicleParameter * | pars, |
const MSVehicleType * | vtype, | ||
MSContainer::MSContainerPlan * | plan | ||
) |
Constructor.
Definition at line 110 of file GUIContainer.cpp.
GUIContainer::~GUIContainer | ( | ) |
destructor
Definition at line 116 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 188 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
protectedinherited |
Builds an entry which allows to center to the object.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 126 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(), 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.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 135 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(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 116 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::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.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
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(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::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.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
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(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::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.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether 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().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 158 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and GUILane::getPopUpMenu().
|
private |
Definition at line 388 of file GUIContainer.cpp.
References drawAction_drawAsPoly(), GUITexturesHelper::drawTexturedBox(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSContainer::getVehicleType(), MSVehicleType::getWidth(), GUIVisualizationSettings::personSize, and SUMOReal.
Referenced by drawGL().
|
private |
Definition at line 366 of file GUIContainer.cpp.
References getAngle(), GLHelper::getColor(), MSContainer::getVehicleType(), 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 166 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::drawGL(), 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 197 of file GUIContainer.cpp.
References GUIGlObject::getGlID().
|
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 drawGL(), GUIPerson::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 container
Reimplemented from MSContainer.
Definition at line 345 of file GUIContainer.cpp.
References MSContainer::getAngle(), and myLock.
Referenced by drawAction_drawAsPoly(), 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 157 of file GUIContainer.cpp.
References Boundary::add(), getPosition(), and Boundary::grow().
|
private |
gets the color value according to the current scheme index
Definition at line 303 of file GUIContainer.cpp.
References MSContainer::getCurrentStageType(), GUIGlObject::getGlID(), getSpeed(), getWaitingSeconds(), GLO_CONTAINER, gSelected, GUISelectedStorage::isSelected(), MSContainer::isWaiting4Vehicle(), and SUMOReal.
Referenced by setColor().
|
inlineinherited |
Return the current stage.
Definition at line 641 of file MSContainer.h.
References MSContainer::myStep.
Referenced by MSEdge::container_by_position_sorter::operator()().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 636 of file MSContainer.h.
Referenced by getParameterWindow().
|
inlineinherited |
the current stage type of the container
Definition at line 631 of file MSContainer.h.
Referenced by getColorValue(), and getPosition().
|
virtualinherited |
Definition at line 540 of file MSContainer.cpp.
|
inherited |
Returns the desired departure time.
Definition at line 505 of file MSContainer.cpp.
References SUMOVehicleParameter::depart, and MSContainer::myParameter.
Referenced by MSContainerControl::erase(), and MSContainer::routeOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 596 of file MSContainer.h.
Referenced by getParameterWindow(), MSContainer::MSContainer(), MSDevice_Container::notifyLeave(), MSDevice_Container::notifyMove(), MSContainer::MSContainerStage_Driving::routeOutput(), and MSContainer::MSContainerStage_Waiting::routeOutput().
|
inlineinherited |
Returns the current edge.
Definition at line 606 of file MSContainer.h.
Referenced by MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSContainer::MSContainerStage_Driving::getEdgePos(), getParameterWindow(), getPosition(), and MSContainer::MSContainerStage_Tranship::moveToNextEdge().
|
virtual |
return the offset from the start of the current edge
Reimplemented from MSContainer.
Definition at line 323 of file GUIContainer.cpp.
References MSContainer::getEdgePos(), and myLock.
Referenced by getParameterWindow(), and getPosition().
|
inlineinherited |
Returns the departure edge.
Definition at line 611 of file MSContainer.h.
Referenced by getParameterWindow(), and MSContainer::MSContainerStage_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(), drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIJunctionWrapper::getColorValue(), getColorValue(), GUIPerson::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 container id
Definition at line 485 of file MSContainer.cpp.
References SUMOVehicleParameter::id, and MSContainer::myParameter.
Referenced by MSContainerControl::abortWaiting(), MSVehicle::addContainer(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSContainerControl::erase(), getParameterWindow(), MSDevice_Container::notifyLeave(), MSEdge::container_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::MSContainerStage_Waiting::routeOutput(), MSContainerControl::setTranship(), MSContainerControl::unsetTranship(), 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 |
Returns the destination after the current destination.
Definition at line 601 of file MSContainer.h.
|
inlineinherited |
Definition at line 677 of file MSContainer.h.
References MSContainer::myParameter.
Referenced by 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 136 of file GUIContainer.cpp.
References GUIParameterTableWindow::closeBuilding(), getAngle(), MSContainer::getCurrentStageDescription(), MSContainer::getDestination(), MSContainer::getEdge(), getEdgePos(), MSContainer::getFromEdge(), MSContainer::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 121 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 MSContainer.
Definition at line 330 of file GUIContainer.cpp.
References MSContainer::DRIVING, MSContainer::getCurrentStageType(), MSContainer::getEdge(), getEdgePos(), MSEdge::getLanes(), MSContainer::getPosition(), MSLane::getShape(), MSContainer::isWaiting4Vehicle(), myLock, myPositionInVehicle, PositionVector::positionAtOffset2D(), SVC_SHIP, MSContainer::WAITING, and WATER_WAY_OFFSET.
Referenced by drawGL(), and getCenteringBoundary().
|
virtual |
the current speed of the container
Reimplemented from MSContainer.
Definition at line 359 of file GUIContainer.cpp.
References MSContainer::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(), GUIPerson::drawAction_drawWalkingareaPath(), drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::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 681 of file MSContainer.h.
References MSContainer::myVType.
Referenced by drawAction_drawAsImage(), drawAction_drawAsPoly(), and setFunctionalColor().
|
virtual |
the time this container spent waiting in seconds
Reimplemented from MSContainer.
Definition at line 352 of file GUIContainer.cpp.
References MSContainer::getWaitingSeconds(), and myLock.
Referenced by getColorValue(), and getParameterWindow().
|
inlineinherited |
Whether the container waits for a vehicle.
Definition at line 673 of file MSContainer.h.
Referenced by getColorValue(), getPosition(), MSContainer::MSContainerStage_Driving::getStageDescription(), and MSContainer::MSContainerStage_Driving::getWaitingTime().
|
inlineinherited |
Whether the container waits for a vehicle of the line specified.
Definition at line 668 of file MSContainer.h.
Definition at line 490 of file MSContainer.cpp.
References MSContainer::myPlan, MSContainer::myStep, MSEdge::removeContainer(), and SUMOReal.
Referenced by MSContainer::MSContainerStage_Tranship::moveToNextEdge(), MSDevice_Container::notifyLeave(), and MSDevice_Container::notifyMove().
|
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 552 of file MSContainer.cpp.
References MSContainer::getDesiredDepart(), MSContainer::MSContainerStage_Waiting::getUntil(), MSContainer::myPlan, and MSContainer::WAITING.
Referenced by MSContainerControl::erase().
|
private |
sets the color according to the currente settings
Definition at line 255 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 510 of file MSContainer.cpp.
|
private |
sets the color according to the current scheme index and some vehicle function
Definition at line 264 of file GUIContainer.cpp.
References RGBColor::fromHSV(), getAngle(), MSContainer::getParameter(), MSContainer::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 118 of file GUIContainer.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 545 of file MSContainer.cpp.
References MSContainer::myPlan.
Referenced by MSContainerControl::erase().
|
inherited |
the last destination of the route of the container
Definition at line 556 of file MSContainer.h.
Referenced by MSContainer::MSContainer().
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 container
Definition at line 560 of file MSContainer.h.
Referenced by MSContainer::getDesiredDepart(), MSContainer::getID(), MSContainer::getParameter(), and MSContainer::~MSContainer().
|
protectedinherited |
the plan of the container
Definition at line 567 of file MSContainer.h.
Referenced by MSContainer::MSContainer(), MSContainer::proceed(), MSContainer::routeOutput(), MSContainer::tripInfoOutput(), and MSContainer::~MSContainer().
|
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 570 of file MSContainer.h.
Referenced by MSContainer::getCurrentStage(), MSContainer::MSContainer(), and MSContainer::proceed().
|
protectedinherited |
This container's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 564 of file MSContainer.h.
Referenced by MSContainer::getVehicleType().
|
protectedinherited |
Whether events shall be written.
Definition at line 573 of file MSContainer.h.
|
staticinherited |
the offset for computing container positions when standing at an edge
Definition at line 78 of file MSContainer.h.
Referenced by MSContainer::MSContainerStage_Driving::getPosition(), and MSContainer::MSContainerStage_Waiting::getPosition().
|
staticinherited |
associates object types with strings
Definition at line 99 of file GUIGlObject.h.