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

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::DemandElementSelector:
[legend]
Collaboration diagram for GNEFrameModuls::DemandElementSelector:
[legend]

Public Member Functions

 DemandElementSelector (GNEFrame *frameParent, const std::vector< GNETagProperties::TagType > &tagTypes)
 constructor with tag type More...
 
 DemandElementSelector (GNEFrame *frameParent, SumoXMLTag demandElementTag)
 FOX-declaration. More...
 
const std::vector< SumoXMLTag > & getAllowedTags () const
 
GNEDemandElementgetCurrentDemandElement () const
 get current demand element More...
 
GNEEdgegetPersonPlanPreviousEdge () const
 get previous edge for the current selected demand elemnt 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 *)
 

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 111 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ DemandElementSelector() [1/2]

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

FOX-declaration.

constructor with a single tag

Definition at line 320 of file GNEFrameModuls.cpp.

◆ DemandElementSelector() [2/2]

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

◆ ~DemandElementSelector()

GNEFrameModuls::DemandElementSelector::~DemandElementSelector ( )

destructor

Definition at line 354 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ getAllowedTags()

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

Definition at line 364 of file GNEFrameModuls.cpp.

Referenced by GNEStopFrame::show().

Here is the caller graph for this function:

◆ getCurrentDemandElement()

GNEDemandElement * GNEFrameModuls::DemandElementSelector::getCurrentDemandElement ( ) const

◆ getPersonPlanPreviousEdge()

GNEEdge * GNEFrameModuls::DemandElementSelector::getPersonPlanPreviousEdge ( ) const

◆ hideDemandElementSelector()

void GNEFrameModuls::DemandElementSelector::hideDemandElementSelector ( )

hide demand element selector

Definition at line 403 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ isDemandElementSelectorShown()

bool GNEFrameModuls::DemandElementSelector::isDemandElementSelectorShown ( ) const

check if demand element selector is shown

Definition at line 409 of file GNEFrameModuls.cpp.

◆ onCmdSelectDemandElement()

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

Definition at line 519 of file GNEFrameModuls.cpp.

References WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshDemandElementSelector()

void GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector ( )

refresh demand element selector

Definition at line 415 of file GNEFrameModuls.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, SUMO_TAG_PTYPE, and SUMO_TAG_VTYPE.

Referenced by DemandElementSelector(), GNEStopFrame::GNEStopFrame(), GNEPersonFrame::show(), and GNEStopFrame::show().

Here is the caller graph for this function:

◆ setDemandElement()

void GNEFrameModuls::DemandElementSelector::setDemandElement ( GNEDemandElement demandElement)

set current demand element

Definition at line 370 of file GNEFrameModuls.cpp.

References GNEDemandElement::getID(), GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

Referenced by GNEStopFrame::addStop(), and GNEPersonPlanFrame::show().

Here is the caller graph for this function:

◆ showDemandElementSelector()

void GNEFrameModuls::DemandElementSelector::showDemandElementSelector ( )

show demand element selector

Definition at line 384 of file GNEFrameModuls.cpp.

References DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, SUMO_TAG_PTYPE, and SUMO_TAG_VTYPE.

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

Here is the caller graph for this function:

Field Documentation

◆ myCurrentDemandElement

GNEDemandElement* GNEFrameModuls::DemandElementSelector::myCurrentDemandElement
private

current demand element

Definition at line 166 of file GNEFrameModuls.h.

◆ myDemandElementsMatchBox

FXComboBox* GNEFrameModuls::DemandElementSelector::myDemandElementsMatchBox
private

comboBox with the list of elements type

Definition at line 163 of file GNEFrameModuls.h.

Referenced by DemandElementSelector().

◆ myDemandElementTags

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

demand element tags

Definition at line 169 of file GNEFrameModuls.h.

Referenced by DemandElementSelector().

◆ myFrameParent

GNEFrame* GNEFrameModuls::DemandElementSelector::myFrameParent
private

pointer to frame Parent

Definition at line 160 of file GNEFrameModuls.h.


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