![]() |
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... | |
GNEFrame::DrawingMode * | getDrawingMode () const |
get drawing mode editor 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... | |
GNEFrame::GEOAttributes * | getGEOAttributes () const |
get GEO Parameters editor More... | |
GNEFrame::NeteditAttributes * | getNeteditAttributes () const |
get netedit attributes editor 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... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
Vertical frame that holds all widgets of frame. More... | |
GNEFrame::DrawingMode * | myDrawingMode |
drawing mode More... | |
GNEFrame::GEOAttributes * | myGEOAttributes |
GEO Parameters. More... | |
FXHorizontalFrame * | myHeaderFrame |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame |
fame for right header elements More... | |
GNEFrame::NeteditAttributes * | myNeteditAttributes |
Netedit parameter. 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 49 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 531 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 560 of file GNECrossingFrame.cpp.
References gSelected, and GUISelectedStorage::remove2Update().
|
inlineprotected |
FOX needs this.
Definition at line 279 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 575 of file GNECrossingFrame.cpp.
References GNECrossingFrame::crossingParameters::clearEdges(), 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 540 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 647 of file GNECrossingFrame.cpp.
References myCrossingParameters.
Referenced by GNECrossingFrame::edgesSelector::disableEdgeSelector(), GNECrossingFrame::edgesSelector::onCmdClearSelection(), GNECrossingFrame::edgesSelector::onCmdInvertSelection(), and GNECrossingFrame::edgesSelector::onCmdUseSelectedEdges().
|
inherited |
get drawing mode editor
Definition at line 609 of file GNEFrame.cpp.
References GNEFrame::myDrawingMode.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyEnter(), GNEViewNet::onRightBtnPress(), and GNEViewNet::onRightBtnRelease().
GNECrossingFrame::edgesSelector * GNECrossingFrame::getEdgeSelector | ( | ) | const |
get edge selector
Definition at line 641 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 583 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 577 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectMultisection().
|
inherited |
get GEO Parameters editor
Definition at line 599 of file GNEFrame.cpp.
References GNEFrame::myGEOAttributes.
|
static |
get list of selecte id's in string format
|
inherited |
get netedit attributes editor
Definition at line 589 of file GNEFrame.cpp.
References GNEFrame::myNeteditAttributes.
Referenced by GNEFrame::DrawingMode::stopDrawing().
|
inherited |
get view net
Definition at line 571 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEFrame::DrawingMode::abortDrawing(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEInspectorFrame::NeteditParameters::onCmdChangeAdditionalParent(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingMovement(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingShape(), GNEInspectorFrame::NeteditParameters::onCmdSetClosingShape(), GNEFrame::GEOAttributes::onCmdSetGEOAttribute(), GNEFrame::GEOAttributes::onCmdUseGEOParameters(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), and GNEFrame::DrawingMode::stopDrawing().
|
virtual |
hide crossing frame
Reimplemented from GNEFrame.
Definition at line 566 of file GNECrossingFrame.cpp.
References GNEFrame::hide(), myEdgeSelector, and GNECrossingFrame::edgesSelector::restoreEdgeColors().
long GNECrossingFrame::onCmdCreateCrossing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 607 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().
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 631 of file GNECrossingFrame.cpp.
References myCreateCrossingButton.
Referenced by GNECrossingFrame::crossingParameters::disableCrossingParameters(), and GNECrossingFrame::crossingParameters::onCmdSetAttribute().
|
inherited |
set width of GNEFrame
Definition at line 564 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtualinherited |
show Frame
Reimplemented in GNEAdditionalFrame, GNEPolygonFrame, GNEInspectorFrame, and GNESelectorFrame.
Definition at line 546 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::removeAttributeCarrier(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEPolygonFrame::show(), GNEAdditionalFrame::show(), and GNEViewNet::updateModeSpecificControls().
|
private |
Label for color candidate.
Definition at line 304 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
Label for color selected.
Definition at line 307 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 340 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
FXButton for create Crossing
Definition at line 298 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame(), and setCreateCrossingButton().
|
private |
crossing parameters
Definition at line 286 of file GNECrossingFrame.h.
Referenced by addCrossing(), getCrossingParameters(), GNECrossingFrame(), and onCmdCreateCrossing().
|
private |
Label for current Junction.
Definition at line 292 of file GNECrossingFrame.h.
Referenced by addCrossing(), and GNECrossingFrame().
|
protectedinherited |
drawing mode
Definition at line 358 of file GNEFrame.h.
Referenced by GNEFrame::getDrawingMode(), GNEPolygonFrame::onCmdSelectShape(), and GNEPolygonFrame::processClick().
|
private |
edge selector
Definition at line 283 of file GNECrossingFrame.h.
Referenced by addCrossing(), getEdgeSelector(), GNECrossingFrame(), hide(), and onCmdCreateCrossing().
|
protectedinherited |
GEO Parameters.
Definition at line 355 of file GNEFrame.h.
Referenced by GNEFrame::getGEOAttributes(), GNEInspectorFrame::inspectMultisection(), and GNEInspectorFrame::AttributeInput::onCmdSetAttribute().
|
private |
groupbox for buttons
Definition at line 295 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for the junction label
Definition at line 289 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
private |
groupbox for Legend
Definition at line 301 of file GNECrossingFrame.h.
Referenced by GNECrossingFrame().
|
protectedinherited |
fame for header elements
Definition at line 343 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 346 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 349 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
Netedit parameter.
Definition at line 352 of file GNEFrame.h.
Referenced by GNEPolygonFrame::buildPoly(), GNEFrame::getNeteditAttributes(), GNEPolygonFrame::onCmdSelectShape(), and GNEPolygonFrame::processClick().
|
protectedinherited |
View Net for changes.
Definition at line 337 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), 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::onCmdCenterChildItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectChildItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().