Eclipse SUMO - Simulation of Urban MObility
GNEGenericDataFrame Class Reference

#include <GNEGenericDataFrame.h>

Inheritance diagram for GNEGenericDataFrame:
Collaboration diagram for GNEGenericDataFrame:

Data Structures

class  AttributeSelector
 
class  DataSetSelector
 
class  IntervalSelector
 

Public Member Functions

void focusUpperElement ()
 focus upper element of frame More...
 
const AttributeSelectorgetAttributeSelector () const
 getattribute selector modul More...
 
const DataSetSelectorgetDataSetSelector () const
 get dataSet selector 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...
 
const IntervalSelectorgetIntervalSelector () const
 get interval selector modul More...
 
GNEFrameModuls::PathCreatorgetPathCreator () const
 get PathCreator modul More...
 
SumoXMLTag getTag () const
 @bried get element type of this data frame More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
void hide ()
 hide Frame More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 

Protected Member Functions

virtual void createPath ()
 create path More...
 
const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
 GNEGenericDataFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet, SumoXMLTag tag, const bool pathCreator)
 Constructor (protected due GNEGenericDataFrame is abtract) More...
 
void intervalSelected ()
 interval selected More...
 
void openHelpAttributesDialog (const GNETagProperties &tagProperties) const
 Open help attributes dialog. More...
 
 ~GNEGenericDataFrame ()
 Destructor. 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...
 

Protected Attributes

AttributeSelectormyAttributeSelector
 attribute selector modul More...
 
FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame. More...
 
DataSetSelectormyDataSetSelector
 dataSet selector modul More...
 
SumoXMLTag myGenericDataTag
 generic data tag 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...
 
IntervalSelectormyIntervalSelector
 interval selector modul More...
 
GNEFrameAttributesModuls::ParametersEditorCreatormyParametersEditorCreator
 parameters editor creator More...
 
GNEFrameModuls::PathCreatormyPathCreator
 edge path creator (used for Walks, rides and trips) More...
 
GNEViewNetmyViewNet = nullptr
 View Net. More...
 

Private Member Functions

 GNEGenericDataFrame (const GNEGenericDataFrame &)=delete
 Invalidated copy constructor. More...
 
GNEGenericDataFrameoperator= (const GNEGenericDataFrame &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header 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 setting internal attributes of additional elements

Definition at line 40 of file GNEGenericDataFrame.h.

Constructor & Destructor Documentation

◆ GNEGenericDataFrame() [1/2]

GNEGenericDataFrame::GNEGenericDataFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet,
SumoXMLTag  tag,
const bool  pathCreator 
)
protected

Constructor (protected due GNEGenericDataFrame is abtract)

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet GNEViewNet that uses this GNEFrame

tag generic data tag

pathCreator flag to create pathCreator

Definition at line 550 of file GNEGenericDataFrame.cpp.

References myAttributeSelector, myDataSetSelector, myIntervalSelector, myParametersEditorCreator, and myPathCreator.

◆ ~GNEGenericDataFrame()

GNEGenericDataFrame::~GNEGenericDataFrame ( )
protected

Destructor.

Definition at line 573 of file GNEGenericDataFrame.cpp.

◆ GNEGenericDataFrame() [2/2]

GNEGenericDataFrame::GNEGenericDataFrame ( const GNEGenericDataFrame )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ 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 GNEGenericDataFrame::createPath ( )
protectedvirtual

create path

Reimplemented from GNEFrame.

Reimplemented in GNEEdgeRelDataFrame.

Definition at line 583 of file GNEGenericDataFrame.cpp.

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

◆ getAttributeSelector()

◆ getDataSetSelector()

const GNEGenericDataFrame::DataSetSelector * GNEGenericDataFrame::getDataSetSelector ( ) const

get dataSet selector modul

Definition at line 495 of file GNEGenericDataFrame.cpp.

References myDataSetSelector.

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

◆ getIntervalSelector()

const GNEGenericDataFrame::IntervalSelector * GNEGenericDataFrame::getIntervalSelector ( ) const

get interval selector modul

Definition at line 501 of file GNEGenericDataFrame.cpp.

References myIntervalSelector.

Referenced by GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), and GNETAZRelData::isGenericDataVisible().

Here is the caller graph for this function:

◆ getPathCreator()

GNEFrameModuls::PathCreator * GNEGenericDataFrame::getPathCreator ( ) const

get PathCreator modul

Definition at line 513 of file GNEGenericDataFrame.cpp.

References myPathCreator.

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

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

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

◆ getTag()

SumoXMLTag GNEGenericDataFrame::getTag ( ) const

@bried get element type of this data frame

Definition at line 519 of file GNEGenericDataFrame.cpp.

References myGenericDataTag.

◆ getViewNet()

◆ hide()

void GNEGenericDataFrame::hide ( )
virtual

◆ intervalSelected()

void GNEGenericDataFrame::intervalSelected ( )
protected

interval selected

Definition at line 577 of file GNEGenericDataFrame.cpp.

◆ openHelpAttributesDialog()

◆ operator=()

GNEGenericDataFrame& GNEGenericDataFrame::operator= ( const GNEGenericDataFrame )
privatedelete

Invalidated assignment operator.

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

◆ 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

◆ myAttributeSelector

AttributeSelector* GNEGenericDataFrame::myAttributeSelector
protected

attribute selector modul

Definition at line 270 of file GNEGenericDataFrame.h.

Referenced by getAttributeSelector(), and GNEGenericDataFrame().

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

◆ myDataSetSelector

DataSetSelector* GNEGenericDataFrame::myDataSetSelector
protected

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

◆ myGenericDataTag

SumoXMLTag GNEGenericDataFrame::myGenericDataTag
protected

generic data tag

Definition at line 279 of file GNEGenericDataFrame.h.

Referenced by getTag(), GNEGenericDataFrame::AttributeSelector::refreshAttributeSelector(), and show().

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

◆ myIntervalSelector

◆ myParametersEditorCreator

GNEFrameAttributesModuls::ParametersEditorCreator* GNEGenericDataFrame::myParametersEditorCreator
protected

◆ myPathCreator

GNEFrameModuls::PathCreator* GNEGenericDataFrame::myPathCreator
protected

edge path creator (used for Walks, rides and trips)

Definition at line 276 of file GNEGenericDataFrame.h.

Referenced by GNEEdgeRelDataFrame::addEdgeRelationData(), GNEEdgeRelDataFrame::createPath(), getPathCreator(), GNEGenericDataFrame(), hide(), and show().

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