Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETLSEditorFrame Class Reference

#include <GNETLSEditorFrame.h>

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

Data Structures

class  TLSAttributes
 
class  TLSFile
 
class  TLSJunction
 
class  TLSPhases
 
class  TLSPrograms
 

Public Member Functions

bool controlsEdge (GNEEdge *edge) const
 whether the given edge is controlled by the currently edited tlDef
 
void editJunction (GNEJunction *junction)
 edits the traffic light for the given junction
 
void editTLS (GNEViewNetHelper::ViewObjectsSelector &viewObjects, const Position &clickedPosition, const bool shiftKeyPressed)
 edits the traffic light for the given clicked junction
 
void focusUpperElement ()
 focus upper element of frame
 
void frameWidthUpdated ()
 function called after setting new width in current frame
 
FXVerticalFrame * getContentFrame () const
 get vertical frame that holds all widgets of frame
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header
 
int getScrollBarWidth () const
 get scrollBar width (zero if is hidden)
 
GNETLSEditorFrame::TLSAttributesgetTLSAttributes () const
 get module for TLS attributes
 
GNETLSEditorFrame::TLSJunctiongetTLSJunction () const
 get module for TLS Junction
 
GNETLSEditorFrame::TLSPhasesgetTLSPhases () const
 get module for TLS Phases
 
GNETLSEditorFrame::TLSProgramsgetTLSPrograms () const
 get module for TLS Definition
 
GNEViewNetgetViewNet () const
 get view net
 
 GNETLSEditorFrame (GNEViewParent *viewParent, GNEViewNet *viewNet)
 Constructor.
 
void handleChange (GNEInternalLane *lane)
 update phase definition for the current traffic light and phase
 
void handleMultiChange (GNELane *lane, FXObject *obj, FXSelector sel, void *data)
 update phase definition for the current traffic light and phase
 
virtual void hide ()
 hide Frame
 
bool isTLSSaved ()
 check if modifications in TLS was saved
 
void openHelpAttributesDialog (const GNEAttributeCarrier *AC) const
 Open help attributes dialog.
 
bool parseTLSPrograms (const std::string &file)
 parse TLS Programs from a file
 
void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open GNEAttributesCreator extended dialog (can be reimplemented in frame children)
 
void setFrameWidth (const int newWidth)
 set width of GNEFrame
 
void show ()
 show inspector frame
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children)
 
void updateModules ()
 update modules
 
 ~GNETLSEditorFrame ()
 Destructor.
 
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety)
virtual void tagSelected ()
 Tag selected in GNETagSelector.
 
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector
 
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape
 
virtual void attributeUpdated (SumoXMLAttr attribute)
 function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
 
virtual bool createPath (const bool useLastRoute)
 create path between two elements
 

Protected Member Functions

const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML
 

Static Protected Member Functions

static FXLabel * buildRainbow (FXComposite *parent)
 build rainbow in frame modul
 
static const std::string getSteps2Time (const SUMOTime value)
 converts to SUMOTime
 
static SUMOTime getSUMOTime (const std::string &value)
 converts to SUMOTime
 

Protected Attributes

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

Private Member Functions

void buildInternalLanes (const NBTrafficLightDefinition *tlDef)
 builds internal lanes for the given tlDef
 
void cleanup ()
 cleans up previous lanes
 
const NBTrafficLightLogic::PhaseDefinitiongetPhase (const int index)
 get certain phase of the current traffic light
 
 GNETLSEditorFrame (const GNETLSEditorFrame &)=delete
 Invalidated copy constructor.
 
GNETLSEditorFrameoperator= (const GNETLSEditorFrame &)=delete
 Invalidated assignment operator.
 

Static Private Member Functions

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

Private Attributes

NBLoadedSUMOTLDefmyEditedDef = nullptr
 the traffic light definition being edited
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header
 
std::map< int, std::vector< GNEInternalLane * > > myInternalLanes
 the internal lanes belonging to the current junction indexed by their tl-index
 
GNEOverlappedInspectionmyOverlappedInspection = nullptr
 Overlapped Inspection.
 
std::vector< std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
 
FXScrollWindow * myScrollWindowsContents = nullptr
 scroll windows that holds the content frame
 
GNETLSEditorFrame::TLSAttributesmyTLSAttributes = nullptr
 module for TLS attributes
 
GNETLSEditorFrame::TLSFilemyTLSFile = nullptr
 module for load/Save TLS Programs
 
