![]() |
Eclipse 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... | |
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 121 of file GNECrossingFrame.h.
| GNECrossingFrame::CrossingParameters::CrossingParameters | ( | GNECrossingFrame * | crossingFrameParent | ) |
FOX-declaration.
constructor
Definition at line 190 of file GNECrossingFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButton, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, 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 219 of file GNECrossingFrame.cpp.
| void GNECrossingFrame::CrossingParameters::clearEdges | ( | ) |
clear edges
Definition at line 301 of file GNECrossingFrame.cpp.
Referenced by GNECrossingFrame::addCrossing().
| void GNECrossingFrame::CrossingParameters::disableCrossingParameters | ( | ) |
disable crossing parameters and clear parameters
Definition at line 253 of file GNECrossingFrame.cpp.
| void GNECrossingFrame::CrossingParameters::enableCrossingParameters | ( | bool | hasTLS | ) |
enable crossing parameters and set the default value of parameters
Definition at line 223 of file GNECrossingFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), 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 337 of file GNECrossingFrame.cpp.
| bool GNECrossingFrame::CrossingParameters::getCrossingPriority | ( | ) | const |
get crossing priority
Definition at line 348 of file GNECrossingFrame.cpp.
| double GNECrossingFrame::CrossingParameters::getCrossingWidth | ( | ) | const |
get crossing width
Definition at line 364 of file GNECrossingFrame.cpp.
| void GNECrossingFrame::CrossingParameters::invertEdges | ( | GNEJunction * | parentJunction | ) |
invert edges
Definition at line 309 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), and joinToString().
| bool GNECrossingFrame::CrossingParameters::isCrossingParametersEnabled | ( | ) | const |
check if currently the CrossingParameters is enabled
Definition at line 272 of file GNECrossingFrame.cpp.
| bool GNECrossingFrame::CrossingParameters::isCurrentParametersValid | ( | ) | const |
check if current parameters are valid
Definition at line 358 of file GNECrossingFrame.cpp.
| void GNECrossingFrame::CrossingParameters::markEdge | ( | GNEEdge * | edge | ) |
mark or dismark edge
Definition at line 278 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), GNEAttributeCarrier::getID(), and joinToString().
Referenced by GNECrossingFrame::addCrossing().
| long GNECrossingFrame::CrossingParameters::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when help button is pressed.
Definition at line 449 of file GNECrossingFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), and SUMO_TAG_CROSSING.
| long GNECrossingFrame::CrossingParameters::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 370 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), GNENetElement::getNet(), and GNENet::retrieveEdge().
| void GNECrossingFrame::CrossingParameters::useSelectedEdges | ( | GNEJunction * | parentJunction | ) |
use selected eges
Definition at line 323 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), and joinToString().
|
private |
TextField for edges.
Definition at line 188 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
Label for edges.
Definition at line 185 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
pointer to GNECrossingFrame parent
Definition at line 179 of file GNECrossingFrame.h.
|
private |
CheckBox for Priority.
Definition at line 194 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
Label for Priority.
Definition at line 191 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
TextField for width.
Definition at line 200 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
Label for width.
Definition at line 197 of file GNECrossingFrame.h.
Referenced by CrossingParameters().
|
private |
flag to check if current parameters are valid
Definition at line 206 of file GNECrossingFrame.h.
|
private |
current selected edges
Definition at line 182 of file GNECrossingFrame.h.
|
private |
button for help
Definition at line 203 of file GNECrossingFrame.h.
Referenced by CrossingParameters().