Eclipse SUMO - Simulation of Urban MObility
GNETAZFrame Class Reference

#include <GNETAZFrame.h>

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

Data Structures

class  TAZChildDefaultParameters
 
class  TAZCommonStatistics
 
class  TAZCurrent
 
class  TAZEdgesGraphic
 
class  TAZParameters
 
class  TAZSaveChanges
 
class  TAZSelectionStatistics
 

Public Member Functions

void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrameModuls::DrawingShapegetDrawingShapeModul () const
 get drawing mode modul More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
TAZCurrentgetTAZCurrentModul () const
 get Current TAZ modul More...
 
TAZSaveChangesgetTAZSaveChangesModul () const
 get TAZ Save Changes modul More...
 
TAZSelectionStatisticsgetTAZSelectionStatisticsModul () const
 get TAZ Selection Statistics modul More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNETAZFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void hide ()
 hide TAZ frame More...
 
bool processClick (const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 process click over Viewnet More...
 
void processEdgeSelection (const std::vector< GNEEdge * > &edges)
 process selection of edges in view net More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
virtual void show ()
 show Frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNETAZFrame ()
 Destructor. More...
 

Protected Member Functions

bool addOrRemoveTAZMember (GNEEdge *edge)
 add or remove a TAZSource and a TAZSink, or remove it if edge is in the list of TAZ Children More...
 
void dropTAZMembers ()
 drop all TAZSources and TAZ Sinks of current TAZ More...
 
const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNETagProperties &tagProperties) const
 Open help attributes dialog. More...
 
bool shapeDrawed ()
 build a shaped element using the drawed shape return true if was sucesfully created 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 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 Attributes

GNEFrameModuls::DrawingShapemyDrawingShape
 Drawing shape. More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
GNEFrameAttributesModuls::NeteditAttributesmyNeteditAttributes
 Netedit parameter. 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...
 
TAZChildDefaultParametersmyTAZChildDefaultParameters
 TAZ child defaults parameters. More...
 
TAZCommonStatisticsmyTAZCommonStatistics
 TAZ Edges common parameters. More...
 
TAZCurrentmyTAZCurrent
 current TAZ More...
 
TAZEdgesGraphicmyTAZEdgesGraphic
 TAZ Edges Graphic. More...
 
TAZParametersmyTAZParameters
 TAZ parameters. More...
 
TAZSaveChangesmyTAZSaveChanges
 save TAZ Edges More...
 
TAZSelectionStatisticsmyTAZSelectionStatistics
 TAZ Edges selection parameters. 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 TAZ elements

Definition at line 39 of file GNETAZFrame.h.

Constructor & Destructor Documentation

◆ GNETAZFrame()

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

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

create Netedit parameter

Definition at line 1293 of file GNETAZFrame.cpp.

References myDrawingShape, myNeteditAttributes, myTAZChildDefaultParameters, myTAZCommonStatistics, myTAZCurrent, myTAZEdgesGraphic, myTAZParameters, myTAZSaveChanges, myTAZSelectionStatistics, and GNETAZFrame::TAZCurrent::setTAZ().

◆ ~GNETAZFrame()

GNETAZFrame::~GNETAZFrame ( )

Destructor.

Definition at line 1328 of file GNETAZFrame.cpp.

Member Function Documentation

◆ addOrRemoveTAZMember()

bool GNETAZFrame::addOrRemoveTAZMember ( GNEEdge edge)
protected

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

◆ dropTAZMembers()

void GNETAZFrame::dropTAZMembers ( )
protected

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

◆ getDrawingShapeModul()

GNEFrameModuls::DrawingShape * GNETAZFrame::getDrawingShapeModul ( ) const

get drawing mode modul

Definition at line 1426 of file GNETAZFrame.cpp.