GNETLSEditorFrame::TLSJunctionmyTLSJunction = nullptr
 module for TLS Junction
 
GNETLSEditorFrame::TLSPhasesmyTLSPhases = nullptr
 module for TLS Phases
 
GNETLSEditorFrame::TLSProgramsmyTLSPrograms = nullptr
 module for TLS Definition
 

Static Private Attributes

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

Detailed Description

Definition at line 44 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

◆ GNETLSEditorFrame() [1/2]

GNETLSEditorFrame::GNETLSEditorFrame ( GNEViewParent viewParent,
GNEViewNet viewNet 
)

Constructor.

viewParent GNEViewParent in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Definition at line 101 of file GNETLSEditorFrame.cpp.

◆ ~GNETLSEditorFrame()

GNETLSEditorFrame::~GNETLSEditorFrame ( )

Destructor.

Definition at line 125 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSPhases::clearPhaseTable(), and myTLSPhases.

◆ GNETLSEditorFrame() [2/2]

GNETLSEditorFrame::GNETLSEditorFrame ( const GNETLSEditorFrame )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( SumoXMLAttr  attribute)
virtualinherited

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

Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.

Definition at line 227 of file GNEFrame.cpp.

Referenced by GNEAttributesEditorType::setAttribute(), and GNEAttributesEditorType::toggleEnableAttribute().

Here is the caller graph for this function:

◆ buildInternalLanes()

◆ buildRainbow()

FXLabel * GNEFrame::buildRainbow ( FXComposite *  parent)
staticprotectedinherited

build rainbow in frame modul

Definition at line 252 of file GNEFrame.cpp.

References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().

Here is the caller graph for this function:

◆ cleanup()

◆ controlsEdge()

bool GNETLSEditorFrame::controlsEdge ( GNEEdge edge) const

whether the given edge is controlled by the currently edited tlDef

Definition at line 495 of file GNETLSEditorFrame.cpp.

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

Referenced by GNELane::getPopUpMenu().

Here is the caller graph for this function:

◆ createPath()

bool GNEFrame::createPath ( const bool  useLastRoute)
virtualinherited

create path between two elements

Reimplemented in GNEEdgeRelDataFrame, GNEGenericDataFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, GNEAdditionalFrame, and GNEWireFrame.

Definition at line 239 of file GNEFrame.cpp.

Referenced by GNEPlanCreator::addRoute(), GNEPlanCreator::addSingleEdge(), GNEPlanCreator::addSingleStoppingPlace(), GNEPathCreator::createPath(), GNEConsecutiveSelector::onCmdCreatePath(), GNEPlanCreator::onCmdCreatePath(), and GNEPlanCreator::onCmdUseLastRoute().

Here is the caller graph for this function:

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
virtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, and GNEVehicleFrame.

Definition at line 214 of file GNEFrame.cpp.

Referenced by GNEDemandElementSelector::onCmdSelectDemandElement(), and GNEDemandElementSelector::setDemandElement().

Here is the caller graph for this function:

◆ editJunction()

◆ editTLS()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

focus upper element of frame

