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


Public Member Functions | |
| void | clearEdges () |
| clear edges More... | |
| crossingParameters (GNECrossingFrame *crossingFrameParent, GNECrossingFrame::edgesSelector *es) | |
| FOX-declaration. More... | |
| void | disableCrossingParameters () |
| disable crossing parameters and clear parameters More... | |
| void | enableCrossingParameters () |
| enable crossing parameters and set the default value of parameters More... | |
| const RGBColor & | getCandidateColor () const |
| get candidate color More... | |
| std::vector< NBEdge * > | getCrossingEdges () const |
| get crossing NBedges More... | |
| bool | getCrossingPriority () const |
| get crossing priority More... | |
| double | getCrossingWidth () const |
| get crossing width More... | |
| const RGBColor & | getSelectedColor () const |
| get selected color 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... | |
| GNECrossingFrame::edgesSelector * | myEdgeSelector |
| pointer to edge selector More... | |
| FXButton * | myHelpCrossingAttribute |
| button for help More... | |
Static Private Attributes | |
| static RGBColor | myCandidateColor |
| color for candidate edges More... | |
| static RGBColor | mySelectedColor |
| color for selected edges More... | |
Definition at line 131 of file GNECrossingFrame.h.
| GNECrossingFrame::crossingParameters::crossingParameters | ( | GNECrossingFrame * | crossingFrameParent, |
| GNECrossingFrame::edgesSelector * | es | ||
| ) |
FOX-declaration.
constructor
Definition at line 207 of file GNECrossingFrame.cpp.
References RGBColor::GREEN, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_SET_ATTRIBUTE, MID_HELP, myCandidateColor, myCrossingEdges, myCrossingEdgesLabel, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, mySelectedColor, SUMO_ATTR_EDGES, SUMO_ATTR_PRIORITY, SUMO_ATTR_WIDTH, and toString().
| GNECrossingFrame::crossingParameters::~crossingParameters | ( | ) |
destructor
Definition at line 240 of file GNECrossingFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 192 of file GNECrossingFrame.h.
| void GNECrossingFrame::crossingParameters::clearEdges | ( | ) |
clear edges
Definition at line 310 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 262 of file GNECrossingFrame.cpp.
References myCrossingEdges, myCrossingEdgesLabel, myCrossingFrameParent, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, and GNECrossingFrame::setCreateCrossingButton().
Referenced by GNECrossingFrame::edgesSelector::disableEdgeSelector().
| void GNECrossingFrame::crossingParameters::enableCrossingParameters | ( | ) |
enable crossing parameters and set the default value of parameters
Definition at line 244 of file GNECrossingFrame.cpp.
References myCrossingEdges, myCrossingEdgesLabel, myCrossingPriorityCheckButton, myCrossingPriorityLabel, myCrossingWidth, myCrossingWidthLabel, myHelpCrossingAttribute, onCmdSetAttribute(), SUMO_ATTR_PRIORITY, SUMO_ATTR_WIDTH, and SUMO_TAG_CROSSING.
Referenced by GNECrossingFrame::addCrossing().
| const RGBColor & GNECrossingFrame::crossingParameters::getCandidateColor | ( | ) | const |
get candidate color
Definition at line 379 of file GNECrossingFrame.cpp.
References myCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
| std::vector< NBEdge * > GNECrossingFrame::crossingParameters::getCrossingEdges | ( | ) | const |
get crossing NBedges
Definition at line 346 of file GNECrossingFrame.cpp.
References myCurrentSelectedEdges.
Referenced by GNECrossingFrame::onCmdCreateCrossing().
| bool GNECrossingFrame::crossingParameters::getCrossingPriority | ( | ) | const |
get crossing priority
Definition at line 357 of file GNECrossingFrame.cpp.
References myCrossingPriorityCheckButton.
Referenced by GNECrossingFrame::onCmdCreateCrossing().
| double GNECrossingFrame::crossingParameters::getCrossingWidth | ( | ) | const |
get crossing width
Definition at line 373 of file GNECrossingFrame.cpp.
References myCrossingWidth.
Referenced by GNECrossingFrame::onCmdCreateCrossing().
| const RGBColor & GNECrossingFrame::crossingParameters::getSelectedColor | ( | ) | const |
get selected color
Definition at line 385 of file GNECrossingFrame.cpp.
References mySelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
| void GNECrossingFrame::crossingParameters::invertEdges | ( | GNEJunction * | parentJunction | ) |
invert edges
Definition at line 318 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 281 of file GNECrossingFrame.cpp.
References myCrossingEdgesLabel.
| bool GNECrossingFrame::crossingParameters::isCurrentParametersValid | ( | ) | const |
check if current parameters are valid
Definition at line 367 of file GNECrossingFrame.cpp.
References myCurrentParametersValid.
Referenced by GNECrossingFrame::onCmdCreateCrossing().
| void GNECrossingFrame::crossingParameters::markEdge | ( | GNEEdge * | edge | ) |
mark or dismark edge
Definition at line 287 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::getCurrentJunction(), GNECrossingFrame::getEdgeSelector(), GNEJunction::getGNEEdges(), GNEAttributeCarrier::getID(), joinToString(), myCrossingEdges, myCrossingFrameParent, and onCmdSetAttribute().
Referenced by GNECrossingFrame::addCrossing().
| long GNECrossingFrame::crossingParameters::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when help button is pressed.
Definition at line 470 of file GNECrossingFrame.cpp.
References GNEAttributeCarrier::allowedAttributes(), GNEAttributeCarrier::getDefinition(), GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, ICON_ACCEPT, GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), GNEAttributeCarrier::isTime(), MID_TABLE, SUMO_TAG_CROSSING, and toString().
| long GNECrossingFrame::crossingParameters::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 391 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::getCurrentJunction(), GNECrossingFrame::getEdgeSelector(), GNEJunction::getGNEEdges(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myCandidateColor, myCrossingEdges, myCrossingFrameParent, myCrossingPriorityCheckButton, myCrossingWidth, myCurrentParametersValid, myCurrentSelectedEdges, myEdgeSelector, mySelectedColor, GNENet::retrieveEdge(), and GNECrossingFrame::setCreateCrossingButton().
Referenced by clearEdges(), enableCrossingParameters(), invertEdges(), markEdge(), and useSelectedEdges().
| void GNECrossingFrame::crossingParameters::useSelectedEdges | ( | GNEJunction * | parentJunction | ) |
use selected eges
Definition at line 332 of file GNECrossingFrame.cpp.
References GNEJunction::getGNEEdges(), gSelected, GUISelectedStorage::isSelected(), joinToString(), myCrossingEdges, and onCmdSetAttribute().
Referenced by GNECrossingFrame::edgesSelector::onCmdUseSelectedEdges().
|
staticprivate |
color for candidate edges
Definition at line 229 of file GNECrossingFrame.h.
Referenced by crossingParameters(), getCandidateColor(), and onCmdSetAttribute().
|
private |
TextField for edges.
Definition at line 208 of file GNECrossingFrame.h.
Referenced by clearEdges(), crossingParameters(), disableCrossingParameters(), enableCrossingParameters(), invertEdges(), markEdge(), onCmdSetAttribute(), and useSelectedEdges().
|
private |
Label for edges.
Definition at line 205 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), enableCrossingParameters(), and isCrossingParametersEnabled().
|
private |
pointer to GNECrossingFrame parent
Definition at line 196 of file GNECrossingFrame.h.
Referenced by disableCrossingParameters(), markEdge(), and onCmdSetAttribute().
|
private |
CheckBox for Priority.
Definition at line 214 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), enableCrossingParameters(), getCrossingPriority(), and onCmdSetAttribute().
|
private |
Label for Priority.
Definition at line 211 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().
|
private |
TextField for width.
Definition at line 220 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), enableCrossingParameters(), getCrossingWidth(), and onCmdSetAttribute().
|
private |
Label for width.
Definition at line 217 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().
|
private |
flag to check if current parameters are valid
Definition at line 226 of file GNECrossingFrame.h.
Referenced by isCurrentParametersValid(), and onCmdSetAttribute().
|
private |
current selected edges
Definition at line 202 of file GNECrossingFrame.h.
Referenced by getCrossingEdges(), invertEdges(), and onCmdSetAttribute().
|
private |
pointer to edge selector
Definition at line 199 of file GNECrossingFrame.h.
Referenced by onCmdSetAttribute().
|
private |
button for help
Definition at line 223 of file GNECrossingFrame.h.
Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().
|
staticprivate |
color for selected edges
Definition at line 232 of file GNECrossingFrame.h.
Referenced by crossingParameters(), getSelectedColor(), and onCmdSetAttribute().