![]() |
SUMO - Simulation of Urban MObility
|
#include <GNECrossingFrame.h>


Public Member Functions | |
| void | clearEdges () |
| clear edges More... | |
| CrossingParameters (GNECrossingFrame *crossingFrameParent) | |
| FOX-declaration. More... | |
| void | disableCrossingParameters () |
| disable crossing parameters and clear parameters More... | |
| void | enableCrossingParameters (bool hasTLS) |
| enable crossing parameters and set the default value of parameters More... | |
| std::vector< NBEdge * > | getCrossingEdges () const |
| get crossing NBedges More... | |
| bool | getCrossingPriority () const |
| get crossing priority More... | |
| double | getCrossingWidth () const |
| get crossing width More... | |
| void | invertEdges (GNEJunction *parentJunction) |
| invert edges More... | |
| bool | isCrossingParametersEnabled () const |
| check if currently the CrossingParameters is enabled More... | |
| bool | isCurrentParametersValid () const |
| check if current parameters are valid More... | |
| void | markEdge (GNEEdge *edge) |
| mark or dismark edge More... | |
| void | useSelectedEdges (GNEJunction *parentJunction) |
| use selected eges More... | |
| ~CrossingParameters () | |
| destructor More... | |
FOX-callbacks | |
Called when user set a value | |
| long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
| long | onCmdHelp (FXObject *, FXSelector, void *) |
| Called when help button is pressed. More... | |
Protected Member Functions | |
| CrossingParameters () | |
| FOX needs this. More... | |
Private Attributes | |
| FXTextField * | myCrossingEdges |
| TextField for edges. More... | |
| FXLabel * | myCrossingEdgesLabel |
| Label for edges. More... | |
| GNECrossingFrame * | myCrossingFrameParent |
| pointer to GNECrossingFrame parent More... | |
| FXCheckButton * | myCrossingPriorityCheckButton |
| CheckBox for Priority. More... | |
| FXLabel * | myCrossingPriorityLabel |
| Label for Priority. More... | |
| FXTextField * | myCrossingWidth |
| TextField for width. More... | |
| FXLabel * | myCrossingWidthLabel |
| Label for width. More... | |
| bool | myCurrentParametersValid |
| flag to check if current parameters are valid More... | |
| std::vector< GNEEdge * > | myCurrentSelectedEdges |
| current selected edges More... | |
| FXButton * | myHelpCrossingAttribute |
| button for help More... | |
Definition at line 123 of file GNECrossingFrame.h.
| GNECrossingFrame::CrossingParameters::CrossingParameters | ( | GNECrossingFrame * | crossingFrameParent | ) |
FOX-declaration.
constructor
Definition at line 191 of file GNECrossingFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_SET_ATTRIBUTE, MID_HELP, myCrossingEdges, myCrossingEdgesLabel, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, SUMO_ATTR_EDGES, SUMO_ATTR_PRIORITY, SUMO_ATTR_WIDTH, and toString().
| GNECrossingFrame::CrossingParameters::~CrossingParameters | ( | ) |
destructor
Definition at line 220 of file GNECrossingFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 178 of file GNECrossingFrame.h.
| void GNECrossingFrame::CrossingParameters::clearEdges | ( | ) |
clear edges
Definition at line 297 of file GNECrossingFrame.cpp.
References myCrossingEdges, and onCmdSetAttribute().
Referenced by GNECrossingFrame::addCrossing(), and GNECrossingFrame::EdgesSelector::onCmdClearSelection().
| void GNECrossingFrame::CrossingParameters::disableCrossingParameters | ( | ) |
disable crossing parameters and clear parameters
Definition at line 249 of file GNECrossingFrame.cpp.
References GNECrossingFrame::myCreateCrossing, myCrossingEdges, myCrossingEdgesLabel, myCrossingFrameParent, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, and GNECrossingFrame::CreateCrossing::setCreateCrossingButton().
Referenced by GNECrossingFrame::EdgesSelector::disableEdgeSelector().
| void GNECrossingFrame::CrossingParameters::enableCrossingParameters | ( | bool | hasTLS | ) |
enable crossing parameters and set the default value of parameters
Definition at line 224 of file GNECrossingFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), myCrossingEdges, myCrossingEdgesLabel, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, onCmdSetAttribute(), SUMO_ATTR_PRIORITY, SUMO_ATTR_WIDTH, and SUMO_TAG_CROSSING.
Referenced by GNECrossingFrame::addCrossing().
| std::vector< NBEdge * > GNECrossingFrame::CrossingParameters::getCrossingEdges | ( | ) | const |
get crossing NBedges
Definition at line 333 of file GNECrossingFrame.cpp.
References myCurrentSelectedEdges.
Referenced by GNECrossingFrame::CreateCrossing::onCmdCreateCrossing().
| bool GNECrossingFrame::CrossingParameters::getCrossingPriority | ( | ) | const |
get crossing priority
Definition at line 344 of file GNECrossingFrame.cpp.
References myCrossingPriorityCheckButton.
Referenced by GNECrossingFrame::CreateCrossing::onCmdCreateCrossing().
| double GNECrossingFrame::CrossingParameters::getCrossingWidth | ( | ) | const |
get crossing width
Definition at line 360 of file GNECrossingFrame.cpp.
References myCrossingWidth.
Referenced by GNECrossingFrame::CreateCrossing::onCmdCreateCrossing().
| void GNECrossingFrame::CrossingParameters::invertEdges | ( | GNEJunction * | parentJunction | ) |
invert edges
Definition at line 305 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), joinToString(), myCrossingEdges, myCurrentSelectedEdges, and onCmdSetAttribute().
Referenced by GNECrossingFrame::EdgesSelector::onCmdInvertSelection().
| bool GNECrossingFrame::CrossingParameters::isCrossingParametersEnabled | ( | ) | const |
check if currently the CrossingParameters is enabled
Definition at line 268 of file GNECrossingFrame.cpp.
References myCrossingEdgesLabel.
| bool GNECrossingFrame::CrossingParameters::isCurrentParametersValid | ( | ) | const |
check if current parameters are valid
Definition at line 354 of file GNECrossingFrame.cpp.
References myCurrentParametersValid.
Referenced by GNECrossingFrame::CreateCrossing::onCmdCreateCrossing().
| void GNECrossingFrame::CrossingParameters::markEdge | ( | GNEEdge * | edge | ) |
mark or dismark edge
Definition at line 274 of file GNECrossingFrame.cpp.
References GNECrossingFrame::EdgesSelector::getCurrentJunction(), GNEJunction::getGNEEdges(), GNEAttributeCarrier::getID(), joinToString(), myCrossingEdges, myCrossingFrameParent, GNECrossingFrame::myEdgeSelector, and onCmdSetAttribute().
Referenced by GNECrossingFrame::addCrossing().
| long GNECrossingFrame::CrossingParameters::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when help button is pressed.
Definition at line 445 of file GNECrossingFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), myCrossingFrameParent, GNEFrame::openHelpAttributesDialog(), and SUMO_TAG_CROSSING.
| long GNECrossingFrame::CrossingParameters::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 366 of file GNECrossingFrame.cpp.
References GNECrossingFrame::EdgesSelector::getCurrentJunction(), GNEFrame::getEdgeCandidateColor(), GNEFrame::getEdgeCandidateSelectedColor(), GNEJunction::getGNEEdges(), GNEViewNet::getNet(), GNEFrame::getViewNet(), GNECrossingFrame::myCreateCrossing, myCrossingEdges, myCrossingFrameParent, myCrossingPriorityCheckButton, myCrossingWidth, myCurrentParametersValid, myCurrentSelectedEdges, GNECrossingFrame::myEdgeSelector, GNENet::retrieveEdge(), and GNECrossingFrame::CreateCrossing::setCreateCrossingButton().
Referenced by clearEdges(), enableCrossingParameters(), invertEdges(), markEdge(), and useSelectedEdges().
| void GNECrossingFrame::CrossingParameters::useSelectedEdges | ( | GNEJunction * | parentJunction | ) |
use selected eges
Definition at line 319 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), joinToString(), myCrossingEdges, and onCmdSetAttribute().
Referenced by GNECrossingFrame::EdgesSelector::onCmdUseSelectedEdges().
|
private |
TextField for edges.
Definition at line 191 of file GNECrossingFrame.h.
Referenced by clearEdges(), CrossingParameters(), disableCrossingParameters(), enableCrossingParameters(), invertEdges(), markEdge(), onCmdSetAttribute(), and useSelectedEdges().
|
private |
Label for edges.
Definition at line 188 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), enableCrossingParameters(), and isCrossingParametersEnabled().
|
private |
pointer to GNECrossingFrame parent
Definition at line 182 of file GNECrossingFrame.h.
Referenced by disableCrossingParameters(), markEdge(), onCmdHelp(), and onCmdSetAttribute().
|
private |
CheckBox for Priority.
Definition at line 197 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), enableCrossingParameters(), getCrossingPriority(), and onCmdSetAttribute().
|
private |
Label for Priority.
Definition at line 194 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), and enableCrossingParameters().
|
private |
TextField for width.
Definition at line 203 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), enableCrossingParameters(), getCrossingWidth(), and onCmdSetAttribute().
|
private |
Label for width.
Definition at line 200 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), and enableCrossingParameters().
|
private |
flag to check if current parameters are valid
Definition at line 209 of file GNECrossingFrame.h.
Referenced by isCurrentParametersValid(), and onCmdSetAttribute().
|
private |
current selected edges
Definition at line 185 of file GNECrossingFrame.h.
Referenced by getCrossingEdges(), invertEdges(), and onCmdSetAttribute().
|
private |
button for help
Definition at line 206 of file GNECrossingFrame.h.
Referenced by CrossingParameters(), disableCrossingParameters(), and enableCrossingParameters().