SUMO - Simulation of Urban MObility
GNECrossingFrame::edgesSelector Class Reference

FOX-declaration. More...

#include <GNECrossingFrame.h>

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

Public Member Functions

void disableEdgeSelector ()
 disable edgeSelector More...
 
 edgesSelector (FXComposite *parent, GNECrossingFrame *crossingFrameParent)
 FOX-declaration. More...
 
void enableEdgeSelector (GNEJunction *currentJunction)
 enable edgeSelector More...
 
const RGBColorgetCandidateColor () const
 return candidate color More...
 
GNEJunctiongetCurrentJunction () const
 get current junction More...
 
const RGBColorgetSelectedColor () const
 return selected color More...
 
void restoreEdgeColors ()
 restore colors of all edges More...
 
 ~edgesSelector ()
 destructor More...
 
FOX-callbacks

called when useSelectedEdges button edge is pressed

long onCmdUseSelectedEdges (FXObject *, FXSelector, void *)
 
long onCmdClearSelection (FXObject *, FXSelector, void *)
 called when clear selection button is pressed More...
 
long onCmdInvertSelection (FXObject *, FXSelector, void *)
 called when invert selection button is pressed More...
 
long onCmdHelp (FXObject *, FXSelector, void *)
 called when help button is pressed More...
 

Protected Member Functions

 edgesSelector ()
 FOX needs this. More...
 

Private Attributes

FXButton * helpEdges
 button for help More...
 
FXButton * myClearEdgesSelection
 button for clear selection More...
 
GNECrossingFramemyCrossingFrameParent
 pointer to GNECrossingFrame parent More...
 
GNEJunctionmyCurrentJunction
 current Junction More...
 
FXButton * myInvertEdgesSelection
 button for invert selection More...
 
FXButton * myUseSelectedEdges
 CheckBox for selected edges. More...
 

Detailed Description

FOX-declaration.

Definition at line 60 of file GNECrossingFrame.h.

Constructor & Destructor Documentation

◆ edgesSelector() [1/2]

GNECrossingFrame::edgesSelector::edgesSelector ( FXComposite *  parent,
GNECrossingFrame crossingFrameParent 
)

◆ ~edgesSelector()

GNECrossingFrame::edgesSelector::~edgesSelector ( )

destructor

Definition at line 115 of file GNECrossingFrame.cpp.

◆ edgesSelector() [2/2]

GNECrossingFrame::edgesSelector::edgesSelector ( )
inlineprotected

FOX needs this.

Definition at line 106 of file GNECrossingFrame.h.

Member Function Documentation

◆ disableEdgeSelector()

◆ enableEdgeSelector()

void GNECrossingFrame::edgesSelector::enableEdgeSelector ( GNEJunction currentJunction)

◆ getCandidateColor()

const RGBColor& GNECrossingFrame::edgesSelector::getCandidateColor ( ) const

return candidate color

◆ getCurrentJunction()

GNEJunction * GNECrossingFrame::edgesSelector::getCurrentJunction ( ) const

◆ getSelectedColor()

const RGBColor& GNECrossingFrame::edgesSelector::getSelectedColor ( ) const

return selected color

◆ onCmdClearSelection()

long GNECrossingFrame::edgesSelector::onCmdClearSelection ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdHelp()

long GNECrossingFrame::edgesSelector::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

called when help button is pressed

Definition at line 196 of file GNECrossingFrame.cpp.

◆ onCmdInvertSelection()

long GNECrossingFrame::edgesSelector::onCmdInvertSelection ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdUseSelectedEdges()

long GNECrossingFrame::edgesSelector::onCmdUseSelectedEdges ( FXObject *  ,
FXSelector  ,
void *   
)

◆ restoreEdgeColors()

void GNECrossingFrame::edgesSelector::restoreEdgeColors ( )

restore colors of all edges

Definition at line 159 of file GNECrossingFrame.cpp.

References GNEJunction::getGNEEdges(), GNEFrame::getViewNet(), myCrossingFrameParent, and myCurrentJunction.

Referenced by GNECrossingFrame::addCrossing().

Field Documentation

◆ helpEdges

FXButton* GNECrossingFrame::edgesSelector::helpEdges
private

button for help

Definition at line 116 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().

◆ myClearEdgesSelection

FXButton* GNECrossingFrame::edgesSelector::myClearEdgesSelection
private

button for clear selection

Definition at line 119 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().

◆ myCrossingFrameParent

GNECrossingFrame* GNECrossingFrame::edgesSelector::myCrossingFrameParent
private

◆ myCurrentJunction

GNEJunction* GNECrossingFrame::edgesSelector::myCurrentJunction
private

◆ myInvertEdgesSelection

FXButton* GNECrossingFrame::edgesSelector::myInvertEdgesSelection
private

button for invert selection

Definition at line 122 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().

◆ myUseSelectedEdges

FXButton* GNECrossingFrame::edgesSelector::myUseSelectedEdges
private

CheckBox for selected edges.

Definition at line 113 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().


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