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 checkInterval (SUMOReal begin, SUMOReal end) const
 check begin and end of an new interval More...
 
bool checkModifyInterval (SUMOReal oldBegin, SUMOReal oldEnd, SUMOReal newBegin, SUMOReal newEnd) const
 check if begin and end of an existent interval can be modified More...
 
bool findInterval (SUMOReal begin, SUMOReal end) const
 check if a interval exists More...
 
GNERerouter * getRerouterParent () 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< GNERerouterInterval > myCopyOfRerouterIntervals
 set with a copy of rerouter intervals More...
 
FXTable * myIntervalList
 list with intervals More...
 
GNERerouter * myRerouterParent
 pointer to rerouter parent More...
 
FXButton * myResetButton
 cancel button More...
 

Private Member Functions

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

Detailed Description

Dialog for edit rerouters.

Definition at line 52 of file GNERerouterDialog.h.

Constructor & Destructor Documentation

GNERerouterDialog::~GNERerouterDialog ( )

destructor

Definition at line 85 of file GNERerouterDialog.cpp.

GNERerouterDialog::GNERerouterDialog ( )
inlineprotected

FOX needs this.

Definition at line 95 of file GNERerouterDialog.h.

GNERerouterDialog::GNERerouterDialog ( const GNERerouterDialog &  )
private

Invalidated copy constructor.

Member Function Documentation

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

change additional dialog header

Definition at line 85 of file GNEAdditionalDialog.cpp.

bool GNERerouterDialog::checkInterval ( SUMOReal  begin,
SUMOReal  end 
) const

check begin and end of an new interval

CHECK OVERLAPPING (Ticket #2843)

Definition at line 108 of file GNERerouterDialog.cpp.

Referenced by GNERerouterIntervalDialog::onCmdChangeBegin(), and GNERerouterIntervalDialog::onCmdChangeEnd().

bool GNERerouterDialog::checkModifyInterval ( SUMOReal  oldBegin,
SUMOReal  oldEnd,
SUMOReal  newBegin,
SUMOReal  newEnd 
) const

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

CHECK OVERLAPPING (Ticket #2843)

Definition at line 123 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals.

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

check if a interval exists

Definition at line 96 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals.

GNERerouter * GNERerouterDialog::getRerouterParent ( ) const

get rerouter parent

Definition at line 90 of file GNERerouterDialog.cpp.

References myRerouterParent.

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

add new interval

Definition at line 174 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 157 of file GNERerouterDialog.cpp.

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

remove or edit interval

Definition at line 189 of file GNERerouterDialog.cpp.

References myCopyOfRerouterIntervals, and myIntervalList.

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 165 of file GNERerouterDialog.cpp.

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

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

Invalidated assignment operator.

void GNERerouterDialog::updateIntervalTable ( )
protected

Field Documentation

FXButton* GNEAdditionalDialog::myAcceptButton
protectedinherited

accept button

Definition at line 85 of file GNEAdditionalDialog.h.

FXButton* GNERerouterDialog::myAddInterval
protected

button for add new interval

Definition at line 101 of file GNERerouterDialog.h.

FXButton* GNEAdditionalDialog::myCancelButton
protectedinherited

cancel button

Definition at line 88 of file GNEAdditionalDialog.h.

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 82 of file GNEAdditionalDialog.h.

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

set with a copy of rerouter intervals

Definition at line 107 of file GNERerouterDialog.h.

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

FXTable* GNERerouterDialog::myIntervalList
protected

list with intervals

Definition at line 104 of file GNERerouterDialog.h.

Referenced by onCmdClickedInterval(), and updateIntervalTable().

GNERerouter* GNERerouterDialog::myRerouterParent
protected

pointer to rerouter parent

Definition at line 98 of file GNERerouterDialog.h.

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

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: