![]() |
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 | 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... | |
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 60 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 82 of file GNERerouterDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 92 of file GNERerouterDialog.h.
|
private |
Invalidated copy constructor.
|
inherited |
change additional dialog header
Definition at line 81 of file GNEAdditionalDialog.cpp.
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().
bool GNERerouterDialog::findInterval | ( | double | begin, |
double | end | ||
) | const |
check if a interval exists
Definition at line 93 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals.
GNERerouter * GNERerouterDialog::getRerouterParent | ( | ) | const |
get rerouter parent
Definition at line 87 of file GNERerouterDialog.cpp.
References myRerouterParent.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 135 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals, myRerouterParent, and GNERerouter::setRerouterIntervals().
long GNERerouterDialog::onCmdAddInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new interval
Definition at line 164 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 147 of file GNERerouterDialog.cpp.
long GNERerouterDialog::onCmdClickedInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit interval
Definition at line 179 of file GNERerouterDialog.cpp.
References myCopyOfRerouterIntervals, and myIntervalList.
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 155 of file GNERerouterDialog.cpp.
References GNERerouter::getRerouterIntervals(), myCopyOfRerouterIntervals, myRerouterParent, and updateIntervalTable().
|
private |
Invalidated assignment operator.
|
protected |
update data table
Definition at line 203 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 98 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 104 of file GNERerouterDialog.h.
Referenced by checkModifyInterval(), findInterval(), onCmdAccept(), onCmdAddInterval(), onCmdClickedInterval(), onCmdReset(), and updateIntervalTable().
|
protected |
list with intervals
Definition at line 101 of file GNERerouterDialog.h.
Referenced by onCmdClickedInterval(), and updateIntervalTable().
|
protected |
pointer to rerouter parent
Definition at line 95 of file GNERerouterDialog.h.
Referenced by checkModifyInterval(), getRerouterParent(), onCmdAccept(), onCmdAddInterval(), and onCmdReset().
|
protectedinherited |
cancel button
Definition at line 91 of file GNEAdditionalDialog.h.