Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalFrame Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame:
Collaboration diagram for GNEAdditionalFrame:

Data Structures

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
 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 RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &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 void edgePathCreated ()
 finish edge path creation 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...
 

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 GNEAttributeCarrier::TagProperties &tagValues)
 build common additional attributes More...
 
bool buildAdditionalOverEdge (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over an edge (parent of lane) More...
 
bool buildAdditionalOverLane (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over a single lane More...
 
bool buildAdditionalOverLanes (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over lanes More...
 
bool buildAdditionalOverView (std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over view More...
 
bool buildAdditionalWithParent (std::map< SumoXMLAttr, std::string > &valuesMap, GNEAdditional *parent, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional with Parent More...
 
std::string generateID (GNENetElement *netElement) const
 generate a ID for an additiona element More...
 

Private Attributes

GNEFrameAttributesModuls::AttributesCreatormyAdditionalAttributes
 internal additional attributes More...
 
GNEFrameModuls::TagSelectormyAdditionalTagSelector
 item selector More...
 
RGBColor myEdgeCandidateColor
 edge candidate color (used by some modulds to mark edges) More...
 
RGBColor myEdgeCandidateSelectedColor
 selected edge candidate color (used by some modulds to selected mark edges) 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::map< int, 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 34 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ GNEAdditionalFrame()

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

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Create list for SelectorChildEdges

Create list for SelectorChildLanes

Definition at line 609 of file GNEAdditionalFrame.cpp.

References myAdditionalAttributes, myAdditionalTagSelector, myNeteditAttributes, myParentAdditional, mySelectorChildEdges, mySelectorChildLanes, mySelectorParentLanes, GNEFrameModuls::TagSelector::setCurrentTag(), and SUMO_TAG_BUS_STOP.

◆ ~GNEAdditionalFrame()

GNEAdditionalFrame::~GNEAdditionalFrame ( )

Destructor.

Definition at line 638 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 190 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

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

Reimplemented in GNEInspectorFrame, GNEVehicleTypeFrame, and GNEPersonTypeFrame.

Definition at line 184 of file GNEFrame.cpp.

◆ buildAdditionalCommonAttributes()

◆ buildAdditionalOverEdge()

◆ buildAdditionalOverLane()

◆ buildAdditionalOverLanes()

◆ buildAdditionalOverView()

◆ buildAdditionalWithParent()

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.

Definition at line 165 of file GNEFrame.cpp.

◆ edgePathCreated()

void GNEFrame::edgePathCreated ( )
protectedvirtualinherited

finish edge path creation

Reimplemented in GNEVehicleFrame, and GNEPersonFrame.

Definition at line 171 of file GNEFrame.cpp.

◆ focusUpperElement()

◆ generateID()

◆ getConsecutiveLaneSelector()

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

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

get edge candidate color

Definition at line 269 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

get selected color

Definition at line 275 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateSelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 144 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 138 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

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

◆ getPredefinedTagsMML()

const std::map< int, std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

◆ 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 196 of file GNEFrame.cpp.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 125 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 177 of file GNEFrame.cpp.

◆ show()

◆ showSelectorChildLanesModul()

void GNEAdditionalFrame::showSelectorChildLanesModul ( )

◆ tagSelected()

void GNEAdditionalFrame::tagSelected ( )
protectedvirtual

◆ 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 150 of file GNEFrame.cpp.

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

Field Documentation

◆ myAdditionalAttributes

◆ myAdditionalTagSelector

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 124 of file GNEFrame.h.

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

◆ myEdgeCandidateColor

RGBColor GNEFrame::myEdgeCandidateColor
privateinherited

edge candidate color (used by some modulds to mark edges)

Definition at line 146 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateColor().

◆ myEdgeCandidateSelectedColor

RGBColor GNEFrame::myEdgeCandidateSelectedColor
privateinherited

selected edge candidate color (used by some modulds to selected mark edges)

Definition at line 149 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateSelectedColor().

◆ 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 140 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 143 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 127 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 133 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributes

GNEFrameAttributesModuls::NeteditAttributes* GNEAdditionalFrame::myNeteditAttributes
private

Netedit parameter.

Definition at line 316 of file GNEAdditionalFrame.h.

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

◆ myParentAdditional

GNEFrameModuls::SelectorParent* GNEAdditionalFrame::myParentAdditional
private

◆ myPredefinedTagsMML

std::map<int, std::string> GNEFrame::myPredefinedTagsMML
privateinherited

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

Definition at line 152 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 137 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 319 of file GNEAdditionalFrame.h.

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

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 121 of file GNEFrame.h.

Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverLanes(), buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::show().


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