Eclipse SUMO - Simulation of Urban MObility
GNEVehicleTypeDialog Class Reference

Dialog for edit rerouter intervals. More...

#include <GNEVehicleTypeDialog.h>

Inheritance diagram for GNEVehicleTypeDialog:
Collaboration diagram for GNEVehicleTypeDialog:

Data Structures

class  CarFollowingModelParameters
 class for CarFollowingModel More...
 
class  VTypeAtributes
 class for VClasses More...
 

Public Member Functions

GNEDemandElementgetEditedDemandElement () const
 get edited DemandElement More...
 
 GNEVehicleTypeDialog (GNEDemandElement *editedVehicleType, bool updatingElement)
 constructor More...
 
 ~GNEVehicleTypeDialog ()
 destructor More...
 
FOX-callbacks

event after press accept button

long onCmdAccept (FXObject *, FXSelector, void *)
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button More...
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button More...
 
long onCmdSetVariable (FXObject *, FXSelector, void *)
 after change a variable of vehicle type More...
 
FOX-callbacks

event after press accept button

long onKeyPress (FXObject *sender, FXSelector sel, void *ptr)
 event after press a key More...
 
long onKeyRelease (FXObject *sender, FXSelector sel, void *ptr)
 event after release a key More...
 

Protected Member Functions

void acceptChanges ()
 Accept changes did in this dialog. More...
 
void cancelChanges ()
 Cancel changes did in this dialog. More...
 
void changeDemandElementDialogHeader (const std::string &newHeader)
 change additional dialog header More...
 
void initChanges ()
 init a new group of changes that will be do it in dialog More...
 
FXint openAsModalDialog (FXuint placement=PLACEMENT_CURSOR)
 execute dialog as modal More...
 
void resetChanges ()
 reset changes did in this dialog. More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 frame for contents More...
 
GNEDemandElementmyEditedDemandElement
 pointer to edited aditional More...
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog) More...
 

Private Member Functions

 GNEVehicleTypeDialog (const GNEVehicleTypeDialog &)=delete
 Invalidated copy constructor. More...
 
GNEVehicleTypeDialogoperator= (const GNEVehicleTypeDialog &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

CarFollowingModelParametersmyCarFollowingModelParameters
 Car Following model parameters. More...
 
SumoXMLAttr myInvalidAttr
 current sumo attribute invalid More...
 
bool myVehicleTypeValid
 flag to check if current vehicleType is valid More...
 
VTypeAtributesmyVTypeAtributes
 Vehicle Type Common Attributes. More...
 

Detailed Description

Dialog for edit rerouter intervals.

Definition at line 45 of file GNEVehicleTypeDialog.h.

Constructor & Destructor Documentation

◆ GNEVehicleTypeDialog() [1/2]

◆ ~GNEVehicleTypeDialog()

GNEVehicleTypeDialog::~GNEVehicleTypeDialog ( )

destructor

Definition at line 1503 of file GNEVehicleTypeDialog.cpp.

◆ GNEVehicleTypeDialog() [2/2]

GNEVehicleTypeDialog::GNEVehicleTypeDialog ( const GNEVehicleTypeDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEDemandElementDialog::acceptChanges ( )
protectedinherited

◆ cancelChanges()

void GNEDemandElementDialog::cancelChanges ( )
protectedinherited

◆ changeDemandElementDialogHeader()

void GNEDemandElementDialog::changeDemandElementDialogHeader ( const std::string &  newHeader)
protectedinherited

change additional dialog header

Definition at line 109 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog().

◆ getEditedDemandElement()

GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement ( ) const
inherited

get edited DemandElement

Definition at line 91 of file GNEDemandElementDialog.cpp.

References GNEDemandElementDialog::myEditedDemandElement.

◆ initChanges()

◆ onCmdAccept()

◆ onCmdCancel()

long GNEVehicleTypeDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press cancel button

Implements GNEDemandElementDialog.

Definition at line 1534 of file GNEVehicleTypeDialog.cpp.

References GNEDemandElementDialog::cancelChanges().

◆ onCmdReset()

long GNEVehicleTypeDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

◆ onCmdSetVariable()

long GNEVehicleTypeDialog::onCmdSetVariable ( FXObject *  ,
FXSelector  ,
void *   
)

after change a variable of vehicle type

◆ onKeyPress()

long GNEDemandElementDialog::onKeyPress ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
inherited

event after press a key

Definition at line 97 of file GNEDemandElementDialog.cpp.

◆ onKeyRelease()

long GNEDemandElementDialog::onKeyRelease ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
inherited

event after release a key

Definition at line 103 of file GNEDemandElementDialog.cpp.

◆ openAsModalDialog()

FXint GNEDemandElementDialog::openAsModalDialog ( FXuint  placement = PLACEMENT_CURSOR)
protectedinherited

execute dialog as modal

Definition at line 78 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog().

◆ operator=()

GNEVehicleTypeDialog& GNEVehicleTypeDialog::operator= ( const GNEVehicleTypeDialog )
privatedelete

Invalidated assignment operator.

◆ resetChanges()

Field Documentation

◆ myCarFollowingModelParameters

CarFollowingModelParameters* GNEVehicleTypeDialog::myCarFollowingModelParameters
private

Car Following model parameters.

Definition at line 566 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().

◆ myContentFrame

FXVerticalFrame* GNEDemandElementDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 89 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog().

◆ myEditedDemandElement

GNEDemandElement* GNEDemandElementDialog::myEditedDemandElement
protectedinherited

pointer to edited aditional

Definition at line 83 of file GNEDemandElementDialog.h.

Referenced by GNEDemandElementDialog::acceptChanges(), GNEDemandElementDialog::cancelChanges(), GNEDemandElementDialog::getEditedDemandElement(), GNEVehicleTypeDialog(), GNEDemandElementDialog::initChanges(), GNERouteDialog::onCmdAccept(), onCmdAccept(), GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttribute(), GNERouteDialog::onCmdSetVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::onCmdSetVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog(), GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVClassLabelImage(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVShapeLabelImage(), GNERouteDialog::updateCalibratorRouteValues(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::updateValue(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::updateValue(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::updateValues(), GNEVehicleTypeDialog::VTypeAtributes::updateValues(), and GNEVehicleTypeDialog::CarFollowingModelParameters::updateValues().

◆ myInvalidAttr

◆ myUpdatingElement

bool GNEDemandElementDialog::myUpdatingElement
protectedinherited

flag to indicate if additional are being created or modified (cannot be changed after open dialog)

Definition at line 86 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog(), GNERouteDialog::onCmdAccept(), and onCmdAccept().

◆ myVehicleTypeValid

◆ myVTypeAtributes

VTypeAtributes* GNEVehicleTypeDialog::myVTypeAtributes
private

Vehicle Type Common Attributes.

Definition at line 563 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().


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