Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalFrame Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame:
[legend]
Collaboration diagram for GNEAdditionalFrame:
[legend]

Data Structures

class  E2MultilaneLaneSelector
 
class  SelectorChildEdges
 
class  SelectorChildLanes
 
class  SelectorParentLanes
 

Public Member Functions

bool addAdditional (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 add additional element More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEAdditionalFrame::SelectorParentLanesgetConsecutiveLaneSelector () const
 get consecutive Lane Selector More...
 
GNEAdditionalFrame::E2MultilaneLaneSelectorgetE2MultilaneLaneSelector () const
 getConsecutive Lane 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...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEAdditionalFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame More...
 
void showSelectorChildLanesModul ()
 show selector child lane and update use selected edges/lanes More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNEAdditionalFrame ()
 Destructor. More...
 

Protected Member Functions

const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNETagProperties &tagProperties) const
 Open help attributes dialog. More...
 
void tagSelected ()
 Tag selected in TagSelector. More...
 
functions called by moduls that can be reimplemented in frame children
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector More...
 
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void createPath ()
 create path (can be reimplemented in frame children) More...
 

Protected Attributes

FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame = nullptr
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame = nullptr
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame = nullptr
 fame for right header elements More...
 
GNEViewNetmyViewNet = nullptr
 View Net. More...
 

Private Member Functions

bool buildAdditionalCommonAttributes (std::map< SumoXMLAttr, std::string > &valuesMap, const GNETagProperties &tagValues)
 build common additional attributes More...
 
bool buildAdditionalOverEdge (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNETagProperties &tagValues)
 build additional over an edge (parent of lane) More...
 
bool buildAdditionalOverLane (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNETagProperties &tagValues)
 build additional over a single lane More...
 
bool buildAdditionalOverView (std::map< SumoXMLAttr, std::string > &valuesMap, const GNETagProperties &tagValues)
 build additional over view More...
 
bool buildSlaveAdditional (std::map< SumoXMLAttr, std::string > &valuesMap, GNEAdditional *parent, const GNETagProperties &tagValues)
 build slave additional More...
 
std::string generateID (GNENetworkElement *networkElement) const
 generate a ID for an additiona element More...
 

Private Attributes

GNEFrameAttributesModuls::AttributesCreatormyAdditionalAttributes
 internal additional attributes More...
 
GNEFrameModuls::TagSelectormyAdditionalTagSelector
 item selector More...
 
E2MultilaneLaneSelectormyE2MultilaneLaneSelector
 Modul for E2Multilane lane selector. More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
GNEFrameAttributesModuls::NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
GNEFrameModuls::SelectorParentmyParentAdditional
 Modul for select a single parent additional. More...
 
std::vector< std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
FXScrollWindow * myScrollWindowsContents = nullptr
 scroll windows that holds the content frame More...
 
SelectorChildEdgesmySelectorChildEdges
 Modul for select child edges. More...
 
SelectorChildLanesmySelectorChildLanes
 Modul for select child lanes. More...
 
SelectorParentLanesmySelectorParentLanes
 Modul for select parent lanes (currently only consecutives) More...
 

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time) More...
 

Detailed Description

The Widget for setting internal attributes of additional elements

Definition at line 32 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ GNEAdditionalFrame()

GNEAdditionalFrame::GNEAdditionalFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

◆ ~GNEAdditionalFrame()

GNEAdditionalFrame::~GNEAdditionalFrame ( )

Destructor.

Definition at line 1031 of file GNEAdditionalFrame.cpp.

Member Function Documentation

◆ addAdditional()

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 185 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...

Reimplemented in GNEVehicleTypeFrame, GNEPersonTypeFrame, and GNEInspectorFrame.

Definition at line 179 of file GNEFrame.cpp.

◆ buildAdditionalCommonAttributes()

◆ buildAdditionalOverEdge()

◆ buildAdditionalOverLane()

◆ buildAdditionalOverView()

◆ buildSlaveAdditional()

bool GNEAdditionalFrame::buildSlaveAdditional ( std::map< SumoXMLAttr, std::string > &  valuesMap,
GNEAdditional parent,
const GNETagProperties tagValues 
)
private

◆ createPath()

void GNEFrame::createPath ( )
protectedvirtualinherited

create path (can be reimplemented in frame children)

Reimplemented in GNEVehicleFrame, GNERouteFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, and GNEEdgeRelDataFrame.

Definition at line 197 of file GNEFrame.cpp.

Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath().

Here is the caller graph for this function:

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 166 of file GNEFrame.cpp.

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

focus upper element of frame

Definition at line 102 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ generateID()

std::string GNEAdditionalFrame::generateID ( GNENetworkElement networkElement) const
private

generate a ID for an additiona element

Definition at line 1152 of file GNEAdditionalFrame.cpp.

References GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNENetworkElement::getID(), GNEViewNet::getNet(), GNENet::getNumberOfAdditionals(), GNETagProperties::getTag(), myAdditionalTagSelector, GNEFrame::myViewNet, GNENet::retrieveAdditional(), SUMO_TAG_VAPORIZER, and toString().

Referenced by buildAdditionalOverEdge(), buildAdditionalOverLane(), and buildAdditionalOverView().

Here is the caller graph for this function:

◆ getConsecutiveLaneSelector()

GNEAdditionalFrame::SelectorParentLanes * GNEAdditionalFrame::getConsecutiveLaneSelector ( ) const

get consecutive Lane Selector

