Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::DemandElementSelector Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::DemandElementSelector:
Collaboration diagram for GNEFrameModuls::DemandElementSelector:

Public Member Functions

 DemandElementSelector (GNEFrame *frameParent, SumoXMLTag demandElementTag)
 FOX-declaration. More...
 
 DemandElementSelector (GNEFrame *frameParent, const std::vector< GNEAttributeCarrier::TagType > &tagTypes)
 constructor with tag type More...
 
const std::vector< SumoXMLTag > & getAllowedTags () const
 
GNEDemandElementgetCurrentDemandElement () const
 get current demand element More...
 
void hideDemandElementSelector ()
 hide demand element selector More...
 
bool isDemandElementSelectorShown () const
 check if demand element selector is shown More...
 
void refreshDemandElementSelector ()
 refresh demand element selector More...
 
void setDemandElement (GNEDemandElement *demandElement)
 set current demand element More...
 
void showDemandElementSelector ()
 show demand element selector More...
 
 ~DemandElementSelector ()
 destructor More...
 
FOX-callbacks

Called when the user select another demand elementelement in ComboBox

long onCmdSelectDemandElement (FXObject *, FXSelector, void *)
 

Protected Member Functions

 DemandElementSelector ()
 FOX needs this. More...
 

Private Attributes

GNEDemandElementmyCurrentDemandElement
 current demand element More...
 
FXComboBox * myDemandElementsMatchBox
 comboBox with the list of elements type More...
 
std::vector< SumoXMLTagmyDemandElementTags
 demand element tags More...
 
GNEFramemyFrameParent
 pointer to frame Parent More...
 

Detailed Description

Definition at line 114 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ DemandElementSelector() [1/3]

GNEFrameModuls::DemandElementSelector::DemandElementSelector ( GNEFrame frameParent,
SumoXMLTag  demandElementTag 
)

FOX-declaration.

constructor with a single tag

Definition at line 317 of file GNEFrameModuls.cpp.

References GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_SET_TYPE, myDemandElementsMatchBox, and refreshDemandElementSelector().

◆ DemandElementSelector() [2/3]

GNEFrameModuls::DemandElementSelector::DemandElementSelector ( GNEFrame frameParent,
const std::vector< GNEAttributeCarrier::TagType > &  tagTypes 
)

◆ ~DemandElementSelector()

GNEFrameModuls::DemandElementSelector::~DemandElementSelector ( )

destructor

Definition at line 349 of file GNEFrameModuls.cpp.

◆ DemandElementSelector() [3/3]

GNEFrameModuls::DemandElementSelector::DemandElementSelector ( )
inlineprotected

FOX needs this.

Definition at line 157 of file GNEFrameModuls.h.

Member Function Documentation

◆ getAllowedTags()

const std::vector< SumoXMLTag > & GNEFrameModuls::DemandElementSelector::getAllowedTags ( ) const

Definition at line 359 of file GNEFrameModuls.cpp.

References myDemandElementTags.

Referenced by GNEStopFrame::show().

◆ getCurrentDemandElement()

◆ hideDemandElementSelector()

void GNEFrameModuls::DemandElementSelector::hideDemandElementSelector ( )

hide demand element selector

Definition at line 397 of file GNEFrameModuls.cpp.

Referenced by GNEStopFrame::show(), GNEPersonPlanFrame::show(), GNEPersonFrame::tagSelected(), and GNEVehicleFrame::tagSelected().

◆ isDemandElementSelectorShown()

bool GNEFrameModuls::DemandElementSelector::isDemandElementSelectorShown ( ) const

check if demand element selector is shown

Definition at line 403 of file GNEFrameModuls.cpp.

Referenced by GNEPersonPlanFrame::HelpCreation::updateHelpCreation().

◆ onCmdSelectDemandElement()

long GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement ( FXObject *  ,
FXSelector  ,
void *   
)

◆ refreshDemandElementSelector()

◆ setDemandElement()

◆ showDemandElementSelector()

Field Documentation

◆ myCurrentDemandElement

GNEDemandElement* GNEFrameModuls::DemandElementSelector::myCurrentDemandElement
private

◆ myDemandElementsMatchBox

FXComboBox* GNEFrameModuls::DemandElementSelector::myDemandElementsMatchBox
private

comboBox with the list of elements type

Definition at line 164 of file GNEFrameModuls.h.

Referenced by DemandElementSelector(), onCmdSelectDemandElement(), refreshDemandElementSelector(), setDemandElement(), and showDemandElementSelector().

◆ myDemandElementTags

std::vector<SumoXMLTag> GNEFrameModuls::DemandElementSelector::myDemandElementTags
private

◆ myFrameParent

GNEFrame* GNEFrameModuls::DemandElementSelector::myFrameParent
private

pointer to frame Parent

Definition at line 161 of file GNEFrameModuls.h.

Referenced by onCmdSelectDemandElement(), refreshDemandElementSelector(), and setDemandElement().


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