![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNETLSEditorFrame.h>
Public Member Functions | |
void | clearTLSAttributes () |
clear TLS attributes More... | |
NBTrafficLightDefinition * | getCurrentTLSDefinition () const |
get current definition More... | |
int | getNumberOfPrograms () const |
get number of programs More... | |
int | getNumberOfTLSDefinitions () const |
get number of definitions More... | |
SUMOTime | getOffset () const |
get current offset in SUMOTIme More... | |
void | initTLSAttributes (GNEJunction *junction) |
initializes the definitions and corresponding listbox More... | |
void | setOffset (SUMOTime offset) |
set new offset More... | |
TLSAttributes (FXComposite *parent, GNETLSEditorFrame *TLSEditorParent) | |
constructor More... | |
~TLSAttributes () | |
destructor More... | |
Private Attributes | |
FXMatrix * | myAttributeMatrix |
matrix for attributes More... | |
FXLabel * | myNameLabel |
name label More... | |
FXTextField * | myNameTextField |
name text field More... | |
FXLabel * | myOffsetLabel |
offset label More... | |
FXTextField * | myOffsetTextField |
the control for modifying offset More... | |
FXComboBox * | myProgramComboBox |
the comboBox for selecting the tl-definition to edit More... | |
FXLabel * | myProgramLabel |
program label More... | |
std::vector< NBTrafficLightDefinition * > | myTLSDefinitions |
the list of Definitions for the current junction More... | |
GNETLSEditorFrame * | myTLSEditorParent |
pointer to TLSEditorParent More... | |
FOX-declaration.
Definition at line 59 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::TLSAttributes::TLSAttributes | ( | FXComposite * | parent, |
GNETLSEditorFrame * | TLSEditorParent | ||
) |
constructor
Definition at line 697 of file GNETLSEditorFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_TLSFRAME_OFFSET, MID_GNE_TLSFRAME_SWITCH, myNameLabel, myNameTextField, myOffsetLabel, myOffsetTextField, myProgramComboBox, myProgramLabel, and myTLSEditorParent.
GNETLSEditorFrame::TLSAttributes::~TLSAttributes | ( | ) |
destructor
Definition at line 721 of file GNETLSEditorFrame.cpp.
void GNETLSEditorFrame::TLSAttributes::clearTLSAttributes | ( | ) |
clear TLS attributes
Definition at line 749 of file GNETLSEditorFrame.cpp.
References myNameTextField, myOffsetTextField, myProgramComboBox, and myTLSDefinitions.
Referenced by GNETLSEditorFrame::cleanup().
NBTrafficLightDefinition * GNETLSEditorFrame::TLSAttributes::getCurrentTLSDefinition | ( | ) | const |
get current definition
Definition at line 765 of file GNETLSEditorFrame.cpp.
References myProgramComboBox, and myTLSDefinitions.
Referenced by GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), and GNETLSEditorFrame::onCmdOK().
int GNETLSEditorFrame::TLSAttributes::getNumberOfPrograms | ( | ) | const |
get number of programs
Definition at line 777 of file GNETLSEditorFrame.cpp.
References myProgramComboBox.
Referenced by GNETLSEditorFrame::onCmdDefSwitch().
int GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions | ( | ) | const |
get number of definitions
Definition at line 771 of file GNETLSEditorFrame.cpp.
References myTLSDefinitions.
Referenced by GNETLSEditorFrame::initPhaseTable(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::onUpdDefSwitch(), GNETLSEditorFrame::onUpdNeedsDef(), and GNETLSEditorFrame::onUpdNeedsDefAndPhase().
SUMOTime GNETLSEditorFrame::TLSAttributes::getOffset | ( | ) | const |
get current offset in SUMOTIme
Definition at line 783 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSUMOTime(), and myOffsetTextField.
Referenced by GNETLSEditorFrame::onCmdDefOffset().
void GNETLSEditorFrame::TLSAttributes::initTLSAttributes | ( | GNEJunction * | junction | ) |
initializes the definitions and corresponding listbox
Definition at line 725 of file GNETLSEditorFrame.cpp.
References NBNode::getControllingTLS(), GNEJunction::getNBNode(), myNameTextField, myOffsetTextField, myProgramComboBox, myTLSDefinitions, myTLSEditorParent, and GNETLSEditorFrame::onCmdDefSwitch().
Referenced by GNETLSEditorFrame::editJunction().
void GNETLSEditorFrame::TLSAttributes::setOffset | ( | SUMOTime | offset | ) |
set new offset
Definition at line 789 of file GNETLSEditorFrame.cpp.
References myOffsetTextField, STEPS2TIME, and toString().
Referenced by GNETLSEditorFrame::onCmdDefSwitch().
|
private |
matrix for attributes
Definition at line 97 of file GNETLSEditorFrame.h.
|
private |
|
private |
name text field
Definition at line 103 of file GNETLSEditorFrame.h.
Referenced by clearTLSAttributes(), initTLSAttributes(), and TLSAttributes().
|
private |
|
private |
the control for modifying offset
Definition at line 115 of file GNETLSEditorFrame.h.
Referenced by clearTLSAttributes(), getOffset(), initTLSAttributes(), setOffset(), and TLSAttributes().
|
private |
the comboBox for selecting the tl-definition to edit
Definition at line 109 of file GNETLSEditorFrame.h.
Referenced by clearTLSAttributes(), getCurrentTLSDefinition(), getNumberOfPrograms(), initTLSAttributes(), and TLSAttributes().
|
private |
|
private |
the list of Definitions for the current junction
Definition at line 94 of file GNETLSEditorFrame.h.
Referenced by clearTLSAttributes(), getCurrentTLSDefinition(), getNumberOfTLSDefinitions(), and initTLSAttributes().
|
private |
pointer to TLSEditorParent
Definition at line 91 of file GNETLSEditorFrame.h.
Referenced by initTLSAttributes(), and TLSAttributes().