Eclipse SUMO - Simulation of Urban MObility
GNEVehicleTypeFrame::VehicleTypeSelector Class Reference

#include <GNEVehicleTypeFrame.h>

Inheritance diagram for GNEVehicleTypeFrame::VehicleTypeSelector:
[legend]
Collaboration diagram for GNEVehicleTypeFrame::VehicleTypeSelector:
[legend]

Public Member Functions

GNEDemandElementgetCurrentVehicleType () const
 get current Vehicle Type More...
 
void refreshVehicleTypeSelector ()
 refresh vehicle type selector More...
 
void refreshVehicleTypeSelectorIDs ()
 refresh vehicle type selector (only IDs, without refreshing attributes) More...
 
void setCurrentVehicleType (GNEDemandElement *vType)
 set current Vehicle Type More...
 
 VehicleTypeSelector (GNEVehicleTypeFrame *vehicleTypeFrameParent)
 FOX-declaration. More...
 
 ~VehicleTypeSelector ()
 destructor More...
 
FOX-callbacks

Called when the user select another element in ComboBox

long onCmdSelectItem (FXObject *, FXSelector, void *)
 

Private Attributes

GNEDemandElementmyCurrentVehicleType
 pointer to current vehicle type More...
 
FXComboBox * myTypeMatchBox
 comboBox with the list of elements type More...
 
GNEVehicleTypeFramemyVehicleTypeFrameParent
 pointer to Frame Parent More...
 

Detailed Description

Definition at line 44 of file GNEVehicleTypeFrame.h.

Constructor & Destructor Documentation

◆ VehicleTypeSelector()

GNEVehicleTypeFrame::VehicleTypeSelector::VehicleTypeSelector ( GNEVehicleTypeFrame vehicleTypeFrameParent)

FOX-declaration.

constructor

Definition at line 61 of file GNEVehicleTypeFrame.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_VTYPE_ID, GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_SET_TYPE, and SUMO_TAG_VTYPE.

◆ ~VehicleTypeSelector()

GNEVehicleTypeFrame::VehicleTypeSelector::~VehicleTypeSelector ( )

destructor

Definition at line 89 of file GNEVehicleTypeFrame.cpp.

Member Function Documentation

◆ getCurrentVehicleType()

GNEDemandElement * GNEVehicleTypeFrame::VehicleTypeSelector::getCurrentVehicleType ( ) const

get current Vehicle Type

Definition at line 93 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::attributesEditorExtendedDialogOpened(), and GNEVehicleTypeFrame::show().

Here is the caller graph for this function:

◆ onCmdSelectItem()

long GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 161 of file GNEVehicleTypeFrame.cpp.

References SUMO_TAG_VTYPE, and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshVehicleTypeSelector()

void GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector ( )

refresh vehicle type selector

Definition at line 106 of file GNEVehicleTypeFrame.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_VTYPE_ID, and SUMO_TAG_VTYPE.

Referenced by GNEChange_DemandElement::redo(), GNEVehicleTypeFrame::show(), and GNEChange_DemandElement::undo().

Here is the caller graph for this function:

◆ refreshVehicleTypeSelectorIDs()

void GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelectorIDs ( )

refresh vehicle type selector (only IDs, without refreshing attributes)

Definition at line 153 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::attributeUpdated().

Here is the caller graph for this function:

◆ setCurrentVehicleType()

void GNEVehicleTypeFrame::VehicleTypeSelector::setCurrentVehicleType ( GNEDemandElement vType)

set current Vehicle Type

Definition at line 99 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::GNEVehicleTypeFrame().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentVehicleType

GNEDemandElement* GNEVehicleTypeFrame::VehicleTypeSelector::myCurrentVehicleType
private

pointer to current vehicle type

Definition at line 81 of file GNEVehicleTypeFrame.h.

◆ myTypeMatchBox

FXComboBox* GNEVehicleTypeFrame::VehicleTypeSelector::myTypeMatchBox
private

comboBox with the list of elements type

Definition at line 84 of file GNEVehicleTypeFrame.h.

◆ myVehicleTypeFrameParent

GNEVehicleTypeFrame* GNEVehicleTypeFrame::VehicleTypeSelector::myVehicleTypeFrameParent
private

pointer to Frame Parent

Definition at line 78 of file GNEVehicleTypeFrame.h.


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