Eclipse SUMO - Simulation of Urban MObility
GNETLSEditorFrame Class Reference

#include <GNETLSEditorFrame.h>

Inheritance diagram for GNETLSEditorFrame:
[legend]
Collaboration diagram for GNETLSEditorFrame:
[legend]

Data Structures

class  TLSAttributes
 
class  TLSDefinition
 
class  TLSFile
 
class  TLSJunction
 FOX-declaration. More...
 
class  TLSModifications
 
class  TLSPhases
 

Public Member Functions

bool controlsEdge (GNEEdge *edge) const
 whether the given edge is controlled by the currently edited tlDef More...
 
void editTLS (const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 edits the traffic light for the given clicked junction More...
 
bool fixedDuration () const
 whether the current traffic light uses fixed phase durations More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNETLSEditorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void handleChange (GNEInternalLane *lane)
 update phase definition for the current traffic light and phase More...
 
void handleMultiChange (GNELane *lane, FXObject *obj, FXSelector sel, void *data)
 update phase definition for the current traffic light and phase More...
 
virtual void hide ()
 hide Frame More...
 
bool isTLSSaved ()
 check if modifications in TLS was saved More...
 
bool parseTLSPrograms (const std::string &file)
 parse TLS Programs from a file More...
 
void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show inspector frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNETLSEditorFrame ()
 Destructor. More...
 
FOX-callbacks

Called when the user presses the OK-Button

Note
saves any modifications
long onCmdOK (FXObject *, FXSelector, void *)
 
long onCmdCancel (FXObject *, FXSelector, void *)
 Called when the user presses the Cancel-button. More...
 
long onCmdToggle (FXObject *, FXSelector, void *)
 Called when the user presses the button Toogle. More...
 
long onCmdGuess (FXObject *, FXSelector, void *)
 Called when the user presses the button Guess. More...
 
long onCmdDefCreate (FXObject *, FXSelector, void *)
 Called when the user creates a TLS. More...
 
long onCmdDefDelete (FXObject *, FXSelector, void *)
 Called when the user deletes a TLS. More...
 
long onCmdDefOffset (FXObject *, FXSelector, void *)
 Called when the user changes the offset of a TLS. More...
 
long onCmdDefSwitch (FXObject *, FXSelector, void *)
 Called when the user switchs a TLS. More...
 
long onCmdDefRename (FXObject *, FXSelector, void *)
 Called when the user renames a TLS. More...
 
long onCmdDefSubRename (FXObject *, FXSelector, void *)
 Called when the user sub-renames a TLS. More...
 
long onCmdDefAddOff (FXObject *, FXSelector, void *)
 Called when the user adds a OFF. More...
 
long onCmdPhaseSwitch (FXObject *, FXSelector, void *)
 Called when the user switchs a Phase. More...
 
long onCmdPhaseCreate (FXObject *, FXSelector, void *)
 Called when the user creates a Phase. More...
 
long onCmdPhaseDelete (FXObject *, FXSelector, void *)
 Called when the user deletes a Phase. More...
 
long onCmdCleanup (FXObject *, FXSelector, void *)
 Called when the user cleans up states. More...
 
long onCmdAddUnused (FXObject *, FXSelector, void *)
 Called when the user cleans up states. More...
 
long onCmdGroupStates (FXObject *, FXSelector, void *)
 Called when the user groups states. More...
 
long onCmdUngroupStates (FXObject *, FXSelector, void *)
 Called when the user ungroups states. More...
 
long onUpdUngroupStates (FXObject *, FXSelector, void *)
 Called to update the ungroups states button. More...
 
long onCmdPhaseEdit (FXObject *, FXSelector, void *)
 Called when the user edits a Phase. More...
 
long onCmdMakeRILSAConforming (FXObject *, FXSelector, void *)
 Called when the user makes RILSA. More...
 
long onUpdDefSwitch (FXObject *, FXSelector, void *)
 Called when occurs an update of switch definition. More...
 
long onUpdNeedsDef (FXObject *, FXSelector, void *)
 Called when occurs an update of needs definition. More...
 
long onUpdNeedsSingleDef (FXObject *, FXSelector, void *)
 Called to buttons that modify link indices. More...
 
long onUpdNeedsDefAndPhase (FXObject *, FXSelector, void *)
 Called when occurs an update of needs definition an dphase. More...
 
long onUpdDefCreate (FXObject *, FXSelector, void *)
 Called when occurs an update of create definition. More...
 
long onUpdModified (FXObject *, FXSelector, void *)
 Called when occurs an update of modified. More...
 

Protected Member Functions

void editJunction (GNEJunction *junction)
 edits the traffic light for the given junction More...
 
const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNETagProperties &tagProperties) const
 Open help attributes dialog. More...
 
