Eclipse SUMO - Simulation of Urban MObility
|
#include <GUITrafficLightLogicWrapper.h>
Data Structures | |
class | GUITrafficLightLogicWrapperPopupMenu |
Public Member Functions | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. More... | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const | |||
draw name of item More... | ||||
GUITrafficLightLogicWrapper (MSTLLogicControl &control, MSTrafficLightLogic &tll) | ||||
Constructor. More... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click More... | ||||
virtual void | removeActiveAddVisualisation (GUISUMOAbstractView *const, int) | |||
remove additional user-griggered visualisations More... | ||||
~GUITrafficLightLogicWrapper () | ||||
Destructor. More... | ||||
getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
virtual 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... | ||||
FXIcon * | getGLIcon () const | |||
get icon associated with this GL Object More... | ||||
interfaces to be implemented by derived classes | ||||
virtual void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) More... | ||||
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. More... | ||||
GUIGlObjectType | getType () const | |||
Returns the type of the object as coded in GUIGlObjectType. More... | ||||
virtual double | getClickPriority () const | |||
Returns the priority of receiving mouse clicks. More... | ||||
bool | isBlocked () const | |||
get blocking status More... | ||||
void | setBlocked (const bool state=true) | |||
set blocking status More... | ||||
virtual double | getExaggeration (const GUIVisualizationSettings &s) const | |||
return exaggeration associated with this GLObject More... | ||||
virtual bool | isGLObjectLocked () const | |||
check if element is locked (Currently used only in netedit) More... | ||||
virtual void | markAsFrontElement () | |||
mark element as front element (Currently used only in netedit) More... | ||||
virtual void | deleteGLObject () | |||
delete GLObject (Currently used only in netedit) More... | ||||
virtual void | selectGLObject () | |||
select GLObject (Currently used only in netedit) More... | ||||
virtual void | updateGLObject () | |||
update GLObject (geometry, ID, etc.) (optional) More... | ||||
virtual double | getColorValue (const GUIVisualizationSettings &, int) const | |||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
void | addParameterTable (GUIParameterTableWindow *w) | |||
void | removeParameterTable (GUIParameterTableWindow *w) | |||
Lets this object know a parameter window showing the object's values was closed. More... | ||||
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static const double | INVALID_PRIORITY |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
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 | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. More... | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, const GUIMainWindow &app) const |
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... | |
Private Member Functions | |
std::string | createFullName () const |
create full name More... | |
Private Attributes | |
bool | myAmBlocked = false |
whether the object can be deleted More... | |
std::string | myFullName |
full name of GL Object More... | |
const GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
FXIcon * | myIcon |
icon associatd with this GL Object More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
vector for TypeNames Initializer More... | |
inherited from GUIGlObject | |
MSTLLogicControl & | myTLLogicControl |
Reference to the according tls. More... | |
MSTrafficLightLogic & | myTLLogic |
The wrapped tl-logic. More... | |
GUIMainWindow * | myApp |
The main application. More... | |
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... | |
const std::string | getOptionalName () const |
Returns the value for generic parameter 'name' or ''. More... | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. More... | |
void | begin2TrackPhases () |
Builds a GUITLLogicPhasesTrackerWindow which will receive new phases. More... | |
void | showPhases () |
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram. More... | |
void | switchTLSLogic (int to) |
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram. More... | |
int | getLinkIndex (const MSLink *const link) const |
Returns the index of the given link within the according tls. More... | |
MSTrafficLightLogic & | getTLLogic () const |
MSTrafficLightLogic * | getActiveTLLogic () const |
int | getCurrentPhase () const |
std::string | getCurrentPhaseName () const |
int | getCurrentDurationSeconds () const |
int | getCurrentMinDurSeconds () const |
int | getCurrentMaxDurSeconds () const |
int | getCurrentEarliestEndSeconds () const |
int | getCurrentLatestEndSeconds () const |
int | getDefaultCycleTimeSeconds () const |
int | getCurrentTimeInCycleSeconds () const |
int | getRunningDurationSeconds () const |
This class is responsible for the visualisation of tl-logics and the interaction with them.
Definition at line 45 of file GUITrafficLightLogicWrapper.h.
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapper | ( | MSTLLogicControl & | control, |
MSTrafficLightLogic & | tll | ||
) |
Constructor.
Definition at line 151 of file GUITrafficLightLogicWrapper.cpp.
GUITrafficLightLogicWrapper::~GUITrafficLightLogicWrapper | ( | ) |
Destructor.
Definition at line 157 of file GUITrafficLightLogicWrapper.cpp.
|
inherited |
Definition at line 368 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
void GUITrafficLightLogicWrapper::begin2TrackPhases | ( | ) |
Builds a GUITLLogicPhasesTrackerWindow which will receive new phases.
Definition at line 215 of file GUITrafficLightLogicWrapper.cpp.
References GUITLLogicPhasesTrackerWindow::create(), Named::getID(), MSNet::getInstance(), MSTLLogicControl::getPhaseDef(), myApp, and myTLLogic.
Referenced by GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 406 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.
|
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 285 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, RECENTERVIEW, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
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 294 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), MID_COPY_NAME, MID_COPY_TYPED_NAME, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), and GUIPolygon::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 273 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIMainWindow::getBoldFont(), GUIGlObject::getFullName(), OptionsCont::getOptions(), MID_COPY_TEST_COORDINATES, GUIGlObject::myIcon, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
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 335 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GEOHACK, GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), GUIMainWindow::getOnlineMaps(), GOOGLEMAPS, GUIGLObjectPopupMenu::insertMenuPaneChild(), MID_COPY_CURSOR_GEOPOSITION, MID_COPY_CURSOR_POSITION, MID_SHOW_GEOPOSITION_ONLINE, OSM, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
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 304 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), FLAG_MINUS, FLAG_PLUS, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), MID_ADDSELECT, MID_REMOVESELECT, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUIPerson::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 383 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), and TLF.
Referenced by GUIPointOfInterest::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 359 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, MID_MANIP, and TL.
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 317 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWPARS, and TL.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GNEDemandElementPlan::getPlanPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GUINet::getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type 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 326 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_SHOWTYPEPARS, and TL.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIPerson::getPopUpMenu().
|
privateinherited |
create full name
Definition at line 429 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
virtualinherited |
delete GLObject (Currently used only in netedit)
Reimplemented in GNENetworkElement, GNEWalkingArea, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEDemandElement, GNEGenericData, and GNEAdditional.
Definition at line 220 of file GUIGlObject.cpp.
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 306 of file GUITrafficLightLogicWrapper.cpp.
References GLHelper::drawFilledCircle(), GUIVisualizationSettings::gaming, MSTrafficLightLogic::getCurrentPhaseDef(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getInstance(), MSTrafficLightLogic::getLanesAt(), GUIVisualizationSettings::getLinkColor(), MSTrafficLightLogic::getPhases(), MSPhaseDefinition::getState(), GLO_MAX, LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_RED, LINKSTATE_TL_YELLOW_MAJOR, myTLLogic, GLHelper::popMatrix(), GLHelper::pushMatrix(), RAD2DEG, GLHelper::setColor(), Position::x(), and Position::y().
|
virtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIPerson, GUIContainer, and GUIBaseVehicle.
Definition at line 252 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 435 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show().
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNECrossing::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GNEJunction::drawJunctionName(), GNELaneAreaDetector::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GUIBaseVehicle::drawOnPos(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEPoly::drawPolygonNameAndType().
MSTrafficLightLogic * GUITrafficLightLogicWrapper::getActiveTLLogic | ( | ) | const |
Definition at line 352 of file GUITrafficLightLogicWrapper.cpp.
References MSTLLogicControl::getActive(), Named::getID(), myTLLogic, and myTLLogicControl.
Referenced by getCurrentDurationSeconds(), getCurrentEarliestEndSeconds(), getCurrentLatestEndSeconds(), getCurrentMaxDurSeconds(), getCurrentMinDurSeconds(), getCurrentPhase(), getCurrentPhaseName(), getCurrentTimeInCycleSeconds(), getDefaultCycleTimeSeconds(), getPopUpMenu(), getRunningDurationSeconds(), and switchTLSLogic().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 267 of file GUITrafficLightLogicWrapper.cpp.
References Boundary::add(), MSTrafficLightLogic::getLaneVectors(), Boundary::grow(), and myTLLogic.
|
inlinevirtualinherited |
Returns the priority of receiving mouse clicks.
Reimplemented in GUIPolygon, GUIPointOfInterest, GUILane, and GUIEdge.
Definition at line 161 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUISUMOAbstractView::getObjectAtPosition(), and ComparatorClickPriority::operator()().
|
inlinevirtualinherited |
Reimplemented in GUIPerson, GUILane, GUIEdge, GUIContainer, GUIBaseVehicle, GNELane, GNEJunction, GNETAZRelData, GNEEdgeRelData, GNEEdgeData, GUIMEVehicle, GUIVehicle, and GUIJunctionWrapper.
Definition at line 203 of file GUIGlObject.h.
Referenced by GNEPerson::drawGL().
int GUITrafficLightLogicWrapper::getCurrentDurationSeconds | ( | ) | const |
Definition at line 367 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentEarliestEndSeconds | ( | ) | const |
Definition at line 382 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), MSTrafficLightLogic::getEarliestEnd(), STEPS2TIME, and MSPhaseDefinition::UNSPECIFIED_DURATION.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentLatestEndSeconds | ( | ) | const |
Definition at line 388 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), MSTrafficLightLogic::getLatestEnd(), STEPS2TIME, and MSPhaseDefinition::UNSPECIFIED_DURATION.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentMaxDurSeconds | ( | ) | const |
Definition at line 377 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentMinDurSeconds | ( | ) | const |
Definition at line 372 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentPhase | ( | ) | const |
Definition at line 357 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and MSTrafficLightLogic::getCurrentPhaseIndex().
Referenced by getParameterWindow().
std::string GUITrafficLightLogicWrapper::getCurrentPhaseName | ( | ) | const |
Definition at line 362 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), MSTrafficLightLogic::getCurrentPhaseDef(), and MSPhaseDefinition::getName().
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getCurrentTimeInCycleSeconds | ( | ) | const |
Definition at line 399 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
int GUITrafficLightLogicWrapper::getDefaultCycleTimeSeconds | ( | ) | const |
Definition at line 394 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
|
inlinevirtualinherited |
return exaggeration associated with this GLObject
Reimplemented in GUIPolygon, GUIPointOfInterest, GNEPoly, GNEPOI, GUIPerson, GUIE2Collector::MyWrapper, GUIContainer, GNELane, GNEJunction, GNEEdge, GNEConnection, GNEVehicle, GNEStopPlan, GNEStop, GNERoute, GNEPerson, GNEContainer, GNETAZ, GNEAdditional, GUIMEVehicle, GUIMEInductLoop::MyWrapper, GUITriggeredRerouter::GUITriggeredRerouterEdge, GUITriggeredRerouter, GUIParkingArea, GUIOverheadWireClamp, GUIOverheadWire, GUILaneSpeedTrigger, GUIJunctionWrapper, GUIInstantInductLoop::MyWrapper, GUIE3Collector::MyWrapper, GUIDetectorWrapper, GUIChargingStation, GUICalibrator, GUIBusStop, and GUIBaseVehicle.
Definition at line 176 of file GUIGlObject.h.
References UNUSED_PARAMETER.
Referenced by GUIPointOfInterest::checkDraw(), GUIPolygon::checkDraw(), GNEWalkingArea::drawGL(), GUIPointOfInterest::drawInnerPOI(), and GUIPolygon::drawInnerPolygon().
|
inlineinherited |
Definition at line 94 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GNENetworkElement::getShapeEditedPopUpMenu(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIParameterTableWindow::onLeftBtnPress(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
get icon associated with this GL Object
Definition at line 193 of file GUIGlObject.cpp.
References GUIGlObject::myIcon.
Referenced by GNENetworkElement::getShapeEditedPopUpMenu().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 104 of file GUIGlObject.h.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIJunctionWrapper::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIPerson::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GNEViewNet::getToolTipID(), GUITransportableControl::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIVehicle::isSelected(), GUIContainer::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), ComparatorClickPriority::operator()(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIViewTraffic::showLaneReachability(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
int GUITrafficLightLogicWrapper::getLinkIndex | ( | const MSLink *const | link | ) | const |
Returns the index of the given link within the according tls.
Definition at line 300 of file GUITrafficLightLogicWrapper.cpp.
References MSTrafficLightLogic::getLinkIndex(), and myTLLogic.
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 143 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEViewNet::askMergeJunctions(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GNEInternalLane::drawGL(), GUIGlObject::drawName(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEContainer::getAttribute(), GNEDistribution::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEWalkingArea::getAttribute(), GNEDetector::getDetectorAttribute(), GNEWalkingArea::getNBWalkingArea(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEMultiEntryExitDetector::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNETractionSubstation::getParentName(), GNEVariableSpeedSign::getParentName(), GNEDistribution::getParentName(), GNEVType::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNEChange_TLS::GNEChange_TLS(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNENetHelper::AttributeCarriers::retrieveConnection(), GNENetHelper::AttributeCarriers::retrieveCrossing(), GNENetHelper::AttributeCarriers::retrieveInternalLane(), GNENetHelper::AttributeCarriers::retrieveLane(), GNENetHelper::AttributeCarriers::retrieveWalkingArea(), GNEStop::setStopMicrosimID(), GNENet::splitEdge(), and GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements().
|
virtual |
Returns the value for generic parameter 'name' or ''.
Reimplemented from GUIGlObject.
Definition at line 281 of file GUITrafficLightLogicWrapper.cpp.
References Parameterised::getParameter(), and myTLLogic.
|
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 237 of file GUITrafficLightLogicWrapper.cpp.
References GUIParameterTableWindow::closeBuilding(), MSRailSignal::getBlockingVehicleIDs(), MSRailSignal::getConstraintInfo(), getCurrentDurationSeconds(), getCurrentEarliestEndSeconds(), getCurrentLatestEndSeconds(), getCurrentMaxDurSeconds(), getCurrentMinDurSeconds(), getCurrentPhase(), getCurrentPhaseName(), getCurrentTimeInCycleSeconds(), getDefaultCycleTimeSeconds(), Named::getID(), MSTrafficLightLogic::getLogicType(), MSRailSignal::getPriorityVehicleIDs(), MSTrafficLightLogic::getProgramID(), MSRailSignal::getRivalVehicleIDs(), getRunningDurationSeconds(), GUIParameterTableWindow::mkItem(), myTLLogic, TL, and toString().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEPoly, GNEPOI, GUILane, GNELane, GNEWalk, GNEVType, GNEVehicle, GNETransport, GNETranship, GNEStopPlan, GNEStop, GNERoute, GNERide, GNEPersonTrip, GNEPerson, GNEDistribution, GNEContainer, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETractionSubstation, GNETAZSourceSink, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEParkingSpace, GNEParkingAreaReroute, GNEMultiEntryExitDetector, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, and GNEAccess.
Definition at line 187 of file GUIGlObject.cpp.
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 161 of file GUITrafficLightLogicWrapper.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), FLAG_MINUS, MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), getActiveTLLogic(), MSTLLogicControl::TLSLogicVariants::getAllLogics(), MSTrafficLightLogic::getCurrentPhaseDef(), MSTrafficLightLogic::getCurrentPhaseIndex(), GUIIconSubSys::getIcon(), Named::getID(), MSPhaseDefinition::getName(), MSTLLogicControl::TLSLogicVariants::isActive(), MID_SHOW_DETECTORS, MID_SHOWPHASES, MID_SWITCH, MID_SWITCH_OFF, MID_TRACKPHASES, myApp, myTLLogic, myTLLogicControl, MSActuatedTrafficLightLogic::showDetectors(), MSDelayBasedTrafficLightLogic::showDetectors(), NEMALogic::showDetectors(), TL, TLF, and toString().
int GUITrafficLightLogicWrapper::getRunningDurationSeconds | ( | ) | const |
Definition at line 404 of file GUITrafficLightLogicWrapper.cpp.
References getActiveTLLogic(), and STEPS2TIME.
Referenced by getParameterWindow().
|
inline |
Definition at line 108 of file GUITrafficLightLogicWrapper.h.
References myTLLogic.
Referenced by GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowDetectors().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 156 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIViewObjectsHandler::addElementUnderCursor(), GUIViewObjectsHandler::addGeometryPointUnderCursor(), GUIViewObjectsHandler::addPositionOverShape(), GUIGlObject::buildSelectionPopupEntry(), GNEViewNet::checkOverLockedElement(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNELaneAreaDetector::drawE2PartialJunction(), GNELaneAreaDetector::drawE2PartialLane(), GNEEntryExitDetector::drawE3Logo(), GNEEntryExitDetector::drawEntryLogo(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEStopPlan::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GNEDemandElement::drawJunctionLine(), GNEOverheadWire::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawListedAdditional(), GUIBaseVehicle::drawOnPos(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), GNERoute::drawRoutePartialJunction(), GNERoute::drawRoutePartialLane(), GNEAdditional::drawSquaredAdditional(), GNEDemandElement::drawStackLabel(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GNESelectorFrame::SelectionOperation::loadFromFile(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GNEJunction::setJunctionType(), GNEViewNetHelper::ViewObjectsSelector::updateGenericDataElements(), GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements(), GNEViewNetHelper::ViewObjectsSelector::updateShapeElements(), and GNEViewNetHelper::ViewObjectsSelector::updateTAZElements().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIBaseVehicle, GUIPerson, GUIEdge, GUIContainer, GUIMEVehicle, and GUIVehicle.
Definition at line 199 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
inlineinherited |
get blocking status
Definition at line 166 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
|
virtualinherited |
check if element is locked (Currently used only in netedit)
Reimplemented in GNENetworkElement, GNEDemandElement, and GNEAdditional.
Definition at line 207 of file GUIGlObject.cpp.
Referenced by GNEViewNetHelper::ViewObjectsSelector::filterLockedElements(), and GNEViewNet::processLeftButtonPressNetwork().
|
virtualinherited |
mark element as front element (Currently used only in netedit)
Reimplemented in GNENetworkElement, GNEDemandElement, and GNEAdditional.
Definition at line 214 of file GUIGlObject.cpp.
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 218 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
inlinevirtualinherited |
remove additional user-griggered visualisations
Reimplemented in GUIPerson, and GUIBaseVehicle.
Definition at line 215 of file GUIGlObject.h.
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 124 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::removePopupFromObject().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 374 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
select GLObject (Currently used only in netedit)
Reimplemented in GNENetworkElement, GNEDemandElement, GNEGenericData, and GNEAdditional.
Definition at line 226 of file GUIGlObject.cpp.
|
inlineinherited |
set blocking status
Definition at line 171 of file GUIGlObject.h.
References GUIGlObject::myAmBlocked.
Referenced by GUIGlObjectStorage::getObjectBlocking().
|
virtualinherited |
Changes the microsimID of the object.
Definition at line 244 of file GUIGlObject.cpp.
References GUIGlObjectStorage::changeName(), GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::setAdditionalID(), GNEDemandElement::setDemandElementID(), GNENetworkElement::setNetworkElementID(), GNENetHelper::AttributeCarriers::updateAdditionalID(), and GNENetHelper::AttributeCarriers::updateDemandElementID().
void GUITrafficLightLogicWrapper::showPhases | ( | ) |
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
Definition at line 226 of file GUITrafficLightLogicWrapper.cpp.
References GUITLLogicPhasesTrackerWindow::create(), myApp, myTLLogic, and GUITLLogicPhasesTrackerWindow::setBeginTime().
Referenced by GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases().
void GUITrafficLightLogicWrapper::switchTLSLogic | ( | int | to | ) |
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
Definition at line 287 of file GUITrafficLightLogicWrapper.cpp.
References GUINet::createTLWrapper(), MSTLLogicControl::get(), getActiveTLLogic(), MSTLLogicControl::TLSLogicVariants::getAllLogics(), GUINet::getGUIInstance(), Named::getID(), myTLLogic, myTLLogicControl, and MSTLLogicControl::switchTo().
Referenced by GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), and GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic().
|
virtualinherited |
update GLObject (geometry, ID, etc.) (optional)
Reimplemented in GNEWalkingArea, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEDemandElement, GNEGenericData, and GNEAdditional.
Definition at line 232 of file GUIGlObject.cpp.
|
staticprivateinherited |
vector for TypeNames Initializer
Definition at line 332 of file GUIGlObject.h.
|
staticinherited |
Definition at line 72 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), and GUIViewTraffic::stopTrack().
|
staticinherited |
Definition at line 73 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::filterContextObjects(), GUIEdge::getClickPriority(), and GUILane::getClickPriority().
|
privateinherited |
whether the object can be deleted
Definition at line 318 of file GUIGlObject.h.
Referenced by GUIGlObject::isBlocked(), and GUIGlObject::setBlocked().
|
private |
The main application.
Definition at line 165 of file GUITrafficLightLogicWrapper.h.
Referenced by begin2TrackPhases(), getPopUpMenu(), and showPhases().
|
privateinherited |
full name of GL Object
Definition at line 312 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 303 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID().
|
privateinherited |
The type of the object.
Definition at line 306 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getClickPriority(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
privateinherited |
icon associatd with this GL Object
Definition at line 315 of file GUIGlObject.h.
Referenced by GUIGlObject::buildPopupHeader(), and GUIGlObject::getGLIcon().
|
privateinherited |
ID of GL object.
Definition at line 309 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 321 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
private |
The wrapped tl-logic.
Definition at line 162 of file GUITrafficLightLogicWrapper.h.
Referenced by begin2TrackPhases(), drawGL(), getActiveTLLogic(), getCenteringBoundary(), getLinkIndex(), getOptionalName(), getParameterWindow(), getPopUpMenu(), getTLLogic(), showPhases(), and switchTLSLogic().
|
private |
Reference to the according tls.
Definition at line 159 of file GUITrafficLightLogicWrapper.h.
Referenced by getActiveTLLogic(), getPopUpMenu(), and switchTLSLogic().
|
staticinherited |
associates object types with strings
Definition at line 71 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GNESelectorFrame::SelectionOperation::loadFromFile(), and GNESelectorFrame::SelectionOperation::onCmdSave().