Definition at line 111 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::inspectClickedElements(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ frameWidthUpdated()

void GNETLSEditorFrame::frameWidthUpdated ( )
virtual

function called after setting new width in current frame

Reimplemented from GNEFrame.

Definition at line 139 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSPhases::getPhaseTable(), myTLSPhases, and GNETLSTable::recalcTableWidth().

◆ getContentFrame()

FXVerticalFrame * GNEFrame::getContentFrame ( ) const
inherited

get vertical frame that holds all widgets of frame

Definition at line 158 of file GNEFrame.cpp.

References GNEFrame::myContentFrame.

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 170 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 164 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ getPhase()

const NBTrafficLightLogic::PhaseDefinition & GNETLSEditorFrame::getPhase ( const int  index)
private

get certain phase of the current traffic light

Definition at line 420 of file GNETLSEditorFrame.cpp.

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

◆ getPredefinedTagsMML()

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

get predefinedTagsMML

Definition at line 246 of file GNEFrame.cpp.

References GNEFrame::myPredefinedTagsMML.

Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getScrollBarWidth()

int GNEFrame::getScrollBarWidth ( ) const
inherited

get scrollBar width (zero if is hidden)

Definition at line 176 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

Referenced by MFXGroupBoxModule::onCmdExtendButton(), and GNETLSTable::recalcTableWidth().

Here is the caller graph for this function:

◆ getSteps2Time()

const std::string GNETLSEditorFrame::getSteps2Time ( const SUMOTime  value)
staticprotected

◆ getSUMOTime()

SUMOTime GNETLSEditorFrame::getSUMOTime ( const std::string &  value)
staticprotected

◆ getTLSAttributes()

GNETLSEditorFrame::TLSAttributes * GNETLSEditorFrame::getTLSAttributes ( ) const

get module for TLS attributes

Definition at line 327 of file GNETLSEditorFrame.cpp.

References myTLSAttributes.

Referenced by GNEViewNet::abortOperation(), GNEInductionLoopDetector::checkDrawRelatedContour(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingDetectorsTLSMode().

Here is the caller graph for this function:

◆ getTLSJunction()

GNETLSEditorFrame::TLSJunction * GNETLSEditorFrame::getTLSJunction ( ) const

get module for TLS Junction

Definition at line 315 of file GNETLSEditorFrame.cpp.

References myTLSJunction.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingJunctionsTLSMode().

Here is the caller graph for this function:

◆ getTLSPhases()

GNETLSEditorFrame::TLSPhases * GNETLSEditorFrame::getTLSPhases ( ) const

get module for TLS Phases

Definition at line 333 of file GNETLSEditorFrame.cpp.

References myTLSPhases.

◆ getTLSPrograms()

GNETLSEditorFrame::TLSPrograms * GNETLSEditorFrame::getTLSPrograms ( ) const

get module for TLS Definition

Definition at line 321 of file GNETLSEditorFrame.cpp.

References myTLSPrograms.

Referenced by GNEViewNet::abortOperation(), and GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 152 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEConsecutiveSelector::abortPathCreation(), GNEPathCreator::abortPathCreation(), GNEPlanCreator::abortPathCreation(), GNEPathCreator::addEdge(), GNEPlanCreator::addFromToStoppingPlace(), GNEPathCreator::addJunction(), GNEConsecutiveSelector::addLane(), GNEPlanCreator::addSingleEdge(), GNEPathCreator::addTAZ(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNETLSTable::Cell::Cell(), GNEAttributesEditorType::checkAttributes(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNEPathCreator::clearEdgeColors(), GNEPlanSelector::clearEdgeColors(), GNEPathCreator::clearJunctionColors(), GNEPlanSelector::clearJunctionColors(), GNEConsecutiveSelector::clearPath(), GNEViewObjectSelector::clearSelection(), GNETLSTable::Column::Column(), GNEElementTree::createPopUpMenu(), GNEMatchAttribute::CurrentEditedProperties::CurrentEditedProperties(), GNEDistributionFrame::DistributionRow::DistributionRow(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEPlanCreator::drawTemporalRoute(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEAttributesEditorRow::enableElements(), GNEAttributesEditorType::enableReparent(), GNEAttributesEditorRow::getAttributeValue(), GNEMatchAttribute::getMatches(), GNEInternalLane::getPopUpMenu(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEAttributesEditorType::inspectParent(), GNEElementTree::isSupermodeValid(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEAttributesEditorType::moveLaneDown(), GNEAttributesEditorType::moveLaneUp(), GNEAttributesEditorType::onCmdAttributesEditorReset(), GNEElementTree::onCmdCenterItem(), GNEElementTree::onCmdDeleteItem(), MFXGroupBoxModule::onCmdExtendButton(), GNEMatchAttribute::onCmdHelp(), GNEElementTree::onCmdInspectItem(), GNEElementTree::onCmdMoveItemDown(), GNEElementTree::onCmdMoveItemUp(), GNEAttributesEditorRow::onCmdOpenColorDialog(), GNEAttributesEditorType::onCmdOpenEditParametersDialog(), GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog(), GNEAttributesEditorRow::onCmdOpenFileDialog(), GNEAttributesEditorRow::onCmdOpenVClassDialog(), GNEOverlappedInspection::onCmdOverlappingHelp(), MFXGroupBoxModule::onCmdResetButton(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNETagSelector::onCmdSelectTag(), GNEViewObjectSelector::onCmdUseSelectedElements(), MFXGroupBoxModule::onUpdResetButton(), GNEPathCreator::onUpdUseLastRoute(), GNEPlanCreator::onUpdUseLastRoute(), GNETLSTable::recalcTableWidth(), GNEPlanCreator::recalculatePath(), GNEDemandElementSelector::refreshDemandElementSelector(), GNESelectorParent::refreshSelectorParentModule(), GNEConsecutiveSelector::removeLastElement(), GNEPathCreator::removeLastElement(), GNETLSTable::Row::Row(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEAttributesEditorType::setAttribute(), GNETagSelector::setCurrentTag(), GNEDrawingShape::setDeleteLastCreatedPoint(), GNEAttributesEditorType::setNewParent(), GNEPathCreator::setPossibleCandidates(), GNEPathCreator::setSpecialCandidates(), GNEElementTree::showAttributeCarrierParents(), GNEAttributesEditorRow::showAttributeRow(), GNEDemandElementSelector::showDemandElementSelector(), GNEElementTree::showHierarchicalElementChildren(), GNEAttributesEditorRow::showMoveLaneButtons(), GNEAttributesEditorRow::showValueComboBox(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNEAttributesEditorType::toggleEnableAttribute(), GNEViewObjectSelector::toggleSelectedElement(), GNEPathCreator::updateEdgeColors(), GNEPlanSelector::updateEdgeColors(), GNEPathCreator::updateJunctionColors(), GNEPlanSelector::updateJunctionColors(), GNEConsecutiveSelector::updateLaneColors(), and GNETagSelector::updateTagTypes().

◆ handleChange()

void GNETLSEditorFrame::handleChange ( GNEInternalLane lane)

◆ handleMultiChange()

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

◆ hide()

void GNEFrame::hide ( )
virtualinherited

hide Frame

Note
some GNEFrames needs a re-implementation

Reimplemented in GNEDeleteFrame, GNEInspectorFrame, GNEMoveFrame, GNESelectorFrame, GNEGenericDataFrame, GNEMeanDataFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, GNECreateEdgeFrame, GNECrossingFrame, GNEProhibitionFrame, and GNETAZFrame.

Definition at line 126 of file GNEFrame.cpp.

References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.

Referenced by GNEDeleteFrame::hide(), GNEInspectorFrame::hide(), GNEMoveFrame::hide(), GNESelectorFrame::hide(), GNEGenericDataFrame::hide(), GNEMeanDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNECreateEdgeFrame::hide(), GNECrossingFrame::hide(), GNEProhibitionFrame::hide(), GNETAZFrame::hide(), GNEAdditionalFrame::E2MultilaneLegendModule::hideE2MultilaneLegend(), GNEShapeFrame::GEOPOICreator::hideGEOPOICreatorModule(), GNEStopFrame::HelpCreation::hideHelpCreation(), GNEAdditionalFrame::HelpCreationModule::hideHelpCreationModule(), GNETLSEditorFrame::TLSAttributes::hideTLSAttributes(), GNETLSEditorFrame::TLSFile::hideTLSFile(), GNETLSEditorFrame::TLSPhases::hideTLSPhases(), GNETLSEditorFrame::TLSPrograms::hideTLSPrograms(), GNETypeFrame::TypeEditor::hideTypeEditorModule(), and GNEAdditionalFrame::HelpCreationModule::showHelpCreationModule().

Here is the caller graph for this function:

◆ isTLSSaved()

◆ openHelpAttributesDialog()

void GNEFrame::openHelpAttributesDialog ( const GNEAttributeCarrier AC) const
inherited

Open help attributes dialog.

Definition at line 186 of file GNEFrame.cpp.

References GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), and GNEFrame::myViewNet.

Referenced by GNEAttributesEditorType::onCmdAttributesEditorHelp().

Here is the caller graph for this function:

◆ operator=()

GNETLSEditorFrame & GNETLSEditorFrame::operator= ( const GNETLSEditorFrame )
privatedelete

Invalidated assignment operator.

◆ parseTLSPrograms()

◆ selectedOverlappedElement()

void GNETLSEditorFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
virtual

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

Reimplemented from GNEFrame.

Definition at line 278 of file GNETLSEditorFrame.cpp.

References editJunction().

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( const int  newWidth)
inherited

set width of GNEFrame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::frameWidthUpdated(), GUIDesignFrameAreaMargin, GNEFrame::myContentFrame, and GNEFrame::myScrollWindowsContents.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
virtualinherited

build a shaped element using the drawed shape

Reimplemented in GNEShapeFrame, and GNETAZFrame.

Definition at line 220 of file GNEFrame.cpp.

Referenced by GNEDrawingShape::stopDrawing().

Here is the caller graph for this function:

◆ show()

◆ tagSelected()

void GNEFrame::tagSelected ( )
virtualinherited

Tag selected in GNETagSelector.

Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, GNEAdditionalFrame, GNEShapeFrame, and GNEWireFrame.

Definition at line 208 of file GNEFrame.cpp.

Referenced by GNEPlanSelector::onCmdSelectPlan(), GNETagSelector::onCmdSelectTag(), GNEPlanSelector::refreshPlanSelector(), GNETagSelector::refreshTagSelector(), and GNETagSelector::setCurrentTag().

Here is the caller graph for this function:

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

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

Reimplemented in GNEInspectorFrame, GNESelectorFrame, GNEGenericDataFrame, and GNEMeanDataFrame.

Definition at line 193 of file GNEFrame.cpp.

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

Here is the caller graph for this function:

◆ updateModules()

void GNETLSEditorFrame::updateModules ( )

update modules

Definition at line 146 of file GNETLSEditorFrame.cpp.

References myTLSAttributes, myTLSJunction, myTLSPhases, myTLSPrograms, GNETLSEditorFrame::TLSAttributes::updateTLSAttributes(), GNETLSEditorFrame::TLSJunction::updateTLSJunction(), GNETLSEditorFrame::TLSPhases::updateTLSPhases(), and GNETLSEditorFrame::TLSPrograms::updateTLSPrograms().

Referenced by editJunction().

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 414 of file GNETLSEditorFrame.cpp.

References getSteps2Time(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable(), GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable(), and GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable().

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 124 of file GNEFrame.h.

Referenced by GNESelectorFrame::getContentFrame(), GNEFrame::getContentFrame(), GNEFrame::GNEFrame(), and GNEFrame::setFrameWidth().

◆ myEditedDef

NBLoadedSUMOTLDef* GNETLSEditorFrame::myEditedDef = nullptr
private

the traffic light definition being edited

Definition at line 693 of file GNETLSEditorFrame.h.

Referenced by cleanup(), controlsEdge(), getPhase(), handleChange(), and handleMultiChange().

◆ 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 146 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 149 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 127 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

fame for left header elements

Definition at line 130 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 133 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myInternalLanes

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

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

Definition at line 690 of file GNETLSEditorFrame.h.

Referenced by buildInternalLanes(), and handleMultiChange().

◆ myOverlappedInspection

GNEOverlappedInspection* GNETLSEditorFrame::myOverlappedInspection = nullptr
private

Overlapped Inspection.

Definition at line 672 of file GNETLSEditorFrame.h.

Referenced by editTLS(), and show().

◆ myPredefinedTagsMML

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

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

Definition at line 152 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 143 of file GNEFrame.h.

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

◆ myTLSAttributes

GNETLSEditorFrame::TLSAttributes* GNETLSEditorFrame::myTLSAttributes = nullptr
private

module for TLS attributes

Definition at line 681 of file GNETLSEditorFrame.h.

Referenced by cleanup(), editJunction(), editTLS(), getTLSAttributes(), and updateModules().

◆ myTLSFile

GNETLSEditorFrame::TLSFile* GNETLSEditorFrame::myTLSFile = nullptr
private

module for load/Save TLS Programs

Definition at line 687 of file GNETLSEditorFrame.h.

◆ myTLSJunction

GNETLSEditorFrame::TLSJunction* GNETLSEditorFrame::myTLSJunction = nullptr
private

module for TLS Junction

Definition at line 675 of file GNETLSEditorFrame.h.

Referenced by buildInternalLanes(), cleanup(), editJunction(), editTLS(), getTLSJunction(), and updateModules().

◆ myTLSPhases

GNETLSEditorFrame::TLSPhases* GNETLSEditorFrame::myTLSPhases = nullptr
private

module for TLS Phases

Definition at line 684 of file GNETLSEditorFrame.h.

Referenced by cleanup(), editJunction(), frameWidthUpdated(), getTLSPhases(), handleChange(), updateModules(), and ~GNETLSEditorFrame().

◆ myTLSPrograms

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

FOX need this.

View Net

Definition at line 121 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), cleanup(), GNEWireFrame::createBaseWireObject(), GNEEdgeRelDataFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), editJunction(), editTLS(), GNEStopFrame::getStopParameter(), GNEFrame::getViewNet(), GNETypeFrame::GNETypeFrame(), handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), GNEFrame::openHelpAttributesDialog(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), parseTLSPrograms(), GNEShapeFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::refreshInspection(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEMoveFrame::show(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().


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