SUMO - Simulation of Urban MObility
GNECrossingFrame Class Reference

#include <GNECrossingFrame.h>

Inheritance diagram for GNECrossingFrame:
Inheritance graph
Collaboration diagram for GNECrossingFrame:
Collaboration graph

Data Structures

class  crossingParameters
 
class  edgesSelector
 FOX-declaration. More...
 

Public Member Functions

bool addCrossing (GNENetElement *netElement)
 add Crossing element More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNECrossingFrame::crossingParametersgetCrossingParameters () const
 get Crossing parameters More...
 
GNECrossingFrame::edgesSelectorgetEdgeSelector () const
 get edge selector 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...
 
 GNECrossingFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void hide ()
 hide crossing frame More...
 
void removeCrossing (GNECrossing *Crossing)
 remove an Crossing element previously added More...
 
void setCreateCrossingButton (bool value)
 enable or disable button create edges More...
 
void setFrameWidth (int width)
 set width of GNEFrame More...
 
virtual void show ()
 show Frame More...
 
 ~GNECrossingFrame ()
 Destructor. More...
 
FOX-callbacks

Called when the user press the button create edge

long onCmdCreateCrossing (FXObject *, FXSelector, void *)
 

Static Public Member Functions

static std::string getIdsSelected (const FXList *list)
 get list of selecte id's in string format More...
 

Protected Member Functions

 GNECrossingFrame ()
 FOX needs this. More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
FXFont * myFrameHeaderFont
 Font for the Header. More...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEViewNetmyViewNet
 the window to inform when the tls is modfied More...
 

Private Attributes

FXLabel * myColorCandidateLabel
 Label for color candidate. More...
 
FXLabel * myColorSelectedLabel
 Label for color selected. More...
 
FXButton * myCreateCrossingButton
 FXButton for create Crossing More...
 
GNECrossingFrame::crossingParametersmyCrossingParameters
 crossing parameters More...
 
FXLabel * myCurrentJunctionLabel
 Label for current Junction. More...
 
GNECrossingFrame::edgesSelectormyEdgeSelector
 edge selector More...
 
FXGroupBox * myGroupBoxButtons
 groupbox for buttons More...
 
FXGroupBox * myGroupBoxLabel
 groupbox for the junction label More...
 
FXGroupBox * myGroupBoxLegend
 groupbox for Legend More...
 

Detailed Description

The Widget for setting internal attributes of Crossing elements

Definition at line 50 of file GNECrossingFrame.h.

Constructor & Destructor Documentation

◆ GNECrossingFrame() [1/2]

◆ ~GNECrossingFrame()

GNECrossingFrame::~GNECrossingFrame ( )

Destructor.

Definition at line 559 of file GNECrossingFrame.cpp.

References gSelected, and GUISelectedStorage::remove2Update().

◆ GNECrossingFrame() [2/2]

GNECrossingFrame::GNECrossingFrame ( )
inlineprotected

FOX needs this.

Definition at line 280 of file GNECrossingFrame.h.

Member Function Documentation

◆ addCrossing()

bool GNECrossingFrame::addCrossing ( GNENetElement netElement)

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getCrossingParameters()

◆ getEdgeSelector()

GNECrossingFrame::edgesSelector * GNECrossingFrame::getEdgeSelector ( ) const

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 129 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ getIdsSelected()

static std::string GNECrossingFrame::getIdsSelected ( const FXList *  list)
static

get list of selecte id's in string format

◆ getViewNet()

◆ hide()

void GNECrossingFrame::hide ( )
virtual

hide crossing frame

Reimplemented from GNEFrame.

Definition at line 565 of file GNECrossingFrame.cpp.

References GNECrossingFrame::edgesSelector::getCurrentJunction(), GNEJunction::getGNEEdges(), GNEFrame::hide(), and myEdgeSelector.

◆ onCmdCreateCrossing()

◆ removeCrossing()

void GNECrossingFrame::removeCrossing ( GNECrossing Crossing)

remove an Crossing element previously added

Parameters
[in]Crossingelement to erase

◆ setCreateCrossingButton()

void GNECrossingFrame::setCreateCrossingButton ( bool  value)

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  width)
inherited

set width of GNEFrame

Definition at line 116 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

Field Documentation

◆ myColorCandidateLabel

FXLabel* GNECrossingFrame::myColorCandidateLabel
private

Label for color candidate.

Definition at line 305 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame().

◆ myColorSelectedLabel

FXLabel* GNECrossingFrame::myColorSelectedLabel
private

Label for color selected.

Definition at line 308 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 104 of file GNEFrame.h.

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

◆ myCreateCrossingButton

FXButton* GNECrossingFrame::myCreateCrossingButton
private

FXButton for create Crossing

Definition at line 299 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame(), and setCreateCrossingButton().

◆ myCrossingParameters

GNECrossingFrame::crossingParameters* GNECrossingFrame::myCrossingParameters
private

crossing parameters

Definition at line 287 of file GNECrossingFrame.h.

Referenced by addCrossing(), getCrossingParameters(), GNECrossingFrame(), and onCmdCreateCrossing().

◆ myCurrentJunctionLabel

FXLabel* GNECrossingFrame::myCurrentJunctionLabel
private

Label for current Junction.

Definition at line 293 of file GNECrossingFrame.h.

Referenced by addCrossing(), and GNECrossingFrame().

◆ myEdgeSelector

GNECrossingFrame::edgesSelector* GNECrossingFrame::myEdgeSelector
private

edge selector

Definition at line 284 of file GNECrossingFrame.h.

Referenced by addCrossing(), getEdgeSelector(), GNECrossingFrame(), hide(), and onCmdCreateCrossing().

◆ myFrameHeaderFont

FXFont* GNEFrame::myFrameHeaderFont
protectedinherited

Font for the Header.

Definition at line 98 of file GNEFrame.h.

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

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
protectedinherited

the label for the frame's header

Definition at line 101 of file GNEFrame.h.

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

◆ myGroupBoxButtons

FXGroupBox* GNECrossingFrame::myGroupBoxButtons
private

groupbox for buttons

Definition at line 296 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame().

◆ myGroupBoxLabel

FXGroupBox* GNECrossingFrame::myGroupBoxLabel
private

groupbox for the junction label

Definition at line 290 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame().

◆ myGroupBoxLegend

FXGroupBox* GNECrossingFrame::myGroupBoxLegend
private

groupbox for Legend

Definition at line 302 of file GNECrossingFrame.h.

Referenced by GNECrossingFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 107 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 113 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

the window to inform when the tls is modfied

Definition at line 95 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNETLSEditorFrame::buildIinternalLanes(), GNEDeleteFrame::createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEDeleteFrame::onCmdCenterItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdSave(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().


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