![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#include <GNERerouterDialog.h>


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... | |
Dialog for edit rerouters.
Definition at line 52 of file GNERerouterDialog.h.
| GNERerouterDialog::GNERerouterDialog | ( | GNERerouter * | rerouterParent | ) |
FOX-declaration.
Constructor
Definition at line 63 of file GNERerouterDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, ICON_ADD, MID_GNE_REROUTEDIALOG_ADD_INTERVAL, MID_GNE_REROUTEDIALOG_TABLE_INTERVAL, SUMO_TAG_CLOSING_LANE_REROUTE, and toString().
| GNERerouterDialog::~GNERerouterDialog | ( | ) |
destructor
Definition at line 85 of file GNERerouterDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 95 of file GNERerouterDialog.h.
|
private |
Invalidated copy constructor.
|
inherited |
change additional dialog header
Definition at line 85 of file GNEAdditionalDialog.cpp.
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.
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.
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 145 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals, myRerouterParent, and GNERerouter::setRerouterIntervals().
| long GNERerouterDialog::onCmdAddInterval | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
add new interval
Definition at line 174 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().
|
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.
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 165 of file GNERerouterDialog.cpp.
References GNERerouter::getRerouterIntervals(), myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().
|
private |
Invalidated assignment operator.
|
protected |
update data table
Definition at line 213 of file GNERerouterDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_REMOVE, myCopyOfRerouterIntervals, myIntervalList, SUMO_ATTR_BEGIN, SUMO_ATTR_END, and toString().
Referenced by onCmdAddInterval(), and onCmdReset().
|
protectedinherited |
accept button
Definition at line 85 of file GNEAdditionalDialog.h.
|
protected |
button for add new interval
Definition at line 101 of file GNERerouterDialog.h.
|
protectedinherited |
cancel button
Definition at line 88 of file GNEAdditionalDialog.h.
|
protectedinherited |
frame for contents
Definition at line 82 of file GNEAdditionalDialog.h.
|
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().
|
protected |
list with intervals
Definition at line 104 of file GNERerouterDialog.h.
Referenced by onCmdClickedInterval(), and updateIntervalTable().
|
protected |
pointer to rerouter parent
Definition at line 98 of file GNERerouterDialog.h.
Referenced by getRerouterParent(), onCmdAccept(), onCmdAddInterval(), and onCmdReset().
|
protectedinherited |
cancel button
Definition at line 91 of file GNEAdditionalDialog.h.