functions called by moduls that can be reimplemented in frame children
virtual void tagSelected ()
 Tag selected in TagSelector. More...
 
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector More...
 
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void createPath ()
 create path (can be reimplemented in frame children) More...
 

Static Protected Member Functions

static SUMOTime getSUMOTime (const FXString &string)
 converts to SUMOTime More...
 

Protected Attributes

FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame = nullptr
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame = nullptr
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame = nullptr
 fame for right header elements More...
 
GNEViewNetmyViewNet = nullptr
 View Net. More...
 

Private Types

typedef std::map< int, std::vector< GNEInternalLane * > > TLIndexMap
 the internal lanes belonging the the current junction indexed by their tl-index More...
 

Private Member Functions

void buildInternalLanes (NBTrafficLightDefinition *tlDef)
 builds internal lanes for the given tlDef More...
 
void cleanup ()
 cleans up previous lanes More...
 
const std::vector< NBTrafficLightLogic::PhaseDefinition > & getPhases ()
 the phase of the current traffic light More...
 

Static Private Member Functions

static std::string varDurString (SUMOTime dur)
 convert duration (potentially undefined) to string More...
 

Private Attributes

NBLoadedSUMOTLDefmyEditedDef
 the traffic light definition being edited More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
TLIndexMap myInternalLanes
 
GNEFrameModuls::OverlappedInspectionmyOverlappedInspection
 Overlapped Inspection. More...
 
int myPhaseIndex
 index of the phase being shown More...
 
std::vector< std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
FXScrollWindow * myScrollWindowsContents = nullptr
 scroll windows that holds the content frame More...
 
GNETLSEditorFrame::TLSAttributesmyTLSAttributes
 modul for TLS attributes More...
 
GNETLSEditorFrame::TLSDefinitionmyTLSDefinition
 modul for TLS Definition More...
 
GNETLSEditorFrame::TLSFilemyTLSFile
 modul for load/Save TLS Programs More...
 
GNETLSEditorFrame::TLSJunctionmyTLSJunction
 modul for TLS Junction More...
 
GNETLSEditorFrame::TLSModificationsmyTLSModifications
 modul for load/Save TLS Modifications More...
 
GNETLSEditorFrame::TLSPhasesmyTLSPhases
 modul for TLS Phases More...
 

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time) More...
 

Detailed Description

The Widget for modifying Traffic Lights (TLS)

Definition at line 40 of file GNETLSEditorFrame.h.

Member Typedef Documentation

◆ TLIndexMap

typedef std::map<int, std::vector<GNEInternalLane*> > GNETLSEditorFrame::TLIndexMap
private

the internal lanes belonging the the current junction indexed by their tl-index

Definition at line 450 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

◆ GNETLSEditorFrame()

GNETLSEditorFrame::GNETLSEditorFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Definition at line 91 of file GNETLSEditorFrame.cpp.

References SUMO_TAG_JUNCTION.

◆ ~GNETLSEditorFrame()

GNETLSEditorFrame::~GNETLSEditorFrame ( )

Destructor.

Definition at line 124 of file GNETLSEditorFrame.cpp.

References cleanup().

Member Function Documentation

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 185 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...

Reimplemented in GNEVehicleTypeFrame, GNEPersonTypeFrame, and GNEInspectorFrame.

Definition at line 179 of file GNEFrame.cpp.

◆ buildInternalLanes()

◆ cleanup()

◆ controlsEdge()

bool GNETLSEditorFrame::controlsEdge ( GNEEdge edge) const

whether the given edge is controlled by the currently edited tlDef

Definition at line 889 of file GNETLSEditorFrame.cpp.

References NBTrafficLightDefinition::getControlledLinks(), GUIGlObject::getMicrosimID(), and myEditedDef.

Referenced by GNELane::getPopUpMenu().

Here is the caller graph for this function:

◆ createPath()

void GNEFrame::createPath ( )
protectedvirtualinherited

create path (can be reimplemented in frame children)

Reimplemented in GNEVehicleFrame, GNERouteFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, and GNEEdgeRelDataFrame.

Definition at line 197 of file GNEFrame.cpp.

Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath().

Here is the caller graph for this function:

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 166 of file GNEFrame.cpp.

◆ editJunction()

◆ editTLS()

void GNETLSEditorFrame::editTLS ( const Position clickedPosition,
const GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor 
)

edits the traffic light for the given clicked junction

Parameters
[in]clickedPositionclicked position
[in]objectsUnderCursorThe clicked objects under cursor