Definition at line 1087 of file GNEAdditionalFrame.cpp.

References mySelectorParentLanes.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyEnter(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getE2MultilaneLaneSelector()

GNEAdditionalFrame::E2MultilaneLaneSelector * GNEAdditionalFrame::getE2MultilaneLaneSelector ( ) const

getConsecutive Lane Selector

Definition at line 1093 of file GNEAdditionalFrame.cpp.

References myE2MultilaneLaneSelector.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), and GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 139 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

const std::vector< std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

get predefinedTagsMML

Definition at line 269 of file GNEFrame.cpp.

References GNEFrame::myPredefinedTagsMML.

Referenced by GNEVehicleFrame::addVehicle(), buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::createPath(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getViewNet()

◆ hide()

◆ openHelpAttributesDialog()

◆ selectedOverlappedElement()

void GNEFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.

Definition at line 191 of file GNEFrame.cpp.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 172 of file GNEFrame.cpp.

◆ show()

void GNEAdditionalFrame::show ( )
virtual

◆ showSelectorChildLanesModul()

void GNEAdditionalFrame::showSelectorChildLanesModul ( )

show selector child lane and update use selected edges/lanes

Definition at line 1076 of file GNEAdditionalFrame.cpp.

References mySelectorChildEdges, mySelectorChildLanes, GNEFrame::show(), GNEAdditionalFrame::SelectorChildEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorChildLanes::updateUseSelectedLanes().

Referenced by GNEAdditionalFrame::SelectorChildLanes::onCmdTypeInSearchBox().

Here is the caller graph for this function:

◆ tagSelected()

void GNEAdditionalFrame::tagSelected ( )
protectedvirtual

Tag selected in TagSelector.

Reimplemented from GNEFrame.

Definition at line 1099 of file GNEAdditionalFrame.cpp.

References GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNETagProperties::getMasterTags(), GNETagProperties::getTag(), GNETagProperties::hasAttribute(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEAdditionalFrame::E2MultilaneLaneSelector::hideE2MultilaneLaneSelectorModul(), GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul(), GNEAdditionalFrame::SelectorChildEdges::hideSelectorChildEdgesModul(), GNEAdditionalFrame::SelectorChildLanes::hideSelectorChildLanesModul(), GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModul(), GNEFrameModuls::SelectorParent::hideSelectorParentModul(), GNETagProperties::isSlave(), myAdditionalAttributes, myAdditionalTagSelector, myE2MultilaneLaneSelector, myNeteditAttributes, myParentAdditional, mySelectorChildEdges, mySelectorChildLanes, mySelectorParentLanes, GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEAdditionalFrame::E2MultilaneLaneSelector::showE2MultilaneLaneSelectorModul(), GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul(), GNEAdditionalFrame::SelectorChildEdges::showSelectorChildEdgesModul(), GNEAdditionalFrame::SelectorChildLanes::showSelectorChildLanesModul(), GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModul(), GNEFrameModuls::SelectorParent::showSelectorParentModul(), SUMO_ATTR_EDGES, SUMO_ATTR_LANES, SUMO_TAG_E2DETECTOR_MULTILANE, SUMO_TAG_LANE, and SUMO_TAG_NOTHING.

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

function called after undo/redo in the current frame (can be reimplemented in frame children)

Reimplemented in GNEInspectorFrame.

Definition at line 151 of file GNEFrame.cpp.

Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().

Here is the caller graph for this function:

Field Documentation

◆ myAdditionalAttributes

◆ myAdditionalTagSelector

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 116 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myE2MultilaneLaneSelector

E2MultilaneLaneSelector* GNEAdditionalFrame::myE2MultilaneLaneSelector
private

Modul for E2Multilane lane selector.

Definition at line 416 of file GNEAdditionalFrame.h.

Referenced by addAdditional(), getE2MultilaneLaneSelector(), GNEAdditionalFrame(), and tagSelected().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 135 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 119 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 125 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributes

GNEFrameAttributesModuls::NeteditAttributes* GNEAdditionalFrame::myNeteditAttributes
private

Netedit parameter.

Definition at line 401 of file GNEAdditionalFrame.h.

Referenced by addAdditional(), GNEAdditionalFrame(), and tagSelected().

◆ myParentAdditional

GNEFrameModuls::SelectorParent* GNEAdditionalFrame::myParentAdditional
private

Modul for select a single parent additional.

Definition at line 407 of file GNEAdditionalFrame.h.

Referenced by buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverView(), buildSlaveAdditional(), GNEAdditionalFrame(), and tagSelected().

◆ myPredefinedTagsMML

std::vector<std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 138 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 129 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ mySelectorChildEdges

SelectorChildEdges* GNEAdditionalFrame::mySelectorChildEdges
private

◆ mySelectorChildLanes

SelectorChildLanes* GNEAdditionalFrame::mySelectorChildLanes
private

◆ mySelectorParentLanes

SelectorParentLanes* GNEAdditionalFrame::mySelectorParentLanes
private

Modul for select parent lanes (currently only consecutives)

Definition at line 404 of file GNEAdditionalFrame.h.

Referenced by getConsecutiveLaneSelector(), GNEAdditionalFrame(), and tagSelected().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 113 of file GNEFrame.h.

Referenced by GNESelectorFrame::ACsToSelected(), addAdditional(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZRelDataFrame::addTAZRelationData(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEFrame::show().


The documentation for this class was generated from the following files: