Eclipse SUMO - Simulation of Urban MObility
GNECreateEdgeFrame Class Reference

#include <GNECreateEdgeFrame.h>

Inheritance diagram for GNECreateEdgeFrame:
Collaboration diagram for GNECreateEdgeFrame:

Data Structures

class  EdgeTypeParameters
 
class  EdgeTypeSelector
 
class  EdgeTypeSelectorLegend
 
class  LaneTypeParameters
 

Public Member Functions

void abortEdgeCreation ()
 abort current edge creation More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
EdgeTypeSelectorgetEdgeTypeSelector () const
 getcustom 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...
 
const GNEJunctiongetJunctionSource () const
 get junction source for new edge More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNECreateEdgeFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void hide ()
 hide create edge frame More...
 
void processClick (const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const bool oppositeEdge, const bool chainEdge)
 handle processClick and set the relative colouring More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show create edge frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
void updateObjectsUnderSnappedCursor (const std::vector< GUIGlObject * > &GUIGlObjects)
 update objects under snapped cursor More...
 
 ~GNECreateEdgeFrame ()
 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...
 
functions called by moduls that can be reimplemented in frame children
virtual void tagSelected ()
 Tag selected in TagSelector. More...
 
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...
 
EdgeTypeParametersmyEdgeTypeParameters = nullptr
 edge parameters More...
 
EdgeTypeSelectormyEdgeTypeSelector = nullptr
 custom edge selector More...
 
EdgeTypeSelectorLegendmyEdgeTypeSelectorLegend = nullptr
 edge selector legend 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 Attributes

GNEJunctionmyCreateEdgeSource
 source junction for new edge More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
GNEViewNetHelper::ObjectsUnderCursor myObjectsUnderSnappedCursor
 objects under snapped cursor 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...
 

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 create edges

Definition at line 38 of file GNECreateEdgeFrame.h.

Constructor & Destructor Documentation

◆ GNECreateEdgeFrame()

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

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Definition at line 1285 of file GNECreateEdgeFrame.cpp.

References myEdgeTypeParameters, myEdgeTypeSelector, and myEdgeTypeSelectorLegend.

◆ ~GNECreateEdgeFrame()

GNECreateEdgeFrame::~GNECreateEdgeFrame ( )

Destructor.

Definition at line 1298 of file GNECreateEdgeFrame.cpp.

Member Function Documentation

◆ abortEdgeCreation()

void GNECreateEdgeFrame::abortEdgeCreation ( )

abort current edge creation

Definition at line 1380 of file GNECreateEdgeFrame.cpp.

References myCreateEdgeSource, and GNEJunction::unMarkAsCreateEdgeSource().

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ 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.

◆ 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()

◆ getEdgeTypeSelector()

GNECreateEdgeFrame::EdgeTypeSelector * GNECreateEdgeFrame::getEdgeTypeSelector ( ) const

getcustom edge selector

Definition at line 1419 of file GNECreateEdgeFrame.cpp.

References myEdgeTypeSelector.

Referenced by GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEChange_EdgeType::redo(), GNEEdgeType::setAttribute(), and GNEChange_EdgeType::undo().

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:

◆ getJunctionSource()

const GNEJunction * GNECreateEdgeFrame::getJunctionSource ( ) const

get junction source for new edge

Definition at line 1391 of file GNECreateEdgeFrame.cpp.

References myCreateEdgeSource.

Referenced by GNEViewNet::drawTemporalJunction().

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

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

◆ getViewNet()

◆ hide()

void GNECreateEdgeFrame::hide ( )
virtual

hide create edge frame

Reimplemented from GNEFrame.

Definition at line 1412 of file GNECreateEdgeFrame.cpp.

References GNEFrame::hide().

Referenced by GNECreateEdgeFrame::EdgeTypeParameters::hideEdgeTypeParameters(), and GNECreateEdgeFrame::LaneTypeParameters::hideLaneTypeParameters().

Here is the caller graph for this function:

◆ openHelpAttributesDialog()

◆ processClick()

void GNECreateEdgeFrame::processClick ( const Position clickedPosition,
const GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor,
const bool  oppositeEdge,
const bool  chainEdge 
)

◆ 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 GNECreateEdgeFrame::show ( )
virtual

◆ tagSelected()

void GNEFrame::tagSelected ( )
protectedvirtualinherited

Tag selected in TagSelector.

Reimplemented in GNEPolygonFrame, GNEAdditionalFrame, GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 160 of file GNEFrame.cpp.

◆ 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:

◆ updateObjectsUnderSnappedCursor()

void GNECreateEdgeFrame::updateObjectsUnderSnappedCursor ( const std::vector< GUIGlObject * > &  GUIGlObjects)

update objects under snapped cursor

Definition at line 1397 of file GNECreateEdgeFrame.cpp.

References myObjectsUnderSnappedCursor, and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

Field Documentation

◆ 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().

◆ myCreateEdgeSource

GNEJunction* GNECreateEdgeFrame::myCreateEdgeSource
private

source junction for new edge

Definition at line 400 of file GNECreateEdgeFrame.h.

Referenced by abortEdgeCreation(), getJunctionSource(), and processClick().

◆ myEdgeTypeParameters

EdgeTypeParameters* GNECreateEdgeFrame::myEdgeTypeParameters = nullptr
protected

edge parameters

Definition at line 387 of file GNECreateEdgeFrame.h.

Referenced by GNECreateEdgeFrame().

◆ myEdgeTypeSelector

EdgeTypeSelector* GNECreateEdgeFrame::myEdgeTypeSelector = nullptr
protected

custom edge selector

Definition at line 390 of file GNECreateEdgeFrame.h.

Referenced by getEdgeTypeSelector(), GNECreateEdgeFrame(), processClick(), and show().

◆ myEdgeTypeSelectorLegend

EdgeTypeSelectorLegend* GNECreateEdgeFrame::myEdgeTypeSelectorLegend = nullptr
protected

edge selector legend

Definition at line 393 of file GNECreateEdgeFrame.h.

Referenced by GNECreateEdgeFrame().

◆ 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().

◆ myObjectsUnderSnappedCursor

GNEViewNetHelper::ObjectsUnderCursor GNECreateEdgeFrame::myObjectsUnderSnappedCursor
private

objects under snapped cursor

Definition at line 397 of file GNECreateEdgeFrame.h.

Referenced by processClick(), and updateObjectsUnderSnappedCursor().

◆ 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().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 113 of file GNEFrame.h.

Referenced by GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::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(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::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(), GNEAdditionalFrame::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(), 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: