![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNECreateEdgeFrame.h>
Data Structures | |
| class | EdgeTypeSelector |
| class | LaneTypeSelector |
| class | Legend |
Public Member Functions | |
| void | abortEdgeCreation () |
| abort current edge creation | |
| void | focusUpperElement () |
| focus upper element of frame | |
| virtual void | frameWidthUpdated () |
| function called after setting new width in current frame (can be reimplemented in frame children) | |
| FXVerticalFrame * | getContentFrame () const |
| get vertical frame that holds all widgets of frame | |
| GNEAttributesEditor * | getEdgeTypeAttributes () const |
| get edgeType attributes | |
| EdgeTypeSelector * | getEdgeTypeSelector () const |
| get edgeType selector | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header | |
| const GNEJunction * | getJunctionSource () const |
| get junction source for new edge | |
| GNEAttributesEditor * | getLaneTypeAttributes () const |
| get laneType attributes | |
| LaneTypeSelector * | getLaneTypeSelector () |
| get lane type selector | |
| int | getScrollBarWidth () const |
| get scrollBar width (zero if is hidden) | |
| GNEViewNet * | getViewNet () const |
| get view net | |
| GNECreateEdgeFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
| Constructor. | |
| void | hide () |
| hide create edge frame | |
| void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
| Open help attributes dialog. | |
| void | processClick (const Position &clickedPosition, const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const bool oppositeEdge, const bool chainEdge) |
| handle processClick and set the relative coloring | |
| void | setFrameWidth (const int newWidth) |
| set width of GNEFrame | |
| void | setUseEdgeTemplate () |
| set default to using edge template | |
| void | show () |
| show create edge frame | |
| virtual void | updateFrameAfterUndoRedo () |
| function called after undo/redo in the current frame (can be reimplemented in frame children) | |
| ~GNECreateEdgeFrame () | |
| Destructor. | |
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety) | |
| virtual void | tagSelected () |
| Tag selected in GNETagSelector. | |
| virtual void | demandElementSelected () |
| selected demand element in DemandElementSelector | |
| virtual bool | shapeDrawed () |
| build a shaped element using the drawed shape | |
| virtual void | attributeUpdated (SumoXMLAttr attribute) |
| function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... | |
| virtual void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
| open GNEAttributesCreator extended dialog | |
| virtual bool | createPath (const bool useLastRoute) |
| create path between two elements | |
Protected Member Functions | |
| void | addBikelane (GNEEdge *edge, const std::string &bikelaneWidth) const |
| add bikelane in the given edge | |
| void | addSidewalk (GNEEdge *edge, const std::string &sidewalkWidth) const |
| add sidewalk in the given edge | |
| void | disablePedestrians (GNEEdge *edge) const |
| disable pedestrians in the given edge (within undoRedo) | |
| const std::vector< std::string > & | getPredefinedTagsMML () const |
| get predefinedTagsMML | |
Static Protected Member Functions | |
| static FXLabel * | buildRainbow (FXComposite *parent) |
| build rainbow in frame modul | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame = nullptr |
| Vertical frame that holds all widgets of frame. | |
| GNEAttributesEditor * | myEdgeTypeAttributesEditor = nullptr |
| internal edgeType attributes | |
| EdgeTypeSelector * | myEdgeTypeSelector = nullptr |
| edge type selector | |
| FXHorizontalFrame * | myHeaderFrame = nullptr |
| fame for header elements | |
| FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
| fame for left header elements | |
| FXHorizontalFrame * | myHeaderRightFrame = nullptr |
| fame for right header elements | |
| GNEAttributesEditor * | myLaneTypeAttributesEditor = nullptr |
| internal laneType attributes | |
| GNECreateEdgeFrame::LaneTypeSelector * | myLaneTypeSelector = nullptr |
| lane type selector | |
| GNECreateEdgeFrame::Legend * | myLegend = nullptr |
| Legend. | |
| GNEViewNet * | myViewNet = nullptr |
| FOX need this. | |
Private Attributes | |
| FXLabel * | myFrameHeaderLabel = nullptr |
| the label for the frame's header | |
| GNEJunction * | myJunctionSource |
| source junction for new edge | |
| std::vector< std::string > | myPredefinedTagsMML |
| Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached). | |
| FXScrollWindow * | myScrollWindowsContents = nullptr |
| scroll windows that holds the content frame | |
Static Private Attributes | |
| static FXFont * | myFrameHeaderFont = nullptr |
| static Font for the Header (it's common for all headers, then create only one time) | |
Definition at line 37 of file GNECreateEdgeFrame.h.
| GNECreateEdgeFrame::GNECreateEdgeFrame | ( | GNEViewParent * | viewParent, |
| GNEViewNet * | viewNet ) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 664 of file GNECreateEdgeFrame.cpp.
References GNEAttributesEditorType::CREATOR, GNEFrame::GNEFrame(), myEdgeTypeAttributesEditor, myEdgeTypeSelector, myJunctionSource, myLaneTypeAttributesEditor, myLaneTypeSelector, myLegend, and TL.
Referenced by GNECreateEdgeFrame::EdgeTypeSelector::EdgeTypeSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), and GNECreateEdgeFrame::Legend::Legend().
| GNECreateEdgeFrame::~GNECreateEdgeFrame | ( | ) |
Destructor.
Definition at line 680 of file GNECreateEdgeFrame.cpp.
| void GNECreateEdgeFrame::abortEdgeCreation | ( | ) |
abort current edge creation
Definition at line 819 of file GNECreateEdgeFrame.cpp.
References myJunctionSource.
|
protected |
add bikelane in the given edge
Definition at line 902 of file GNECreateEdgeFrame.cpp.
References GNEViewNet::addRestrictedLane(), GNEHierarchicalElement::getChildLanes(), GNEAttributeCarrier::getNet(), GNENet::getViewNet(), GNEFrame::myViewNet, SUMO_ATTR_ALLOW, SUMO_ATTR_WIDTH, and SVC_BICYCLE.
Referenced by processClick().
|
protected |
add sidewalk in the given edge
Definition at line 923 of file GNECreateEdgeFrame.cpp.
References GNEViewNet::addRestrictedLane(), GNEHierarchicalElement::getChildLanes(), GNEAttributeCarrier::getNet(), GNENet::getViewNet(), GNEFrame::myViewNet, SUMO_ATTR_ALLOW, SUMO_ATTR_WIDTH, and SVC_PEDESTRIAN.
Referenced by processClick().
|
virtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.
Definition at line 220 of file GNEFrame.cpp.
|
staticprotectedinherited |
build rainbow in frame modul
Definition at line 245 of file GNEFrame.cpp.
References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().
|
virtualinherited |
create path between two elements
Reimplemented in GNEAdditionalFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEEdgeRelDataFrame, GNEGenericDataFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, and GNEWireFrame.
Definition at line 232 of file GNEFrame.cpp.
|
virtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, and GNEVehicleFrame.
Definition at line 207 of file GNEFrame.cpp.
|
protected |
disable pedestrians in the given edge (within undoRedo)
Definition at line 883 of file GNECreateEdgeFrame.cpp.
References GNEHierarchicalElement::getChildLanes(), GNEFrame::myViewNet, GNEAttributeCarrier::parse(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, and toString().
Referenced by processClick().
|
inherited |
focus upper element of frame
Definition at line 104 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectClickedElements().
|
virtualinherited |
function called after setting new width in current frame (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame.
Definition at line 192 of file GNEFrame.cpp.
Referenced by setFrameWidth().
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 151 of file GNEFrame.cpp.
References myContentFrame.
| GNEAttributesEditor * GNECreateEdgeFrame::getEdgeTypeAttributes | ( | ) | const |
get edgeType attributes
Definition at line 858 of file GNECreateEdgeFrame.cpp.
References myEdgeTypeAttributesEditor.
| GNECreateEdgeFrame::EdgeTypeSelector * GNECreateEdgeFrame::getEdgeTypeSelector | ( | ) | const |
get edgeType selector
Definition at line 852 of file GNECreateEdgeFrame.cpp.
References myEdgeTypeSelector.
|
inherited |
get font of the header's frame
Definition at line 163 of file GNEFrame.cpp.
References myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 157 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::refreshInspection().
| const GNEJunction * GNECreateEdgeFrame::getJunctionSource | ( | ) | const |
get junction source for new edge
Definition at line 830 of file GNECreateEdgeFrame.cpp.
References myJunctionSource.
| GNEAttributesEditor * GNECreateEdgeFrame::getLaneTypeAttributes | ( | ) | const |
get laneType attributes
Definition at line 870 of file GNECreateEdgeFrame.cpp.
References myLaneTypeAttributesEditor.
| GNECreateEdgeFrame::LaneTypeSelector * GNECreateEdgeFrame::getLaneTypeSelector | ( | ) |
get lane type selector
Definition at line 864 of file GNECreateEdgeFrame.cpp.
References myLaneTypeSelector.
|
protectedinherited |
get predefinedTagsMML
Definition at line 239 of file GNEFrame.cpp.
References myPredefinedTagsMML.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().
|
inherited |
get scrollBar width (zero if is hidden)
Definition at line 169 of file GNEFrame.cpp.
References myScrollWindowsContents.
|
inherited |
get view net
Definition at line 145 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNETLSTable::Column::Column(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNETLSEditorFrame::TLSPrograms::TLSPrograms().
|
virtual |
hide create edge frame
Reimplemented from GNEFrame.
Definition at line 845 of file GNECreateEdgeFrame.cpp.
References GNEFrame::hide().
Referenced by GNECreateEdgeFrame::LaneTypeSelector::hideLaneTypeSelector().
|
inherited |
| void GNECreateEdgeFrame::processClick | ( | const Position & | clickedPosition, |
| const GNEViewNetHelper::ViewObjectsSelector & | viewObjects, | ||
| const bool | oppositeEdge, | ||
| const bool | chainEdge ) |
handle processClick and set the relative coloring
| [in] | clickedPosition | clicked position over ViewNet |
| viewObjects | collection of objects under cursor after click over view | |
| oppositeEdge | automatically create an opposite edge | |
| chainEdge | create edges in chain mode |
Definition at line 684 of file GNECreateEdgeFrame.cpp.
References addBikelane(), addSidewalk(), GNEEdge::copyEdgeType(), GNEEdge::copyTemplate(), disablePedestrians(), EDGE, NBEdge::getID(), GNEViewNetHelper::ViewObjectsSelector::getJunctionFront(), GNEEdge::getNBEdge(), myEdgeTypeAttributesEditor, myEdgeTypeSelector, myJunctionSource, myLaneTypeAttributesEditor, GNEFrame::myViewNet, SUMO_ATTR_BIKELANEWIDTH, SUMO_ATTR_SIDEWALKWIDTH, TL, and WRITE_WARNING.
|
virtualinherited |
open GNEAttributesCreator extended dialog
Reimplemented in GNEInspectorFrame, and GNETLSEditorFrame.
Definition at line 226 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 128 of file GNEFrame.cpp.
References frameWidthUpdated(), GUIDesignFrameAreaMargin, myContentFrame, and myScrollWindowsContents.
Referenced by GNEInspectorFrame::refreshInspection().
| void GNECreateEdgeFrame::setUseEdgeTemplate | ( | ) |
set default to using edge template
Definition at line 876 of file GNECreateEdgeFrame.cpp.
References myEdgeTypeSelector.
|
virtualinherited |
build a shaped element using the drawed shape
Reimplemented in GNEShapeFrame, and GNETAZFrame.
Definition at line 213 of file GNEFrame.cpp.
|
virtual |
show create edge frame
Reimplemented from GNEFrame.
Definition at line 836 of file GNECreateEdgeFrame.cpp.
References myEdgeTypeSelector, and GNEFrame::show().
Referenced by GNECreateEdgeFrame::LaneTypeSelector::showLaneTypeSelector().
|
virtualinherited |
Tag selected in GNETagSelector.
Reimplemented in GNEAdditionalFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEShapeFrame, GNEStopFrame, GNEVehicleFrame, and GNEWireFrame.
Definition at line 201 of file GNEFrame.cpp.
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEGenericDataFrame, GNEInspectorFrame, GNEMeanDataFrame, and GNESelectorFrame.
Definition at line 186 of file GNEFrame.cpp.
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 125 of file GNEFrame.h.
Referenced by getContentFrame(), GNESelectorFrame::getContentFrame(), GNEFrame(), and setFrameWidth().
|
protected |
internal edgeType attributes
Definition at line 294 of file GNECreateEdgeFrame.h.
Referenced by getEdgeTypeAttributes(), GNECreateEdgeFrame(), and processClick().
|
protected |
edge type selector
Definition at line 291 of file GNECreateEdgeFrame.h.
Referenced by getEdgeTypeSelector(), GNECreateEdgeFrame(), processClick(), setUseEdgeTemplate(), and show().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 147 of file GNEFrame.h.
Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 150 of file GNEFrame.h.
Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().
|
protectedinherited |
|
protectedinherited |
fame for left header elements
Definition at line 131 of file GNEFrame.h.
Referenced by GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().
|
protectedinherited |
|
private |
source junction for new edge
Definition at line 316 of file GNECreateEdgeFrame.h.
Referenced by abortEdgeCreation(), getJunctionSource(), GNECreateEdgeFrame(), and processClick().
|
protected |
internal laneType attributes
Definition at line 300 of file GNECreateEdgeFrame.h.
Referenced by getLaneTypeAttributes(), GNECreateEdgeFrame(), and processClick().
|
protected |
lane type selector
Definition at line 297 of file GNECreateEdgeFrame.h.
Referenced by getLaneTypeSelector(), and GNECreateEdgeFrame().
|
protected |
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached).
Definition at line 153 of file GNEFrame.h.
Referenced by getPredefinedTagsMML(), and GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 144 of file GNEFrame.h.
Referenced by getScrollBarWidth(), GNEFrame(), and setFrameWidth().
|
protectedinherited |
FOX need this.
View Net
Definition at line 122 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNETLSEditorFrame::cleanup(), GNEWireFrame::createBaseWireObject(), GNEAdditionalFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEStopFrame::getStopParameter(), getViewNet(), GNEFrame(), GNETypeFrame::GNETypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), hide(), GNEGenericDataFrame::hide(), GNEInspectorFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), GNETLSEditorFrame::isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), openHelpAttributesDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::refreshInspection(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEContainerPlanFrame::show(), show(), GNEMoveFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().