SUMO - Simulation of Urban MObility
|
A MSLane extended for visualisation purposes. More...
#include <GUILaneWrapper.h>
Public Member Functions | |
void | drawCrossties (const GUIVisualizationSettings &s) const |
draw crossties for railroads | |
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const |
Draws additional, user-triggered visualisations. | |
void | drawMarkings (const GUIVisualizationSettings &s) const |
draw lane borders and white markings | |
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
SUMOReal | firstWaitingTime () const |
bool | forLane (const MSLane &lane) const |
Returns true if the given lane id the lane this wrapper wraps the geometry of. | |
SUMOReal | getEdgeLaneNumber () const |
SUMOReal | getHalfWidth () const |
const MSLane & | getLane () const |
Returns the represented lane. | |
unsigned int | getLinkNumber () const |
Returns the number of links. | |
const PositionVector & | getShape () const |
const std::vector< SUMOReal > & | getShapeLengths () const |
const std::vector< SUMOReal > & | getShapeRotations () const |
SUMOReal | getStoredEdgeTravelTime () const |
Returns the stored traveltime for the edge of this lane. | |
GUILaneWrapper (MSLane &lane, const PositionVector &shape, unsigned int index) | |
Constructor. | |
virtual | ~GUILaneWrapper () |
Destructor. | |
inherited from GUIGlObject | |
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. | |
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own parameter window. | |
Boundary | getCenteringBoundary () const |
Returns the boundary to which the view shall be centered in order to show the object. | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. | |
Current state retrieval | |
SUMOReal | getNormedHBEFA_CO2Emissions () const |
Returns the sum of last step CO2 emissions normed by the lane's length. | |
SUMOReal | getNormedHBEFA_COEmissions () const |
Returns the sum of last step CO emissions normed by the lane's length. | |
SUMOReal | getNormedHBEFA_PMxEmissions () const |
Returns the sum of last step PMx emissions normed by the lane's length. | |
SUMOReal | getNormedHBEFA_NOxEmissions () const |
Returns the sum of last step NOx emissions normed by the lane's length. | |
SUMOReal | getNormedHBEFA_HCEmissions () const |
Returns the sum of last step HC emissions normed by the lane's length. | |
SUMOReal | getNormedHBEFA_FuelConsumption () const |
Returns the sum of last step fuel comsumption normed by the lane's length. | |
Atomar getter methods | |
const std::string & | getFullName () const |
Returns the full name appearing in the tool tip. | |
GUIGlID | getGlID () const |
Returns the numerical id of the object. | |
interfaces to be implemented by derived classes | |
const std::string & | getMicrosimID () const |
Returns the id of the object as known to microsim. | |
void | setMicrosimID (const std::string &newID) |
Changes the microsimID of the object (happens in NETEDIT) | |
GUIGlObjectType | getType () const |
Returns the type of the object as coded in GUIGlObjectType. | |
Parameter table window I/O | |
void | addParameterTable (GUIParameterTableWindow *w) |
Lets this object know a parameter window showing the object's values was opened. | |
void | removeParameterTable (GUIParameterTableWindow *w) |
Lets this object know a parameter window showing the object's values was closed. |
Static Public Attributes | |
static StringBijection < GUIGlObjectType > | TypeNames |
associates object types with strings |
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. | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. | |
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. | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. |
Private Member Functions | |
void | drawArrows () const |
void | drawLane2LaneConnections () const |
void | drawLinkNo () const |
helper methods | |
void | drawLinkRules (const GUINet &net) const |
void | drawTLSLinkNo (const GUINet &net) const |
SUMOReal | getColorValue (size_t activeScheme) const |
gets the color value according to the current scheme index | |
GUILaneWrapper (const GUILaneWrapper &) | |
Invalidated copy constructor. | |
GUILaneWrapper & | operator= (const GUILaneWrapper &) |
Invalidated assignment operator. | |
void | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings |
Private Attributes | |
SUMOReal | myHalfLaneWidth |
Half of lane width, for speed-up. | |
unsigned int | myIndex |
The lane index. | |
MSLane & | myLane |
The assigned lane. | |
SUMOReal | myQuarterLaneWidth |
Quarter of lane width, for speed-up. | |
const PositionVector & | myShape |
The shape of the lane. | |
std::vector< SUMOReal > | myShapeLengths |
The lengths of the shape parts. | |
std::vector< SUMOReal > | myShapeRotations |
The rotations of the shape parts. |
A MSLane extended for visualisation purposes.
The extensions consist of information about the position of the lane and it's direction. Further, a mechanism to avoid concurrent visualisation and simulation what may cause problems when vehicles disappear is implemented using a mutex.
Definition at line 69 of file GUILaneWrapper.h.
GUILaneWrapper::GUILaneWrapper | ( | MSLane & | lane, |
const PositionVector & | shape, | ||
unsigned int | index | ||
) |
Constructor.
[in] | lane | The lane to be represented |
[in] | shape | The shape of the lane (!!! this is a member of the lane - no need to give it additionally) |
Definition at line 77 of file GUILaneWrapper.cpp.
References Position::distanceTo2D(), MSLane::getWidth(), myHalfLaneWidth, myLane, myQuarterLaneWidth, myShape, myShapeLengths, myShapeRotations, RAD2DEG, SUMOReal, Position::x(), and Position::y().
|
virtual |
Destructor.
Definition at line 101 of file GUILaneWrapper.cpp.
|
private |
Invalidated copy constructor.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 187 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 125 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUINet::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 134 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), and GUIEdge::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 115 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUINet::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 166 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUINet::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 144 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(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), and GUIEdge::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 178 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 157 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUINet::getPopUpMenu().
|
private |
Definition at line 268 of file GUILaneWrapper.cpp.
References GLHelper::drawBoxLine(), GLHelper::drawTriangleAtEnd(), getLane(), MSLane::getLinkCont(), getLinkNumber(), getShape(), LINKDIR_LEFT, LINKDIR_NODIR, LINKDIR_PARTLEFT, LINKDIR_PARTRIGHT, LINKDIR_RIGHT, LINKDIR_STRAIGHT, LINKDIR_TURN, LINKSTATE_TL_OFF_NOSIGNAL, PI, SUMOReal, Position::x(), and Position::y().
Referenced by drawGL().
void GUILaneWrapper::drawCrossties | ( | const GUIVisualizationSettings & | s | ) | const |
draw crossties for railroads
Definition at line 507 of file GUILaneWrapper.cpp.
References getShape(), MSGlobals::gUseMesoSim, myShapeLengths, myShapeRotations, setColor(), and SUMOReal.
Referenced by drawGL().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 381 of file GUILaneWrapper.cpp.
References drawArrows(), GLHelper::drawBoxLines(), drawCrossties(), GUIVehicle::drawGL(), drawLane2LaneConnections(), GLHelper::drawLine(), GUIVisualizationSettings::drawLinkJunctionIndex, drawLinkNo(), drawLinkRules(), GUIVisualizationSettings::drawLinkTLIndex, drawMarkings(), drawTLSLinkNo(), MSEdge::EDGEFUNCTION_INTERNAL, MSLane::getEdge(), GUIGlObject::getGlID(), MSNet::getInstance(), getLane(), MSEdge::getPurpose(), GUIGlObject::getType(), MSLane::getVehiclesSecure(), GLO_JUNCTION, MSGlobals::gUseMesoSim, isRailway(), GUIVisualizationSettings::laneWidthExaggeration, GUIVisualizationSettings::minVehicleSize, myHalfLaneWidth, myLane, myQuarterLaneWidth, myShape, myShapeLengths, myShapeRotations, MSLane::releaseVehicles(), GUIVisualizationSettings::scale, setColor(), GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLinkDecals, and SUMOReal.
|
inlinevirtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIVehicle, and GUIPerson.
Definition at line 182 of file GUIGlObject.h.
References UNUSED_PARAMETER.
|
private |
Definition at line 329 of file GUILaneWrapper.cpp.
References GLHelper::drawTriangleAtEnd(), getLane(), MSLane::getLinkCont(), getLinkNumber(), getShape(), MSLane::getShape(), LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MAJOR, LINKSTATE_MINOR, LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_OFF_BLINKING, LINKSTATE_TL_OFF_NOSIGNAL, LINKSTATE_TL_RED, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, SUMOReal, Position::x(), and Position::y().
Referenced by drawGL().
|
private |
helper methods
Definition at line 112 of file GUILaneWrapper.cpp.
References GLHelper::drawText(), getLane(), getLinkNumber(), getShape(), MSLane::getWidth(), myLane, PI, SUMOReal, toString(), Position::x(), and Position::y().
Referenced by drawGL().
|
private |
Definition at line 170 of file GUILaneWrapper.cpp.
References GUIGlObject::getGlID(), getLane(), MSLane::getLinkCont(), getLinkNumber(), GUINet::getLinkTLID(), getShape(), MSLink::getState(), MSLane::getWidth(), LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MAJOR, LINKSTATE_MINOR, LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_OFF_BLINKING, LINKSTATE_TL_OFF_NOSIGNAL, LINKSTATE_TL_RED, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, myHalfLaneWidth, myLane, PI, SUMOReal, Position::x(), and Position::y().
Referenced by drawGL().
void GUILaneWrapper::drawMarkings | ( | const GUIVisualizationSettings & | s | ) | const |
draw lane borders and white markings
Definition at line 467 of file GUILaneWrapper.cpp.
References GLHelper::drawBoxLines(), getHalfWidth(), getShape(), getShapeLengths(), getShapeRotations(), GLO_EDGE, MSGlobals::gUseMesoSim, myHalfLaneWidth, myIndex, myQuarterLaneWidth, myShapeLengths, myShapeRotations, setColor(), SUMO_const_laneOffset, and SUMOReal.
Referenced by drawGL().
|
inherited |
Definition at line 214 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), and GUIEdge::drawGL().
|
private |
Definition at line 139 of file GUILaneWrapper.cpp.
References GLHelper::drawText(), getLane(), getLinkNumber(), GUINet::getLinkTLIndex(), getShape(), MSLane::getWidth(), myLane, PI, SUMOReal, toString(), Position::x(), and Position::y().
Referenced by drawGL().
SUMOReal GUILaneWrapper::firstWaitingTime | ( | ) | const |
Definition at line 608 of file GUILaneWrapper.cpp.
References myLane, and MSLane::myVehicles.
Referenced by getColorValue().
Returns true if the given lane id the lane this wrapper wraps the geometry of.
Definition at line 105 of file GUILaneWrapper.cpp.
References myLane.
Referenced by GUIEdge::lane_wrapper_finder::operator()().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 572 of file GUILaneWrapper.cpp.
References Boundary::add(), Boundary::grow(), and myShape.
|
private |
gets the color value according to the current scheme index
Definition at line 678 of file GUILaneWrapper.cpp.
References MSLane::allowsVehicleClass(), firstWaitingTime(), MSLane::getEdge(), getEdgeLaneNumber(), GUIGlObject::getGlID(), MSLane::getHarmonoise_NoiseEmissions(), MSNet::getInstance(), getLane(), MSLane::getLength(), getNormedHBEFA_CO2Emissions(), getNormedHBEFA_COEmissions(), getNormedHBEFA_FuelConsumption(), getNormedHBEFA_HCEmissions(), getNormedHBEFA_NOxEmissions(), getNormedHBEFA_PMxEmissions(), MSLane::getOccupancy(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), GUIGlObject::getType(), MSNet::getWeightsStorage(), GLO_EDGE, gSelected, GUISelectedStorage::isSelected(), MSEdgeWeightsStorage::knowsTravelTime(), MSEdgeWeightsStorage::retrieveExistingTravelTime(), SUMOReal, and SVC_PASSENGER.
Referenced by setColor().
SUMOReal GUILaneWrapper::getEdgeLaneNumber | ( | ) | const |
Definition at line 616 of file GUILaneWrapper.cpp.
References MSLane::getEdge(), MSEdge::getLanes(), myLane, and SUMOReal.
Referenced by getColorValue().
|
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(), 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(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIPerson::drawGLAdditional(), GUIVehicle::drawGLAdditional(), drawLinkRules(), getColorValue(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUIVehicle::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), and GUIGlObject::~GUIGlObject().
|
inline |
Definition at line 153 of file GUILaneWrapper.h.
References myHalfLaneWidth.
Referenced by drawMarkings().
|
inline |
Returns the represented lane.
Definition at line 128 of file GUILaneWrapper.h.
References myLane.
Referenced by drawArrows(), drawGL(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), getColorValue(), and getStoredEdgeTravelTime().
unsigned int GUILaneWrapper::getLinkNumber | ( | ) | const |
Returns the number of links.
Definition at line 590 of file GUILaneWrapper.cpp.
References MSLane::getLinkCont(), and myLane.
Referenced by drawArrows(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), and drawTLSLinkNo().
|
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().
SUMOReal GUILaneWrapper::getNormedHBEFA_CO2Emissions | ( | ) | const |
Returns the sum of last step CO2 emissions normed by the lane's length.
Definition at line 623 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_CO2Emissions(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
SUMOReal GUILaneWrapper::getNormedHBEFA_COEmissions | ( | ) | const |
Returns the sum of last step CO emissions normed by the lane's length.
Definition at line 629 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_COEmissions(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
SUMOReal GUILaneWrapper::getNormedHBEFA_FuelConsumption | ( | ) | const |
Returns the sum of last step fuel comsumption normed by the lane's length.
Definition at line 653 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_FuelConsumption(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
SUMOReal GUILaneWrapper::getNormedHBEFA_HCEmissions | ( | ) | const |
Returns the sum of last step HC emissions normed by the lane's length.
Definition at line 647 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_HCEmissions(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
SUMOReal GUILaneWrapper::getNormedHBEFA_NOxEmissions | ( | ) | const |
Returns the sum of last step NOx emissions normed by the lane's length.
Definition at line 641 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_NOxEmissions(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
SUMOReal GUILaneWrapper::getNormedHBEFA_PMxEmissions | ( | ) | const |
Returns the sum of last step PMx emissions normed by the lane's length.
Definition at line 635 of file GUILaneWrapper.cpp.
References MSLane::getHBEFA_PMxEmissions(), MSLane::getLength(), and myLane.
Referenced by getColorValue().
|
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 555 of file GUILaneWrapper.cpp.
References GUIParameterTableWindow::closeBuilding(), getAllowedVehicleClassNames(), MSLane::getEdge(), MSLane::getLength(), MSLane::getPermissions(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSEdge::getStreetName(), GUIParameterTableWindow::mkItem(), and myLane.
|
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 535 of file GUILaneWrapper.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUISUMOAbstractView::getPositionInformation(), MSLane::interpolateGeometryPosToLanePos(), myLane, myShape, PositionVector::nearest_offset_to_point2D(), SUMOReal, and toString().
const PositionVector & GUILaneWrapper::getShape | ( | ) | const |
Definition at line 584 of file GUILaneWrapper.cpp.
References myShape.
Referenced by GUIVehicle::draw(), drawArrows(), drawCrossties(), GUIEdge::drawGL(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawMarkings(), drawTLSLinkNo(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), and GUIInductLoop::MyWrapper::MyWrapper().
const std::vector< SUMOReal > & GUILaneWrapper::getShapeLengths | ( | ) | const |
Definition at line 602 of file GUILaneWrapper.cpp.
References myShapeLengths.
Referenced by GUIVehicle::draw(), and drawMarkings().
const std::vector< SUMOReal > & GUILaneWrapper::getShapeRotations | ( | ) | const |
Definition at line 596 of file GUILaneWrapper.cpp.
References myShapeRotations.
Referenced by GUIVehicle::draw(), and drawMarkings().
SUMOReal GUILaneWrapper::getStoredEdgeTravelTime | ( | ) | const |
Returns the stored traveltime for the edge of this lane.
Definition at line 665 of file GUILaneWrapper.cpp.
References MSLane::getEdge(), MSNet::getInstance(), getLane(), MSNet::getWeightsStorage(), MSEdgeWeightsStorage::knowsTravelTime(), MSEdgeWeightsStorage::retrieveExistingTravelTime(), STEPS2TIME, and SUMOReal.
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::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIVehicle::drawGLAdditional(), getColorValue(), GUISUMOAbstractView::getObjectAtPosition(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), LayeredRTree::selectLayer(), and GUISelectedStorage::toggleSelection().
|
private |
Invalidated assignment operator.
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 193 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
private |
sets the color according to the currente settings
Definition at line 659 of file GUILaneWrapper.cpp.
References GUIColorer::getActive(), GUIColorScheme::getColor(), getColorValue(), GUIColorer::getScheme(), and GUIVisualizationSettings::laneColorer.
Referenced by drawCrossties(), drawGL(), and drawMarkings().
|
inherited |
Changes the microsimID of the object (happens in NETEDIT)
Definition at line 108 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
|
protectedinherited |
Definition at line 202 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
private |
Half of lane width, for speed-up.
Definition at line 240 of file GUILaneWrapper.h.
Referenced by drawGL(), drawLinkRules(), drawMarkings(), getHalfWidth(), and GUILaneWrapper().
|
private |
|
private |
The assigned lane.
Definition at line 228 of file GUILaneWrapper.h.
Referenced by drawGL(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), firstWaitingTime(), forLane(), getEdgeLaneNumber(), getLane(), getLinkNumber(), getNormedHBEFA_CO2Emissions(), getNormedHBEFA_COEmissions(), getNormedHBEFA_FuelConsumption(), getNormedHBEFA_HCEmissions(), getNormedHBEFA_NOxEmissions(), getNormedHBEFA_PMxEmissions(), getParameterWindow(), getPopUpMenu(), and GUILaneWrapper().
|
private |
Quarter of lane width, for speed-up.
Definition at line 243 of file GUILaneWrapper.h.
Referenced by drawGL(), drawMarkings(), and GUILaneWrapper().
|
private |
The shape of the lane.
Definition at line 231 of file GUILaneWrapper.h.
Referenced by drawGL(), getCenteringBoundary(), getPopUpMenu(), getShape(), and GUILaneWrapper().
|
private |
The lengths of the shape parts.
Definition at line 237 of file GUILaneWrapper.h.
Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeLengths(), and GUILaneWrapper().
|
private |
The rotations of the shape parts.
Definition at line 234 of file GUILaneWrapper.h.
Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeRotations(), and GUILaneWrapper().
|
staticinherited |
associates object types with strings
Definition at line 99 of file GUIGlObject.h.