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 *)
 

Protected Member Functions

 VehicleTypeSelector ()
 FOX needs this. More...
 

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 46 of file GNEVehicleTypeFrame.h.

Constructor & Destructor Documentation

◆ VehicleTypeSelector() [1/2]

GNEVehicleTypeFrame::VehicleTypeSelector::VehicleTypeSelector ( GNEVehicleTypeFrame vehicleTypeFrameParent)

FOX-declaration.

constructor

Definition at line 62 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 90 of file GNEVehicleTypeFrame.cpp.

◆ VehicleTypeSelector() [2/2]

GNEVehicleTypeFrame::VehicleTypeSelector::VehicleTypeSelector ( )
inlineprotected

FOX needs this.

Definition at line 77 of file GNEVehicleTypeFrame.h.

Member Function Documentation

◆ getCurrentVehicleType()

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

◆ onCmdSelectItem()

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

Definition at line 160 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 152 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::attributeUpdated().

◆ setCurrentVehicleType()

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

set current Vehicle Type

Definition at line 100 of file GNEVehicleTypeFrame.cpp.

Referenced by GNEVehicleTypeFrame::GNEVehicleTypeFrame().

Field Documentation

◆ myCurrentVehicleType

GNEDemandElement* GNEVehicleTypeFrame::VehicleTypeSelector::myCurrentVehicleType
private

pointer to current vehicle type

Definition at line 84 of file GNEVehicleTypeFrame.h.

◆ myTypeMatchBox

FXComboBox* GNEVehicleTypeFrame::VehicleTypeSelector::myTypeMatchBox
private

comboBox with the list of elements type

Definition at line 87 of file GNEVehicleTypeFrame.h.

◆ myVehicleTypeFrameParent

GNEVehicleTypeFrame* GNEVehicleTypeFrame::VehicleTypeSelector::myVehicleTypeFrameParent
private

pointer to Frame Parent

Definition at line 81 of file GNEVehicleTypeFrame.h.


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