![]() |
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 width) |
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... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
Vertical frame that holds all widgets of frame. More... | |
FXFont * | myFrameHeaderFont |
Font for the Header. More... | |
FXLabel * | myFrameHeaderLabel |
the label for the frame's header 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 |
the window to inform when the tls is modfied 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 50 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 530 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::crossingParameters::getCandidateColor(), MFXUtils::getFXColor(), GNECrossingFrame::crossingParameters::getSelectedColor(), GUIDesignButton, GUIDesignGroupBoxFrame, GUIDesignLabelLeft, MID_GNE_CREATE_CROSSING, myColorCandidateLabel, myColorSelectedLabel, GNEFrame::myContentFrame, myCreateCrossingButton, myCrossingParameters, myCurrentJunctionLabel, myEdgeSelector, myGroupBoxButtons, myGroupBoxLabel, and myGroupBoxLegend.
GNECrossingFrame::~GNECrossingFrame | ( | ) |
Destructor.
Definition at line 559 of file GNECrossingFrame.cpp.
References gSelected, and GUISelectedStorage::remove2Update().
|
inlineprotected |
FOX needs this.
Definition at line 280 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 NULL |
Definition at line 582 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::crossingParameters::enableCrossingParameters(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEAttributeCarrier::getID(), GNELane::getParentEdge(), GNECrossingFrame::crossingParameters::markEdge(), myCrossingParameters, myCurrentJunctionLabel, myEdgeSelector, and GNECrossingFrame::edgesSelector::restoreEdgeColors().
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
focus upper element of frame
Definition at line 92 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 650 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 644 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 135 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 129 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectMultisection().
|
static |
get list of selecte id's in string format
|
inherited |
get view net
Definition at line 123 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEInspectorFrame::onCmdSetBlocking(), GNEDeleteFrame::removeAttributeCarrier(), and GNECrossingFrame::edgesSelector::restoreEdgeColors().
|
virtual |
hide crossing frame
Reimplemented from GNEFrame.
Definition at line 565 of file GNECrossingFrame.cpp.
References GNECrossingFrame::edgesSelector::getCurrentJunction(), GNEJunction::getGNEEdges(), GNEFrame::hide(), and myEdgeSelector.
long GNECrossingFrame::onCmdCreateCrossing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 612 of file GNECrossingFrame.cpp.
References NBNode::checkCrossingDuplicated(), 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.
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 634 of file GNECrossingFrame.cpp.
References myCreateCrossingButton.
Referenced by GNECrossingFrame::crossingParameters::disableCrossingParameters(), and GNECrossingFrame::crossingParameters::onCmdSetAttribute().
|
inherited |
set width of GNEFrame
Definition at line 116 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtualinherited |
show Frame
Reimplemented in GNEAdditionalFrame, GNEInspectorFrame, and GNESelectorFrame.
Definition at line 98 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::removeAttributeCarrier(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEAdditionalFrame::show(), and GNEViewNet::updateModeSpecificControls().
|
private |
Label for color candidate.
Definition at line 305 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
Label for color selected.
Definition at line 308 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 104 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
FXButton for create Crossing
Definition at line 299 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame(), and setCreateCrossingButton().
|
private |
crossing parameters
Definition at line 287 of file GNECrossingFrame.h.
Referenced by addCrossing(), getCrossingParameters(), GNECrossingFrame(), and onCmdCreateCrossing().
|
private |
Label for current Junction.
Definition at line 293 of file GNECrossingFrame.h.
Referenced by addCrossing(), and GNECrossingFrame().
|
private |
edge selector
Definition at line 284 of file GNECrossingFrame.h.
Referenced by addCrossing(), getEdgeSelector(), GNECrossingFrame(), hide(), and onCmdCreateCrossing().
|
protectedinherited |
Font for the Header.
Definition at line 98 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
protectedinherited |
the label for the frame's header
Definition at line 101 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), GNEFrame::GNEFrame(), and GNESelectorFrame::selectionUpdated().
|
private |
groupbox for buttons
Definition at line 296 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for the junction label
Definition at line 290 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for Legend
Definition at line 302 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
fame for header elements
Definition at line 107 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 110 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 113 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 95 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNETLSEditorFrame::buildIinternalLanes(), GNEDeleteFrame::createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEDeleteFrame::onCmdCenterItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdSave(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().