SUMO - Simulation of Urban MObility
GNERerouterDialog Class Reference

Dialog for edit rerouters. More...

#include <GNERerouterDialog.h>

Inheritance diagram for GNERerouterDialog:
Inheritance graph
Collaboration diagram for GNERerouterDialog:
Collaboration graph

Public Member Functions

void changeAdditionalDialogHeader (const std::string &newHeader)
 change additional dialog header More...
 
bool checkModifyInterval (const GNERerouterInterval &rerouterInterval, double newBegin, double newEnd) const
 check if begin and end of an existent interval can be modified More...
 
bool findInterval (double begin, double end) const
 check if a interval exists More...
 
GNEReroutergetRerouterParent () const
 get rerouter parent More...
 
 GNERerouterDialog (GNERerouter *rerouterParent)
 FOX-declaration. More...
 
 ~GNERerouterDialog ()
 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 onCmdAddInterval (FXObject *, FXSelector, void *)
 add new interval More...
 
long onCmdClickedInterval (FXObject *, FXSelector, void *)
 remove or edit interval More...
 

Protected Member Functions

 GNERerouterDialog ()
 FOX needs this. More...
 
void updateIntervalTable ()
 update data table More...
 

Protected Attributes

FXButton * myAcceptButton
 accept button More...
 
FXButton * myAddInterval
 button for add new interval More...
 
FXButton * myCancelButton
 cancel button More...
 
FXVerticalFrame * myContentFrame
 frame for contents More...
 
std::vector< GNERerouterIntervalmyCopyOfRerouterIntervals
 set with a copy of rerouter intervals More...
 
FXTable * myIntervalList
 list with intervals More...
 
GNEReroutermyRerouterParent
 pointer to rerouter parent More...
 
FXButton * myResetButton
 cancel button More...
 

Private Member Functions

 GNERerouterDialog (const GNERerouterDialog &)
 Invalidated copy constructor. More...
 
GNERerouterDialogoperator= (const GNERerouterDialog &)
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit rerouters.

Definition at line 52 of file GNERerouterDialog.h.

Constructor & Destructor Documentation

◆ GNERerouterDialog() [1/3]

◆ ~GNERerouterDialog()

GNERerouterDialog::~GNERerouterDialog ( )

destructor

Definition at line 82 of file GNERerouterDialog.cpp.

◆ GNERerouterDialog() [2/3]

GNERerouterDialog::GNERerouterDialog ( )
inlineprotected

FOX needs this.

Definition at line 92 of file GNERerouterDialog.h.

◆ GNERerouterDialog() [3/3]

GNERerouterDialog::GNERerouterDialog ( const GNERerouterDialog )
private

Invalidated copy constructor.

Member Function Documentation

◆ changeAdditionalDialogHeader()

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

change additional dialog header

Definition at line 81 of file GNEAdditionalDialog.cpp.

◆ checkModifyInterval()

bool GNERerouterDialog::checkModifyInterval ( const GNERerouterInterval rerouterInterval,
double  newBegin,
double  newEnd 
) const

check if begin and end of an existent interval can be modified

Definition at line 105 of file GNERerouterDialog.cpp.

References GNERerouter::checkOverlapping(), GNERerouterInterval::getRerouterParent(), myCopyOfRerouterIntervals, and myRerouterParent.

Referenced by GNERerouterIntervalDialog::onCmdChangeBeginEnd().

◆ findInterval()

bool GNERerouterDialog::findInterval ( double  begin,
double  end 
) const

check if a interval exists

Definition at line 93 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals.

◆ getRerouterParent()

GNERerouter * GNERerouterDialog::getRerouterParent ( ) const

get rerouter parent

Definition at line 87 of file GNERerouterDialog.cpp.

References myRerouterParent.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

◆ onCmdAccept()

long GNERerouterDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

◆ onCmdAddInterval()

long GNERerouterDialog::onCmdAddInterval ( FXObject *  ,
FXSelector  ,
void *   
)

add new interval

Definition at line 164 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 147 of file GNERerouterDialog.cpp.

◆ onCmdClickedInterval()

long GNERerouterDialog::onCmdClickedInterval ( FXObject *  ,
FXSelector  ,
void *   
)

remove or edit interval

Definition at line 179 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals, and myIntervalList.

◆ onCmdReset()

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 155 of file GNERerouterDialog.cpp.

References GNERerouter::getRerouterIntervals(), myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().

◆ operator=()

GNERerouterDialog& GNERerouterDialog::operator= ( const GNERerouterDialog )
private

Invalidated assignment operator.

◆ updateIntervalTable()

void GNERerouterDialog::updateIntervalTable ( )
protected

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
protectedinherited

accept button

Definition at line 85 of file GNEAdditionalDialog.h.

◆ myAddInterval

FXButton* GNERerouterDialog::myAddInterval
protected

button for add new interval

Definition at line 98 of file GNERerouterDialog.h.

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
protectedinherited

cancel button

Definition at line 88 of file GNEAdditionalDialog.h.

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 82 of file GNEAdditionalDialog.h.

◆ myCopyOfRerouterIntervals

std::vector<GNERerouterInterval> GNERerouterDialog::myCopyOfRerouterIntervals
protected

set with a copy of rerouter intervals

Definition at line 104 of file GNERerouterDialog.h.

Referenced by checkModifyInterval(), findInterval(), onCmdAccept(), onCmdAddInterval(), onCmdClickedInterval(), onCmdReset(), and updateIntervalTable().

◆ myIntervalList

FXTable* GNERerouterDialog::myIntervalList
protected

list with intervals

Definition at line 101 of file GNERerouterDialog.h.

Referenced by onCmdClickedInterval(), and updateIntervalTable().

◆ myRerouterParent

GNERerouter* GNERerouterDialog::myRerouterParent
protected

pointer to rerouter parent

Definition at line 95 of file GNERerouterDialog.h.

Referenced by checkModifyInterval(), getRerouterParent(), onCmdAccept(), onCmdAddInterval(), and onCmdReset().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
protectedinherited

cancel button

Definition at line 91 of file GNEAdditionalDialog.h.


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