Eclipse SUMO - Simulation of Urban MObility
GNERerouterIntervalDialog Class Reference

Dialog for edit rerouter intervals. More...

#include <GNERerouterIntervalDialog.h>

Inheritance diagram for GNERerouterIntervalDialog:
Collaboration diagram for GNERerouterIntervalDialog:

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional More...
 
 GNERerouterIntervalDialog (GNEAdditional *rerouterInterval, bool updatingElement)
 FOX-declaration. More...
 
 ~GNERerouterIntervalDialog ()
 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 onCmdAddClosingLaneReroute (FXObject *, FXSelector, void *)
 add closing lane reroute More...
 
long onCmdAddClosingReroute (FXObject *, FXSelector, void *)
 add closing reroute More...
 
long onCmdAddDestProbReroute (FXObject *, FXSelector, void *)
 add dest prob reroute More...
 
long onCmdAddRouteProbReroute (FXObject *, FXSelector, void *)
 add route prob reroute More...
 
long onCmdAddParkingAreaReroute (FXObject *, FXSelector, void *)
 add parkingAreaReroute More...
 
long onCmdClickedClosingLaneReroute (FXObject *, FXSelector, void *)
 remove closing lane reroute More...
 
long onCmdClickedClosingReroute (FXObject *, FXSelector, void *)
 remove closing reroute More...
 
long onCmdClickedDestProbReroute (FXObject *, FXSelector, void *)
 remove dest prob reroute More...
 
long onCmdClickedRouteProbReroute (FXObject *, FXSelector, void *)
 remove route prob reroute More...
 
long onCmdClickedParkingAreaReroute (FXObject *, FXSelector, void *)
 remove parkingAreaReroute More...
 
long onCmdEditClosingLaneReroute (FXObject *, FXSelector, void *)
 /edit closing lane reroute More...
 
long onCmdEditClosingReroute (FXObject *, FXSelector, void *)
 /edit closing reroute More...
 
long onCmdEditDestProbReroute (FXObject *, FXSelector, void *)
 /edit dest prob reroute More...
 
long onCmdEditRouteProbReroute (FXObject *, FXSelector, void *)
 /edit route prob reroute More...
 
long onCmdEditParkingAreaReroute (FXObject *, FXSelector, void *)
 /edit parkingAreaReroute More...
 
long onCmdChangeBeginEnd (FXObject *, FXSelector, void *)
 called when begin or endis changed 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...
 
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

FXButton * myAddClosingLaneReroutes
 button for add new closing lane reroutes More...
 
FXButton * myAddClosingReroutes
 button for add new closing reroutes More...
 
FXButton * myAddDestProbReroutes
 button for add new destiny probability reroutes More...
 
FXButton * myAddParkingAreaReroute
 button for add new parkingAreaReroute More...
 
FXButton * myAddRouteProbReroute
 button for add new route probability reroutes More...
 
bool myBeginEndValid
 flag to check if begin an end are valid More...
 
FXTextField * myBeginTextField
 begin time text field More...
 
FXLabel * myCheckLabel
 begin/end time check label More...
 
std::vector< GNEAdditional * > myClosingLaneReroutesEdited
 closing Lane Reroutes edited More...
 
bool myClosingLaneReroutesValid
 flag to check if closing lane reroutes are valid More...
 
FXTable * myClosingLaneRerouteTable
 list with closing lane reroutes More...
 
std::vector< GNEAdditional * > myClosingReroutesEdited
 closing Reroutes edited More...
 
bool myClosingReroutesValid
 flag to check if closing reroutes are valid More...
 
FXTable * myClosingRerouteTable
 list with closing reroutes More...
 
FXVerticalFrame * myContentFrame
 frame for contents More...
 
std::vector< GNEAdditional * > myDestProbReroutesEdited
 Dest Prob Reroutes edited. More...
 
bool myDestProbReroutesValid
 flag to check if Destiny probability reroutes are valid More...
 
FXTable * myDestProbRerouteTable
 list with destiny probability reroutes More...
 
GNEAdditionalmyEditedAdditional
 pointer to edited aditional More...
 
FXTextField * myEndTextField
 end time text field More...
 
std::vector< GNEAdditional * > myParkingAreaRerouteEdited
 Parking Area reroute edited. More...
 
bool myParkingAreaReroutesValid
 flag to check if parkingAreaReroutes are valid More...
 
FXTable * myParkingAreaRerouteTable
 list with parkingAreaReroutes More...
 
std::vector< GNEAdditional * > myRouteProbReroutesEdited
 Route Prob Reroutes edited. More...
 
bool myRouteProbReroutesValid
 flag to check if route prob reroutes are valid More...
 
FXTable * myRouteProbRerouteTable
 list with route probability reroute More...
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog) More...
 

Private Member Functions

 GNERerouterIntervalDialog (const GNERerouterIntervalDialog &)=delete
 Invalidated copy constructor. More...
 
GNERerouterIntervalDialogoperator= (const GNERerouterIntervalDialog &)=delete
 Invalidated assignment operator. More...
 
void updateClosingLaneReroutesTable ()
 update data of closing lane reroute table More...
 
void updateClosingReroutesTable ()
 update data of closing reroute table More...
 
void updateDestProbReroutesTable ()
 update data of destiny probabilitry reroute table More...
 
void updateParkingAreaReroutesTable ()
 update data of parkingAreaReroute table More...
 
void updateRouteProbReroutesTable ()
 update data of probabilitry reroutes table More...
 

Private Attributes

FXButton * myAcceptButton
 accept button More...
 
FXButton * myCancelButton
 cancel button More...
 
std::string myChangesDescription
 description of changes did in this additional dialog More...
 
int myNumberOfChanges
 number of GNEChanges_... in dialog More...
 
FXButton * myResetButton
 cancel button More...
 

Detailed Description

Dialog for edit rerouter intervals.

Definition at line 49 of file GNERerouterIntervalDialog.h.

Constructor & Destructor Documentation

◆ GNERerouterIntervalDialog() [1/2]

◆ ~GNERerouterIntervalDialog()

GNERerouterIntervalDialog::~GNERerouterIntervalDialog ( )

destructor

Definition at line 205 of file GNERerouterIntervalDialog.cpp.

◆ GNERerouterIntervalDialog() [2/2]

GNERerouterIntervalDialog::GNERerouterIntervalDialog ( const GNERerouterIntervalDialog )
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.

◆ getEditedAdditional()

GNEAdditional * GNEAdditionalDialog::getEditedAdditional ( ) const
inherited

get edited Additional

Definition at line 90 of file GNEAdditionalDialog.cpp.

References GNEAdditionalDialog::myEditedAdditional.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protectedinherited

◆ onCmdAccept()

◆ onCmdAddClosingLaneReroute()

long GNERerouterIntervalDialog::onCmdAddClosingLaneReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddClosingReroute()

long GNERerouterIntervalDialog::onCmdAddClosingReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddDestProbReroute()

long GNERerouterIntervalDialog::onCmdAddDestProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddParkingAreaReroute()

long GNERerouterIntervalDialog::onCmdAddParkingAreaReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddRouteProbReroute()

long GNERerouterIntervalDialog::onCmdAddRouteProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 284 of file GNERerouterIntervalDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdChangeBeginEnd()

◆ onCmdClickedClosingLaneReroute()

long GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedClosingReroute()

long GNERerouterIntervalDialog::onCmdClickedClosingReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedDestProbReroute()

long GNERerouterIntervalDialog::onCmdClickedDestProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedParkingAreaReroute()

long GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedRouteProbReroute()

long GNERerouterIntervalDialog::onCmdClickedRouteProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdEditClosingLaneReroute()

◆ onCmdEditClosingReroute()

◆ onCmdEditDestProbReroute()

◆ onCmdEditParkingAreaReroute()

◆ onCmdEditRouteProbReroute()

◆ onCmdReset()

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

◆ 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 77 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

◆ updateClosingLaneReroutesTable()

void GNERerouterIntervalDialog::updateClosingLaneReroutesTable ( )
private

◆ updateClosingReroutesTable()

void GNERerouterIntervalDialog::updateClosingReroutesTable ( )
private

◆ updateDestProbReroutesTable()

void GNERerouterIntervalDialog::updateDestProbReroutesTable ( )
private

◆ updateParkingAreaReroutesTable()

void GNERerouterIntervalDialog::updateParkingAreaReroutesTable ( )
private

◆ updateRouteProbReroutesTable()

void GNERerouterIntervalDialog::updateRouteProbReroutesTable ( )
private

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
privateinherited

accept button

Definition at line 109 of file GNEAdditionalDialog.h.

◆ myAddClosingLaneReroutes

FXButton* GNERerouterIntervalDialog::myAddClosingLaneReroutes
protected

button for add new closing lane reroutes

Definition at line 134 of file GNERerouterIntervalDialog.h.

◆ myAddClosingReroutes

FXButton* GNERerouterIntervalDialog::myAddClosingReroutes
protected

button for add new closing reroutes

Definition at line 137 of file GNERerouterIntervalDialog.h.

◆ myAddDestProbReroutes

FXButton* GNERerouterIntervalDialog::myAddDestProbReroutes
protected

button for add new destiny probability reroutes

Definition at line 140 of file GNERerouterIntervalDialog.h.

◆ myAddParkingAreaReroute

FXButton* GNERerouterIntervalDialog::myAddParkingAreaReroute
protected

button for add new parkingAreaReroute

Definition at line 146 of file GNERerouterIntervalDialog.h.

◆ myAddRouteProbReroute

FXButton* GNERerouterIntervalDialog::myAddRouteProbReroute
protected

button for add new route probability reroutes

Definition at line 143 of file GNERerouterIntervalDialog.h.

◆ myBeginEndValid

bool GNERerouterIntervalDialog::myBeginEndValid
protected

flag to check if begin an end are valid

Definition at line 179 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdChangeBeginEnd().

◆ myBeginTextField

FXTextField* GNERerouterIntervalDialog::myBeginTextField
protected

begin time text field

Definition at line 125 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
privateinherited

cancel button

Definition at line 112 of file GNEAdditionalDialog.h.

◆ myChangesDescription

std::string GNEAdditionalDialog::myChangesDescription
privateinherited

description of changes did in this additional dialog

Definition at line 118 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::initChanges(), and GNEAdditionalDialog::resetChanges().

◆ myCheckLabel

FXLabel* GNERerouterIntervalDialog::myCheckLabel
protected

begin/end time check label

Definition at line 131 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myClosingLaneReroutesEdited

std::vector<GNEAdditional*> GNERerouterIntervalDialog::myClosingLaneReroutesEdited
protected

◆ myClosingLaneReroutesValid

bool GNERerouterIntervalDialog::myClosingLaneReroutesValid
protected

flag to check if closing lane reroutes are valid

Definition at line 182 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditClosingLaneReroute().

◆ myClosingLaneRerouteTable

FXTable* GNERerouterIntervalDialog::myClosingLaneRerouteTable
protected

list with closing lane reroutes

Definition at line 149 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedClosingLaneReroute(), onCmdEditClosingLaneReroute(), and updateClosingLaneReroutesTable().

◆ myClosingReroutesEdited

std::vector<GNEAdditional*> GNERerouterIntervalDialog::myClosingReroutesEdited
protected

◆ myClosingReroutesValid

bool GNERerouterIntervalDialog::myClosingReroutesValid
protected

flag to check if closing reroutes are valid

Definition at line 185 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditClosingReroute().

◆ myClosingRerouteTable

FXTable* GNERerouterIntervalDialog::myClosingRerouteTable
protected

list with closing reroutes

Definition at line 152 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedClosingReroute(), onCmdEditClosingReroute(), and updateClosingReroutesTable().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 87 of file GNEAdditionalDialog.h.

◆ myDestProbReroutesEdited

std::vector<GNEAdditional*> GNERerouterIntervalDialog::myDestProbReroutesEdited
protected

◆ myDestProbReroutesValid

bool GNERerouterIntervalDialog::myDestProbReroutesValid
protected

flag to check if Destiny probability reroutes are valid

Definition at line 188 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditDestProbReroute().

◆ myDestProbRerouteTable

FXTable* GNERerouterIntervalDialog::myDestProbRerouteTable
protected

list with destiny probability reroutes

Definition at line 155 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedDestProbReroute(), onCmdEditDestProbReroute(), and updateDestProbReroutesTable().

◆ myEditedAdditional

GNEAdditional* GNEAdditionalDialog::myEditedAdditional
protectedinherited

pointer to edited aditional

Definition at line 81 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), onCmdAccept(), GNEVariableSpeedSignDialog::onCmdAccept(), onCmdAddClosingLaneReroute(), onCmdAddClosingReroute(), onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), onCmdAddParkingAreaReroute(), GNECalibratorDialog::onCmdAddRoute(), onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNECalibratorDialog::onCmdAddVehicleType(), onCmdChangeBeginEnd(), onCmdClickedClosingLaneReroute(), onCmdClickedClosingReroute(), onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), onCmdEditClosingLaneReroute(), onCmdEditClosingReroute(), onCmdEditDestProbReroute(), onCmdEditParkingAreaReroute(), onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNECalibratorFlowDialog::onCmdSetVariable(), GNERerouterDialog::onCmdSortIntervals(), GNEVariableSpeedSignDialog::onCmdSortSteps(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ myEndTextField

FXTextField* GNERerouterIntervalDialog::myEndTextField
protected

end time text field

Definition at line 128 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
privateinherited

number of GNEChanges_... in dialog

Definition at line 121 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::initChanges().

◆ myParkingAreaRerouteEdited

std::vector<GNEAdditional*> GNERerouterIntervalDialog::myParkingAreaRerouteEdited
protected

◆ myParkingAreaReroutesValid

bool GNERerouterIntervalDialog::myParkingAreaReroutesValid
protected

flag to check if parkingAreaReroutes are valid

Definition at line 191 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditParkingAreaReroute().

◆ myParkingAreaRerouteTable

FXTable* GNERerouterIntervalDialog::myParkingAreaRerouteTable
protected

list with parkingAreaReroutes

Definition at line 161 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedParkingAreaReroute(), onCmdEditParkingAreaReroute(), and updateParkingAreaReroutesTable().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
privateinherited

cancel button

Definition at line 115 of file GNEAdditionalDialog.h.

◆ myRouteProbReroutesEdited

std::vector<GNEAdditional*> GNERerouterIntervalDialog::myRouteProbReroutesEdited
protected

◆ myRouteProbReroutesValid

bool GNERerouterIntervalDialog::myRouteProbReroutesValid
protected

flag to check if route prob reroutes are valid

Definition at line 194 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditRouteProbReroute().

◆ myRouteProbRerouteTable

FXTable* GNERerouterIntervalDialog::myRouteProbRerouteTable
protected

list with route probability reroute

Definition at line 158 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedRouteProbReroute(), onCmdEditRouteProbReroute(), and updateRouteProbReroutesTable().

◆ myUpdatingElement

bool GNEAdditionalDialog::myUpdatingElement
protectedinherited

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

Definition at line 84 of file GNEAdditionalDialog.h.

Referenced by GNECalibratorFlowDialog::onCmdAccept(), and onCmdAccept().


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