Definition at line 137 of file GNETLSEditorFrame.cpp.

References editJunction(), GNEViewNetHelper::ObjectsUnderCursor::getJunctionFront(), GNEFrameModuls::OverlappedInspection::getNumberOfOverlappedACs(), GNEFrameModuls::OverlappedInspection::hideOverlappedInspection(), myOverlappedInspection, GNEFrame::myViewNet, GNEViewNet::setStatusBarText(), and GNEFrameModuls::OverlappedInspection::showOverlappedInspection().

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ fixedDuration()

bool GNETLSEditorFrame::fixedDuration ( ) const

whether the current traffic light uses fixed phase durations

Definition at line 459 of file GNETLSEditorFrame.cpp.

References NBTrafficLightDefinition::getType(), myEditedDef, and STATIC.

Referenced by onCmdPhaseCreate(), and onCmdPhaseEdit().

Here is the caller graph for this function:

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

focus upper element of frame

Definition at line 102 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 139 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

Here is the caller graph for this function:

◆ getPhases()

const std::vector< NBTrafficLightLogic::PhaseDefinition > & GNETLSEditorFrame::getPhases ( )
private

the phase of the current traffic light

Definition at line 823 of file GNETLSEditorFrame.cpp.

References NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getPhases(), and myEditedDef.

Referenced by handleChange(), onCmdPhaseEdit(), and onCmdPhaseSwitch().

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

const std::vector< std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

get predefinedTagsMML

Definition at line 269 of file GNEFrame.cpp.

