![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNECrossingFrame.h>
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... | |
FOX-declaration.
Definition at line 60 of file GNECrossingFrame.h.
GNECrossingFrame::edgesSelector::edgesSelector | ( | FXComposite * | parent, |
GNECrossingFrame * | crossingFrameParent | ||
) |
FOX-declaration.
constructor
Definition at line 96 of file GNECrossingFrame.cpp.
References GUIDesignButton, GUIDesignButtonRectangular, helpEdges, MID_GNE_CLEAREDGESELECTION, MID_GNE_INVERTEDGESELECTION, MID_GNE_USEONLYSELECTEDEDGES, MID_HELP, myClearEdgesSelection, myInvertEdgesSelection, myUseSelectedEdges, SUMO_TAG_EDGE, and toString().
GNECrossingFrame::edgesSelector::~edgesSelector | ( | ) |
destructor
Definition at line 115 of file GNECrossingFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 106 of file GNECrossingFrame.h.
void GNECrossingFrame::edgesSelector::disableEdgeSelector | ( | ) |
disable edgeSelector
Definition at line 145 of file GNECrossingFrame.cpp.
References GNECrossingFrame::crossingParameters::disableCrossingParameters(), GNECrossingFrame::getCrossingParameters(), helpEdges, myClearEdgesSelection, myCrossingFrameParent, myCurrentJunction, myInvertEdgesSelection, and myUseSelectedEdges.
Referenced by GNECrossingFrame::addCrossing(), and GNECrossingFrame::GNECrossingFrame().
void GNECrossingFrame::edgesSelector::enableEdgeSelector | ( | GNEJunction * | currentJunction | ) |
enable edgeSelector
Definition at line 125 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), GNEFrame::getViewNet(), gSelected, helpEdges, GUISelectedStorage::isSelected(), myClearEdgesSelection, myCrossingFrameParent, myCurrentJunction, myInvertEdgesSelection, and myUseSelectedEdges.
Referenced by GNECrossingFrame::addCrossing().
const RGBColor& GNECrossingFrame::edgesSelector::getCandidateColor | ( | ) | const |
return candidate color
GNEJunction * GNECrossingFrame::edgesSelector::getCurrentJunction | ( | ) | const |
get current junction
Definition at line 119 of file GNECrossingFrame.cpp.
References myCurrentJunction.
Referenced by GNECrossingFrame::hide(), GNECrossingFrame::crossingParameters::markEdge(), GNECrossingFrame::onCmdCreateCrossing(), and GNECrossingFrame::crossingParameters::onCmdSetAttribute().
const RGBColor& GNECrossingFrame::edgesSelector::getSelectedColor | ( | ) | const |
return selected color
long GNECrossingFrame::edgesSelector::onCmdClearSelection | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when clear selection button is pressed
Definition at line 182 of file GNECrossingFrame.cpp.
References GNECrossingFrame::crossingParameters::clearEdges(), GNECrossingFrame::getCrossingParameters(), and myCrossingFrameParent.
Referenced by GNECrossingFrame::onCmdCreateCrossing().
long GNECrossingFrame::edgesSelector::onCmdHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when help button is pressed
Definition at line 196 of file GNECrossingFrame.cpp.
long GNECrossingFrame::edgesSelector::onCmdInvertSelection | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when invert selection button is pressed
Definition at line 189 of file GNECrossingFrame.cpp.
References GNECrossingFrame::getCrossingParameters(), GNECrossingFrame::crossingParameters::invertEdges(), myCrossingFrameParent, and myCurrentJunction.
long GNECrossingFrame::edgesSelector::onCmdUseSelectedEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 175 of file GNECrossingFrame.cpp.
References GNECrossingFrame::getCrossingParameters(), myCrossingFrameParent, myCurrentJunction, and GNECrossingFrame::crossingParameters::useSelectedEdges().
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().
|
private |
button for help
Definition at line 116 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().
|
private |
button for clear selection
Definition at line 119 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().
|
private |
pointer to GNECrossingFrame parent
Definition at line 110 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), enableEdgeSelector(), onCmdClearSelection(), onCmdInvertSelection(), onCmdUseSelectedEdges(), and restoreEdgeColors().
|
private |
current Junction
Definition at line 125 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), enableEdgeSelector(), getCurrentJunction(), onCmdInvertSelection(), onCmdUseSelectedEdges(), and restoreEdgeColors().
|
private |
button for invert selection
Definition at line 122 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().
|
private |
CheckBox for selected edges.
Definition at line 113 of file GNECrossingFrame.h.
Referenced by disableEdgeSelector(), edgesSelector(), and enableEdgeSelector().