References myDrawingShape.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawShape(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::processMoveMouseNetwork().

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(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::createPath(), and shapeDrawed().

Here is the caller graph for this function:

◆ getTAZCurrentModul()

GNETAZFrame::TAZCurrent * GNETAZFrame::getTAZCurrentModul ( ) const

get Current TAZ modul

Definition at line 1432 of file GNETAZFrame.cpp.

References myTAZCurrent.

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

Here is the caller graph for this function:

◆ getTAZSaveChangesModul()

GNETAZFrame::TAZSaveChanges * GNETAZFrame::getTAZSaveChangesModul ( ) const

get TAZ Save Changes modul

Definition at line 1444 of file GNETAZFrame.cpp.

References myTAZSaveChanges.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ getTAZSelectionStatisticsModul()

GNETAZFrame::TAZSelectionStatistics * GNETAZFrame::getTAZSelectionStatisticsModul ( ) const

get TAZ Selection Statistics modul

Definition at line 1438 of file GNETAZFrame.cpp.

References myTAZSelectionStatistics.

Referenced by GNEApplicationWindow::onCmdAbort().

Here is the caller graph for this function:

◆ getViewNet()

◆ hide()

void GNETAZFrame::hide ( )
virtual

hide TAZ frame

Reimplemented from GNEFrame.

Definition at line 1333 of file GNETAZFrame.cpp.

References GNEFrame::hide().

Referenced by GNETAZFrame::TAZChildDefaultParameters::hideTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::hideTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::hideTAZEdgesGraphicModul(), GNETAZFrame::TAZSaveChanges::hideTAZSaveChangesModul(), and GNETAZFrame::TAZSelectionStatistics::hideTAZSelectionStatisticsModul().

Here is the caller graph for this function:

◆ openHelpAttributesDialog()

◆ processClick()

◆ processEdgeSelection()

void GNETAZFrame::processEdgeSelection ( const std::vector< GNEEdge * > &  edges)

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

◆ show()

void GNEFrame::show ( )
virtualinherited

show Frame

Note
some GNEFrames needs a re-implementation

Reimplemented in GNETLSEditorFrame, GNEProhibitionFrame, GNEPolygonFrame, GNECreateEdgeFrame, GNEAdditionalFrame, GNEVehicleTypeFrame, GNEVehicleFrame, GNEStopFrame, GNERouteFrame, GNEPersonTypeFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, GNESelectorFrame, GNEMoveFrame, GNEInspectorFrame, and GNEDeleteFrame.

Definition at line 108 of file GNEFrame.cpp.

References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().

Referenced by GNEDeleteFrame::show(), GNEInspectorFrame::show(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEGenericDataFrame::show(), GNEPersonFrame::show(), GNEPersonPlanFrame::show(), GNEPersonTypeFrame::show(), GNERouteFrame::show(), GNEStopFrame::show(), GNEVehicleFrame::show(), GNEVehicleTypeFrame::show(), GNEAdditionalFrame::show(), GNECreateEdgeFrame::show(), GNEPolygonFrame::show(), GNEProhibitionFrame::show(), GNETLSEditorFrame::show(), GNEAdditionalFrame::showSelectorChildLanesModul(), GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::showTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::showTAZEdgesGraphicModul(), GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModul(), GNETAZFrame::TAZSelectionStatistics::showTAZSelectionStatisticsModul(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

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

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

◆ myDrawingShape

GNEFrameModuls::DrawingShape* GNETAZFrame::myDrawingShape
private

Drawing shape.

Definition at line 560 of file GNETAZFrame.h.

Referenced by getDrawingShapeModul(), GNETAZFrame(), processClick(), and shapeDrawed().

◆ 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* GNETAZFrame::myNeteditAttributes
private

Netedit parameter.

Definition at line 557 of file GNETAZFrame.h.

Referenced by GNETAZFrame(), and shapeDrawed().

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

◆ myTAZChildDefaultParameters

TAZChildDefaultParameters* GNETAZFrame::myTAZChildDefaultParameters
private

TAZ child defaults parameters.

Definition at line 566 of file GNETAZFrame.h.

Referenced by addOrRemoveTAZMember(), GNETAZFrame(), processClick(), and processEdgeSelection().

◆ myTAZCommonStatistics

TAZCommonStatistics* GNETAZFrame::myTAZCommonStatistics
private

TAZ Edges common parameters.

Definition at line 551 of file GNETAZFrame.h.

Referenced by GNETAZFrame().

◆ myTAZCurrent

TAZCurrent* GNETAZFrame::myTAZCurrent
private

◆ myTAZEdgesGraphic

TAZEdgesGraphic* GNETAZFrame::myTAZEdgesGraphic
private

TAZ Edges Graphic.

Definition at line 572 of file GNETAZFrame.h.

Referenced by GNETAZFrame().

◆ myTAZParameters

TAZParameters* GNETAZFrame::myTAZParameters
private

TAZ parameters.

Definition at line 554 of file GNETAZFrame.h.

Referenced by GNETAZFrame(), and shapeDrawed().

◆ myTAZSaveChanges

TAZSaveChanges* GNETAZFrame::myTAZSaveChanges
private

save TAZ Edges

Definition at line 563 of file GNETAZFrame.h.

Referenced by addOrRemoveTAZMember(), dropTAZMembers(), getTAZSaveChangesModul(), GNETAZFrame(), and processClick().

◆ myTAZSelectionStatistics

TAZSelectionStatistics* GNETAZFrame::myTAZSelectionStatistics
private

TAZ Edges selection parameters.

Definition at line 569 of file GNETAZFrame.h.

Referenced by getTAZSelectionStatisticsModul(), GNETAZFrame(), processClick(), and processEdgeSelection().

◆ 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(), 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(), 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(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), shapeDrawed(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEFrame::show().


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