SUMO - Simulation of Urban MObility
GNECalibratorRouteDialog Class Reference

Dialog for edit Calibrator Routes. More...

#include <GNECalibratorRouteDialog.h>

Inheritance diagram for GNECalibratorRouteDialog:
Inheritance graph
Collaboration diagram for GNECalibratorRouteDialog:
Collaboration graph

Public Member Functions

 GNECalibratorRouteDialog (GNECalibratorRoute *editedCalibratorRoute, bool updatingElement)
 FOX-declaration. More...
 
 ~GNECalibratorRouteDialog ()
 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 *)
 event after change value 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 changeAdditionalDialogHeader (const std::string &newHeader)
 change additional dialog header More...
 
 GNECalibratorRouteDialog ()
 FOX needs this. 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...
 
void updateCalibratorRouteValues ()
 update data fields More...
 

Protected Attributes

bool myCalibratorRouteValid
 flag to check if current calibrator vehicleType is valid More...
 
FXVerticalFrame * myContentFrame
 frame for contents More...
 
GNECalibratorRoutemyEditedCalibratorRoute
 pointer to modified rerouter interval More...
 
SumoXMLAttr myInvalidAttr
 current sumo attribute invalid More...
 
FXTextField * myTextFieldColor
 color of route More...
 
FXTextField * myTextFieldEdges
 list of edges (string) More...
 
FXTextField * myTextFieldRouteID
 route ID More...
 
bool myUpdatingElement
 flag to indicate if flow are being created or modified More...
 

Private Member Functions

 GNECalibratorRouteDialog (const GNECalibratorRouteDialog &)=delete
 Invalidated copy constructor. More...
 
GNECalibratorRouteDialogoperator= (const GNECalibratorRouteDialog &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit Calibrator Routes.

Definition at line 49 of file GNECalibratorRouteDialog.h.

Constructor & Destructor Documentation

◆ GNECalibratorRouteDialog() [1/3]

GNECalibratorRouteDialog::GNECalibratorRouteDialog ( GNECalibratorRoute editedCalibratorRoute,
bool  updatingElement 
)

◆ ~GNECalibratorRouteDialog()

GNECalibratorRouteDialog::~GNECalibratorRouteDialog ( )

destructor

Definition at line 103 of file GNECalibratorRouteDialog.cpp.

◆ GNECalibratorRouteDialog() [2/3]

GNECalibratorRouteDialog::GNECalibratorRouteDialog ( )
inlineprotected

FOX needs this.

Definition at line 77 of file GNECalibratorRouteDialog.h.

◆ GNECalibratorRouteDialog() [3/3]

GNECalibratorRouteDialog::GNECalibratorRouteDialog ( const GNECalibratorRouteDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

◆ cancelChanges()

◆ changeAdditionalDialogHeader()

void GNEAdditionalDialog::changeAdditionalDialogHeader ( const std::string &  newHeader)
protectedinherited

change additional dialog header

Definition at line 108 of file GNEAdditionalDialog.cpp.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protectedinherited

◆ onCmdAccept()

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 139 of file GNECalibratorRouteDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdReset()

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 149 of file GNECalibratorRouteDialog.cpp.

References GNEAdditionalDialog::resetChanges(), and updateCalibratorRouteValues().

◆ onCmdSetVariable()

◆ onKeyPress()

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

event after press a key

Definition at line 96 of file GNEAdditionalDialog.cpp.

◆ onKeyRelease()

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

event after release a key

Definition at line 102 of file GNEAdditionalDialog.cpp.

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 83 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

◆ updateCalibratorRouteValues()

void GNECalibratorRouteDialog::updateCalibratorRouteValues ( )
protected

Field Documentation

◆ myCalibratorRouteValid

bool GNECalibratorRouteDialog::myCalibratorRouteValid
protected

flag to check if current calibrator vehicleType is valid

Definition at line 86 of file GNECalibratorRouteDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 86 of file GNEAdditionalDialog.h.

◆ myEditedCalibratorRoute

GNECalibratorRoute* GNECalibratorRouteDialog::myEditedCalibratorRoute
protected

pointer to modified rerouter interval

Definition at line 80 of file GNECalibratorRouteDialog.h.

Referenced by onCmdAccept(), onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myInvalidAttr

SumoXMLAttr GNECalibratorRouteDialog::myInvalidAttr
protected

current sumo attribute invalid

Definition at line 89 of file GNECalibratorRouteDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myTextFieldColor

FXTextField* GNECalibratorRouteDialog::myTextFieldColor
protected

color of route

Definition at line 98 of file GNECalibratorRouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myTextFieldEdges

FXTextField* GNECalibratorRouteDialog::myTextFieldEdges
protected

list of edges (string)

Definition at line 95 of file GNECalibratorRouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myTextFieldRouteID

FXTextField* GNECalibratorRouteDialog::myTextFieldRouteID
protected

route ID

Definition at line 92 of file GNECalibratorRouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myUpdatingElement

bool GNECalibratorRouteDialog::myUpdatingElement
protected

flag to indicate if flow are being created or modified

Definition at line 83 of file GNECalibratorRouteDialog.h.

Referenced by onCmdAccept().


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