References GNEFrame::myPredefinedTagsMML.

Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::createPath(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getSUMOTime()

SUMOTime GNETLSEditorFrame::getSUMOTime ( const FXString &  string)
staticprotected

converts to SUMOTime

Definition at line 926 of file GNETLSEditorFrame.cpp.

References TIME2STEPS.

Referenced by GNETLSEditorFrame::TLSAttributes::getOffset(), onCmdPhaseCreate(), and onCmdPhaseEdit().

Here is the caller graph for this function:

◆ getViewNet()

◆ handleChange()

void GNETLSEditorFrame::handleChange ( GNEInternalLane lane)

update phase definition for the current traffic light and phase

Definition at line 829 of file GNETLSEditorFrame.cpp.

References GNEViewNet::changeAllPhases(), GNEInternalLane::getLinkState(), NBLoadedSUMOTLDef::getLogic(), getPhases(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNEInternalLane::getTLIndex(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSModifications, myTLSPhases, GNEFrame::myViewNet, GNETLSEditorFrame::TLSModifications::setHaveModifications(), and NBTrafficLightLogic::setPhaseState().

Referenced by GNEInternalLane::onDefault().

Here is the caller graph for this function:

◆ handleMultiChange()

void GNETLSEditorFrame::handleMultiChange ( GNELane lane,
FXObject *  obj,
FXSelector  sel,
void *  data 
)

update phase definition for the current traffic light and phase

Definition at line 845 of file GNETLSEditorFrame.cpp.

References NBTrafficLightDefinition::getControlledLinks(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNEAttributeCarrier::isAttributeCarrierSelected(), myEditedDef, myInternalLanes, myTLSModifications, GNEFrame::myViewNet, GNENet::retrieveEdges(), GNENet::retrieveLanes(), and GNETLSEditorFrame::TLSModifications::setHaveModifications().

Referenced by GNELane::onDefault().

Here is the caller graph for this function:

◆ hide()

◆ isTLSSaved()

bool GNETLSEditorFrame::isTLSSaved ( )

check if modifications in TLS was saved

Definition at line 155 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSModifications::checkHaveModifications(), myTLSModifications, onCmdCancel(), onCmdOK(), and WRITE_DEBUG.

◆ onCmdAddUnused()

long GNETLSEditorFrame::onCmdAddUnused ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user cleans up states.

Definition at line 574 of file GNETLSEditorFrame.cpp.

References NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getNumLinks(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSModifications, myTLSPhases, GNETLSEditorFrame::TLSModifications::setHaveModifications(), and NBTrafficLightLogic::setStateLength().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNETLSEditorFrame::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the Cancel-button.

Note
discards any modifications

Definition at line 245 of file GNETLSEditorFrame.cpp.

References cleanup(), GNETLSEditorFrame::TLSJunction::getCurrentJunction(), GNEViewNet::getUndoList(), myTLSJunction, GNEFrame::myViewNet, GNEUndoList::p_abort(), and GNEViewNet::updateViewNet().

Referenced by GNEViewNet::abortOperation(), editJunction(), FXDEFMAP(), isTLSSaved(), onCmdDefCreate(), onCmdDefDelete(), onCmdDefSwitch(), and onCmdOK().

Here is the caller graph for this function:

◆ onCmdCleanup()

long GNETLSEditorFrame::onCmdCleanup ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user cleans up states.

Definition at line 563 of file GNETLSEditorFrame.cpp.

References buildInternalLanes(), NBLoadedSUMOTLDef::cleanupStates(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSModifications, myTLSPhases, and GNETLSEditorFrame::TLSModifications::setHaveModifications().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefAddOff()

long GNETLSEditorFrame::onCmdDefAddOff ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user adds a OFF.

Definition at line 424 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefCreate()

long GNETLSEditorFrame::onCmdDefCreate ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdDefDelete()

long GNETLSEditorFrame::onCmdDefDelete ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user deletes a TLS.

Definition at line 316 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSJunction::getCurrentJunction(), GNETLSEditorFrame::TLSAttributes::getCurrentTLSDefinition(), GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), GNEViewNet::getUndoList(), myTLSAttributes, myTLSJunction, GNEFrame::myViewNet, onCmdCancel(), PRIORITY, GNEJunction::setAttribute(), SUMO_ATTR_TYPE, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefOffset()

long GNETLSEditorFrame::onCmdDefOffset ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user changes the offset of a TLS.

Definition at line 404 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getOffset(), myEditedDef, myTLSAttributes, myTLSModifications, GNETLSEditorFrame::TLSModifications::setHaveModifications(), and NBLoadedSUMOTLDef::setOffset().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefRename()

long GNETLSEditorFrame::onCmdDefRename ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user renames a TLS.

Definition at line 412 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefSubRename()

long GNETLSEditorFrame::onCmdDefSubRename ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user sub-renames a TLS.

Definition at line 418 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDefSwitch()

◆ onCmdGroupStates()

long GNETLSEditorFrame::onCmdGroupStates ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user groups states.

Definition at line 585 of file GNETLSEditorFrame.cpp.

References buildInternalLanes(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), NBLoadedSUMOTLDef::groupSignals(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSModifications, myTLSPhases, and GNETLSEditorFrame::TLSModifications::setHaveModifications().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGuess()

long GNETLSEditorFrame::onCmdGuess ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the button Guess.

Definition at line 430 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMakeRILSAConforming()

long GNETLSEditorFrame::onCmdMakeRILSAConforming ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user makes RILSA.

◆ onCmdOK()

◆ onCmdPhaseCreate()

◆ onCmdPhaseDelete()

long GNETLSEditorFrame::onCmdPhaseDelete ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user deletes a Phase.

Definition at line 552 of file GNETLSEditorFrame.cpp.

References NBTrafficLightLogic::deletePhase(), NBLoadedSUMOTLDef::getLogic(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), MAX2(), myEditedDef, myTLSModifications, myTLSPhases, and GNETLSEditorFrame::TLSModifications::setHaveModifications().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdPhaseEdit()

◆ onCmdPhaseSwitch()

long GNETLSEditorFrame::onCmdPhaseSwitch ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user switchs a Phase.

Definition at line 436 of file GNETLSEditorFrame.cpp.

References getPhases(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), LINKSTATE_DEADEND, myInternalLanes, myTLSPhases, GNEFrame::myViewNet, NBTrafficLightLogic::PhaseDefinition::state, and GNEViewNet::updateViewNet().

Referenced by FXDEFMAP(), and onCmdPhaseEdit().

Here is the caller graph for this function:

◆ onCmdToggle()

long GNETLSEditorFrame::onCmdToggle ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the button Toogle.

◆ onCmdUngroupStates()

long GNETLSEditorFrame::onCmdUngroupStates ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user ungroups states.

Definition at line 596 of file GNETLSEditorFrame.cpp.

References buildInternalLanes(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSModifications, myTLSPhases, GNETLSEditorFrame::TLSModifications::setHaveModifications(), NBTrafficLightDefinition::setParticipantsInformation(), and NBLoadedSUMOTLDef::ungroupSignals().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdDefCreate()

long GNETLSEditorFrame::onUpdDefCreate ( FXObject *  o,
FXSelector  ,
void *   
)

Called when occurs an update of create definition.

Definition at line 384 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSModifications::checkHaveModifications(), GNETLSEditorFrame::TLSJunction::getCurrentJunction(), GNEJunction::getNBNode(), NBNode::isTLControlled(), myTLSJunction, and myTLSModifications.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdDefSwitch()

long GNETLSEditorFrame::onUpdDefSwitch ( FXObject *  o,
FXSelector  ,
void *   
)

Called when occurs an update of switch definition.

Definition at line 359 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSModifications::checkHaveModifications(), GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), myTLSAttributes, and myTLSModifications.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdModified()

long GNETLSEditorFrame::onUpdModified ( FXObject *  o,
FXSelector  ,
void *   
)

Called when occurs an update of modified.

Definition at line 395 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSModifications::checkHaveModifications(), and myTLSModifications.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdNeedsDef()

long GNETLSEditorFrame::onUpdNeedsDef ( FXObject *  o,
FXSelector  ,
void *   
)

Called when occurs an update of needs definition.

Definition at line 367 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), and myTLSAttributes.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdNeedsDefAndPhase()

long GNETLSEditorFrame::onUpdNeedsDefAndPhase ( FXObject *  o,
FXSelector  ,
void *   
)

Called when occurs an update of needs definition an dphase.

Definition at line 375 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), myTLSAttributes, and myTLSPhases.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdNeedsSingleDef()

long GNETLSEditorFrame::onUpdNeedsSingleDef ( FXObject *  o,
FXSelector  ,
void *   
)

Called to buttons that modify link indices.

Definition at line 608 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), and myTLSAttributes.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdUngroupStates()

long GNETLSEditorFrame::onUpdUngroupStates ( FXObject *  o,
FXSelector  ,
void *   
)

Called to update the ungroups states button.

Definition at line 615 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), myEditedDef, myTLSAttributes, and NBLoadedSUMOTLDef::usingSignalGroups().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openHelpAttributesDialog()

◆ parseTLSPrograms()

bool GNETLSEditorFrame::parseTLSPrograms ( const std::string &  file)

◆ selectedOverlappedElement()

void GNETLSEditorFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
virtual

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented from GNEFrame.

Definition at line 466 of file GNETLSEditorFrame.cpp.

References editJunction().

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 172 of file GNEFrame.cpp.

◆ show()

void GNETLSEditorFrame::show ( )
virtual

◆ tagSelected()

void GNEFrame::tagSelected ( )
protectedvirtualinherited

Tag selected in TagSelector.

Reimplemented in GNEPolygonFrame, GNEAdditionalFrame, GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 160 of file GNEFrame.cpp.

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

function called after undo/redo in the current frame (can be reimplemented in frame children)

Reimplemented in GNEInspectorFrame.

Definition at line 151 of file GNEFrame.cpp.

Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().

Here is the caller graph for this function:

◆ varDurString()

std::string GNETLSEditorFrame::varDurString ( SUMOTime  dur)
staticprivate

convert duration (potentially undefined) to string

Definition at line 817 of file GNETLSEditorFrame.cpp.

References STEPS2TIME, toString(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by GNETLSEditorFrame::TLSPhases::initPhaseTable(), and onCmdPhaseEdit().

Here is the caller graph for this function:

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 116 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myEditedDef

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 135 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 119 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 125 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myInternalLanes

TLIndexMap GNETLSEditorFrame::myInternalLanes
private

Definition at line 451 of file GNETLSEditorFrame.h.

Referenced by buildInternalLanes(), handleMultiChange(), and onCmdPhaseSwitch().

◆ myOverlappedInspection

GNEFrameModuls::OverlappedInspection* GNETLSEditorFrame::myOverlappedInspection
private

Overlapped Inspection.

Definition at line 429 of file GNETLSEditorFrame.h.

Referenced by editTLS(), and show().

◆ myPhaseIndex

int GNETLSEditorFrame::myPhaseIndex
private

index of the phase being shown

Definition at line 457 of file GNETLSEditorFrame.h.

◆ myPredefinedTagsMML

std::vector<std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 138 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 129 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ myTLSAttributes

◆ myTLSDefinition

GNETLSEditorFrame::TLSDefinition* GNETLSEditorFrame::myTLSDefinition
private

modul for TLS Definition

Definition at line 435 of file GNETLSEditorFrame.h.

◆ myTLSFile

GNETLSEditorFrame::TLSFile* GNETLSEditorFrame::myTLSFile
private

modul for load/Save TLS Programs

Definition at line 447 of file GNETLSEditorFrame.h.

◆ myTLSJunction

◆ myTLSModifications

◆ myTLSPhases

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 113 of file GNEFrame.h.

Referenced by GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZRelDataFrame::addTAZRelationData(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNETAZFrame::dropTAZMembers(), editJunction(), editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), onCmdCancel(), onCmdDefCreate(), onCmdDefDelete(), onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), onCmdOK(), onCmdPhaseSwitch(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), parseTLSPrograms(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEFrame::show().


The documentation for this class was generated from the following files: