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 RGBColor & getCandidateColor () const
 return candidate color More...
 
GNEJunction * getCurrentJunction () const
 get current junction More...
 
const RGBColor & getSelectedColor () 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...
 
GNECrossingFrame * myCrossingFrameParent
 pointer to GNECrossingFrame parent More...
 
GNEJunction * myCurrentJunction
 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

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

destructor

Definition at line 124 of file GNECrossingFrame.cpp.

GNECrossingFrame::edgesSelector::edgesSelector ( )
inlineprotected

FOX needs this.

Definition at line 106 of file GNECrossingFrame.h.

Member Function Documentation

void GNECrossingFrame::edgesSelector::enableEdgeSelector ( GNEJunction *  currentJunction)
const RGBColor& GNECrossingFrame::edgesSelector::getCandidateColor ( ) const

return candidate color

GNEJunction * GNECrossingFrame::edgesSelector::getCurrentJunction ( ) const
const RGBColor& GNECrossingFrame::edgesSelector::getSelectedColor ( ) const

return selected color

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

called when help button is pressed

Definition at line 205 of file GNECrossingFrame.cpp.

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

restore colors of all edges

Definition at line 168 of file GNECrossingFrame.cpp.

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

Referenced by GNECrossingFrame::addCrossing().

Field Documentation

FXButton* GNECrossingFrame::edgesSelector::helpEdges
private

button for help

Definition at line 116 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), and enableEdgeSelector().

FXButton* GNECrossingFrame::edgesSelector::myClearEdgesSelection
private

button for clear selection

Definition at line 119 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), and enableEdgeSelector().

GNECrossingFrame* GNECrossingFrame::edgesSelector::myCrossingFrameParent
private
GNEJunction* GNECrossingFrame::edgesSelector::myCurrentJunction
private
FXButton* GNECrossingFrame::edgesSelector::myInvertEdgesSelection
private

button for invert selection

Definition at line 122 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), and enableEdgeSelector().

FXButton* GNECrossingFrame::edgesSelector::myUseSelectedEdges
private

CheckBox for selected edges.

Definition at line 113 of file GNECrossingFrame.h.

Referenced by disableEdgeSelector(), and enableEdgeSelector().


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