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

#include <GNEVehicleTypeFrame.h>

Inheritance diagram for GNEVehicleTypeFrame::VehicleTypeSelector:
Collaboration diagram for GNEVehicleTypeFrame::VehicleTypeSelector:

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 45 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

◆ onCmdSelectItem()

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

Definition at line 159 of file GNEVehicleTypeFrame.cpp.

References SUMO_TAG_VTYPE, and WRITE_DEBUG.

◆ refreshVehicleTypeSelector()

void GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector ( )

◆ refreshVehicleTypeSelectorIDs()

void GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelectorIDs ( )

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

Definition at line 151 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::attributeUpdated().

◆ setCurrentVehicleType()

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

set current Vehicle Type

Definition at line 99 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::GNEVehicleTypeFrame().

Field Documentation

◆ myCurrentVehicleType

GNEDemandElement* GNEVehicleTypeFrame::VehicleTypeSelector::myCurrentVehicleType
private

pointer to current vehicle type

Definition at line 82 of file GNEVehicleTypeFrame.h.

◆ myTypeMatchBox

FXComboBox* GNEVehicleTypeFrame::VehicleTypeSelector::myTypeMatchBox
private

comboBox with the list of elements type

Definition at line 85 of file GNEVehicleTypeFrame.h.

◆ myVehicleTypeFrameParent

GNEVehicleTypeFrame* GNEVehicleTypeFrame::VehicleTypeSelector::myVehicleTypeFrameParent
private

pointer to Frame Parent

Definition at line 79 of file GNEVehicleTypeFrame.h.


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