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


Data Structures | |
| class | crossingParameters |
| class | edgesSelector |
| FOX-declaration. More... | |
Public Member Functions | |
| bool | addCrossing (GNENetElement *netElement) |
| add Crossing element More... | |
| void | focusUpperElement () |
| focus upper element of frame More... | |
| GNECrossingFrame::crossingParameters * | getCrossingParameters () const |
| get Crossing parameters More... | |
| GNECrossingFrame::edgesSelector * | getEdgeSelector () const |
| get edge selector More... | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame More... | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header More... | |
| GNEViewNet * | getViewNet () const |
| get view net More... | |
| GNECrossingFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
| Constructor. More... | |
| void | hide () |
| hide crossing frame More... | |
| void | removeCrossing (GNECrossing *Crossing) |
| remove an Crossing element previously added More... | |
| void | setCreateCrossingButton (bool value) |
| enable or disable button create edges More... | |
| void | setFrameWidth (int newWidth) |
| set width of GNEFrame More... | |
| virtual void | show () |
| show Frame More... | |
| ~GNECrossingFrame () | |
| Destructor. More... | |
FOX-callbacks | |
Called when the user press the button create edge | |
| long | onCmdCreateCrossing (FXObject *, FXSelector, void *) |
Static Public Member Functions | |
| static std::string | getIdsSelected (const FXList *list) |
| get list of selecte id's in string format More... | |
Protected Member Functions | |
| GNECrossingFrame () | |
| FOX needs this. More... | |
| void | openHelpAttributesDialog (SumoXMLTag tag) const |
| Open help attributes dialog. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| Vertical frame that holds all widgets of frame. More... | |
| FXHorizontalFrame * | myHeaderFrame |
| fame for header elements More... | |
| FXHorizontalFrame * | myHeaderLeftFrame |
| fame for left header elements More... | |
| FXHorizontalFrame * | myHeaderRightFrame |
| fame for right header elements More... | |
| GNEViewNet * | myViewNet |
| View Net for changes. More... | |
Private Attributes | |
| FXLabel * | myColorCandidateLabel |
| Label for color candidate. More... | |
| FXLabel * | myColorSelectedLabel |
| Label for color selected. More... | |
| FXButton * | myCreateCrossingButton |
| FXButton for create Crossing More... | |
| GNECrossingFrame::crossingParameters * | myCrossingParameters |
| crossing parameters More... | |
| FXLabel * | myCurrentJunctionLabel |
| Label for current Junction. More... | |
| GNECrossingFrame::edgesSelector * | myEdgeSelector |
| edge selector More... | |
| FXGroupBox * | myGroupBoxButtons |
| groupbox for buttons More... | |
| FXGroupBox * | myGroupBoxLabel |
| groupbox for the junction label More... | |
| FXGroupBox * | myGroupBoxLegend |
| groupbox for Legend More... | |
The Widget for setting internal attributes of Crossing elements
Definition at line 43 of file GNECrossingFrame.h.
| GNECrossingFrame::GNECrossingFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 461 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::crossingParameters::getCandidateColor(), MFXUtils::getFXColor(), GNECrossingFrame::crossingParameters::getSelectedColor(), GUIDesignButton, GUIDesignGroupBoxFrame, GUIDesignLabelLeft, MID_GNE_CROSSINGFRAME_CREATECROSSING, myColorCandidateLabel, myColorSelectedLabel, GNEFrame::myContentFrame, myCreateCrossingButton, myCrossingParameters, myCurrentJunctionLabel, myEdgeSelector, myGroupBoxButtons, myGroupBoxLabel, and myGroupBoxLegend.
| GNECrossingFrame::~GNECrossingFrame | ( | ) |
Destructor.
Definition at line 490 of file GNECrossingFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 264 of file GNECrossingFrame.h.
| bool GNECrossingFrame::addCrossing | ( | GNENetElement * | netElement | ) |
add Crossing element
| [in] | netElement | clicked netElement. if user didn't clicked over a GNENetElement in view, netElement will be nullptr |
Definition at line 504 of file GNECrossingFrame.cpp.
References GNECrossingFrame::crossingParameters::clearEdges(), GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::crossingParameters::enableCrossingParameters(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNELane::getParentEdge(), NBNode::isTLControlled(), GNECrossingFrame::crossingParameters::markEdge(), myCrossingParameters, myCurrentJunctionLabel, myEdgeSelector, and GNECrossingFrame::edgesSelector::restoreEdgeColors().
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
focus upper element of frame
Definition at line 735 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
| GNECrossingFrame::crossingParameters * GNECrossingFrame::getCrossingParameters | ( | ) | const |
get Crossing parameters
Definition at line 576 of file GNECrossingFrame.cpp.
References myCrossingParameters.
Referenced by GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::edgesSelector::onCmdClearSelection(), GNECrossingFrame::edgesSelector::onCmdInvertSelection(), and GNECrossingFrame::edgesSelector::onCmdUseSelectedEdges().
| GNECrossingFrame::edgesSelector * GNECrossingFrame::getEdgeSelector | ( | ) | const |
get edge selector
Definition at line 570 of file GNECrossingFrame.cpp.
References myEdgeSelector.
Referenced by GNECrossingFrame::crossingParameters::markEdge(), and GNECrossingFrame::crossingParameters::onCmdSetAttribute().
|
inherited |
get font of the header's frame
Definition at line 778 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 772 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
static |
get list of selecte id's in string format
|
inherited |
get view net
Definition at line 766 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNETLSEditorFrame::TLSFile::myStartElement(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEPolygonFrame::DrawingMode::stopDrawing(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().
|
virtual |
hide crossing frame
Reimplemented from GNEFrame.
Definition at line 495 of file GNECrossingFrame.cpp.
References GNEFrame::hide(), myEdgeSelector, and GNECrossingFrame::edgesSelector::restoreEdgeColors().
| long GNECrossingFrame::onCmdCreateCrossing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 536 of file GNECrossingFrame.cpp.
References NBNode::checkCrossingDuplicated(), PositionVector::EMPTY, GNECrossingFrame::crossingParameters::getCrossingEdges(), GNECrossingFrame::crossingParameters::getCrossingPriority(), GNECrossingFrame::crossingParameters::getCrossingWidth(), GNECrossingFrame::edgesSelector::getCurrentJunction(), GNEJunction::getNBNode(), GNEViewNet::getUndoList(), GNECrossingFrame::crossingParameters::isCurrentParametersValid(), myCrossingParameters, myEdgeSelector, GNEFrame::myViewNet, GNECrossingFrame::edgesSelector::onCmdClearSelection(), and WRITE_WARNING.
Referenced by GNEViewNet::hotkeyEnter().
|
protectedinherited |
Open help attributes dialog.
Definition at line 784 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getTagProperties(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNECrossingFrame::crossingParameters::onCmdHelp(), GNEAdditionalFrame::AdditionalAttributes::onCmdHelp(), and GNEPolygonFrame::ShapeAttributes::onCmdHelp().
| void GNECrossingFrame::removeCrossing | ( | GNECrossing * | Crossing | ) |
remove an Crossing element previously added
| [in] | Crossing | element to erase |
| void GNECrossingFrame::setCreateCrossingButton | ( | bool | value | ) |
enable or disable button create edges
Definition at line 560 of file GNECrossingFrame.cpp.
References myCreateCrossingButton.
Referenced by GNECrossingFrame::crossingParameters::disableCrossingParameters(), and GNECrossingFrame::crossingParameters::onCmdSetAttribute().
|
inherited |
set width of GNEFrame
Definition at line 759 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtualinherited |
show Frame
Reimplemented in GNEAdditionalFrame, GNEPolygonFrame, GNEInspectorFrame, GNESelectorFrame, GNEDeleteFrame, and GNEProhibitionFrame.
Definition at line 741 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEProhibitionFrame::show(), GNEDeleteFrame::show(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEPolygonFrame::show(), GNEAdditionalFrame::show(), GNEFrame::ACHierarchy::showACHierarchy(), GNEFrame::GenericParametersEditor::showGenericParametersEditor(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNEViewNet::updateModeSpecificControls().
|
private |
Label for color candidate.
Definition at line 289 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
Label for color selected.
Definition at line 292 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 235 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame(), GNEFrame::GNEFrame(), GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
FXButton for create Crossing
Definition at line 283 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame(), and setCreateCrossingButton().
|
private |
crossing parameters
Definition at line 271 of file GNECrossingFrame.h.
Referenced by addCrossing(), getCrossingParameters(), GNECrossingFrame(), and onCmdCreateCrossing().
|
private |
Label for current Junction.
Definition at line 277 of file GNECrossingFrame.h.
Referenced by addCrossing(), and GNECrossingFrame().
|
private |
edge selector
Definition at line 268 of file GNECrossingFrame.h.
Referenced by addCrossing(), getEdgeSelector(), GNECrossingFrame(), hide(), and onCmdCreateCrossing().
|
private |
groupbox for buttons
Definition at line 280 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for the junction label
Definition at line 274 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for Legend
Definition at line 286 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
fame for header elements
Definition at line 238 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 241 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 244 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
View Net for changes.
Definition at line 232 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectElement(), GNEConnectorFrame::onCmdCancel(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::onCmdClearSelectedConnections(), onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::show(), and GNEFrame::show().