Eclipse SUMO - Simulation of Urban MObility
GNEPersonTypeFrame::PersonTypeSelector Class Reference

#include <GNEPersonTypeFrame.h>

Inheritance diagram for GNEPersonTypeFrame::PersonTypeSelector:
Collaboration diagram for GNEPersonTypeFrame::PersonTypeSelector:

Public Member Functions

GNEDemandElementgetCurrentPersonType () const
 get current Vehicle Type More...
 
 PersonTypeSelector (GNEPersonTypeFrame *personTypeFrameParent)
 FOX-declaration. More...
 
void refreshPersonTypeSelector ()
 refresh person type More...
 
void setCurrentPersonType (GNEDemandElement *vType)
 set current Vehicle Type More...
 
 ~PersonTypeSelector ()
 destructor More...
 
FOX-callbacks

Called when the user select another element in ComboBox

long onCmdSelectItem (FXObject *, FXSelector, void *)
 

Protected Member Functions

 PersonTypeSelector ()
 FOX needs this. More...
 

Private Attributes

GNEDemandElementmyCurrentPersonType
 pointer to current person type More...
 
GNEPersonTypeFramemyPersonTypeFrameParent
 pointer to Frame Parent More...
 
FXComboBox * myTypeMatchBox
 comboBox with the list of elements type More...
 

Detailed Description

Definition at line 46 of file GNEPersonTypeFrame.h.

Constructor & Destructor Documentation

◆ PersonTypeSelector() [1/2]

GNEPersonTypeFrame::PersonTypeSelector::PersonTypeSelector ( GNEPersonTypeFrame personTypeFrameParent)

FOX-declaration.

constructor

Definition at line 61 of file GNEPersonTypeFrame.cpp.

References DEFAULT_PEDTYPE_ID, GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_SET_TYPE, and SUMO_TAG_PTYPE.

◆ ~PersonTypeSelector()

GNEPersonTypeFrame::PersonTypeSelector::~PersonTypeSelector ( )

destructor

Definition at line 84 of file GNEPersonTypeFrame.cpp.

◆ PersonTypeSelector() [2/2]

GNEPersonTypeFrame::PersonTypeSelector::PersonTypeSelector ( )
inlineprotected

FOX needs this.

Definition at line 74 of file GNEPersonTypeFrame.h.

Member Function Documentation

◆ getCurrentPersonType()

GNEDemandElement * GNEPersonTypeFrame::PersonTypeSelector::getCurrentPersonType ( ) const

get current Vehicle Type

Definition at line 88 of file GNEPersonTypeFrame.cpp.

Referenced by GNEPersonTypeFrame::show().

◆ onCmdSelectItem()

long GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 140 of file GNEPersonTypeFrame.cpp.

References SUMO_TAG_PTYPE, and WRITE_DEBUG.

◆ refreshPersonTypeSelector()

void GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector ( )

refresh person type

Definition at line 101 of file GNEPersonTypeFrame.cpp.

References DEFAULT_VTYPE_ID, and SUMO_TAG_PTYPE.

Referenced by GNEPersonTypeFrame::attributeUpdated(), and GNEPersonTypeFrame::show().

◆ setCurrentPersonType()

void GNEPersonTypeFrame::PersonTypeSelector::setCurrentPersonType ( GNEDemandElement vType)

set current Vehicle Type

Definition at line 94 of file GNEPersonTypeFrame.cpp.

Referenced by GNEPersonTypeFrame::GNEPersonTypeFrame().

Field Documentation

◆ myCurrentPersonType

GNEDemandElement* GNEPersonTypeFrame::PersonTypeSelector::myCurrentPersonType
private

pointer to current person type

Definition at line 81 of file GNEPersonTypeFrame.h.

◆ myPersonTypeFrameParent

GNEPersonTypeFrame* GNEPersonTypeFrame::PersonTypeSelector::myPersonTypeFrameParent
private

pointer to Frame Parent

Definition at line 78 of file GNEPersonTypeFrame.h.

◆ myTypeMatchBox

FXComboBox* GNEPersonTypeFrame::PersonTypeSelector::myTypeMatchBox
private

comboBox with the list of elements type

Definition at line 84 of file GNEPersonTypeFrame.h.


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