![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit rerouter intervals. More...
#include <GNERerouterIntervalDialog.h>
Public Member Functions | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header More... | |
GNERerouterIntervalDialog (GNERerouterDialog *rerouterDialog, GNERerouterInterval &rerouterInterval) | |
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 | 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 | 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 | onCmdChangeBeginEnd (FXObject *, FXSelector, void *) |
called when begin or endis changed More... | |
Protected Member Functions | |
GNERerouterIntervalDialog () | |
FOX needs this. 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 | updateRouteProbReroutesTable () |
update data of probabilitry reroutes table More... | |
Protected Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
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 * | 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... | |
FXButton * | myCancelButton |
cancel button More... | |
FXLabel * | myCheckLabel |
begin/end time check label More... | |
FXTable * | myClosingLaneRerouteList |
list with closing lane reroutes More... | |
bool | myClosingLaneReroutesValid |
flag to check if closing lane reroutes are valid More... | |
FXTable * | myClosingRerouteList |
list with closing reroutes More... | |
bool | myClosingReroutesValid |
flag to check if closing reroutes are valid More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
std::vector< GNEClosingLaneReroute > | myCopyOfClosingLaneReroutes |
vector with the closingLaneReroutes More... | |
std::vector< GNEClosingReroute > | myCopyOfClosingReroutes |
vector with a copy of the closingReroutes More... | |
std::vector< GNEDestProbReroute > | myCopyOfDestProbReroutes |
vector with a copy of the destProbReroutes More... | |
std::vector< GNERouteProbReroute > | myCopyOfRouteProbReroutes |
vector with a copy of the routeProbReroutes More... | |
FXTable * | myDestProbRerouteList |
list with destiny probability reroutes More... | |
bool | myDestProbReroutesValid |
flag to check if Destiny probability reroutes are valid More... | |
FXTextField * | myEndTextField |
end time text field More... | |
GNERerouterDialog * | myRerouterDialogParent |
pointer to GNERerouterDialog parent More... | |
GNERerouterInterval * | myRerouterInterval |
pointer to rerouter interval More... | |
FXButton * | myResetButton |
cancel button More... | |
FXTable * | myRouteProbRerouteList |
list with route probability reroute More... | |
bool | myRouteProbReroutesValid |
flag to check if route prob reroutes are valid More... | |
Private Member Functions | |
GNERerouterIntervalDialog (const GNERerouterIntervalDialog &) | |
Invalidated copy constructor. More... | |
GNERerouterIntervalDialog & | operator= (const GNERerouterIntervalDialog &) |
Invalidated assignment operator. More... | |
Dialog for edit rerouter intervals.
Definition at line 57 of file GNERerouterIntervalDialog.h.
GNERerouterIntervalDialog::GNERerouterIntervalDialog | ( | GNERerouterDialog * | rerouterDialog, |
GNERerouterInterval & | rerouterInterval | ||
) |
FOX-declaration.
constructor
Definition at line 81 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelIcon32x32Thicked, GUIDesignLabelLeftThick, GUIDesignLabelThick, GUIDesignTableAdditionals, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, GUIDesignUniformHorizontalFrame, ICON_ADD, ICON_CORRECT, ICON_ERROR, MID_GNE_REROUTEDIALOG_ADD_CLOSINGLANEREROUTE, MID_GNE_REROUTEDIALOG_ADD_CLOSINGREROUTE, MID_GNE_REROUTEDIALOG_ADD_DESTPROBREROUTE, MID_GNE_REROUTEDIALOG_ADD_ROUTEPROBREROUTE, MID_GNE_REROUTEDIALOG_EDIT_INTERVAL, MID_GNE_REROUTEDIALOG_TABLE_CLOSINGLANEREROUTE, MID_GNE_REROUTEDIALOG_TABLE_CLOSINGREROUTE, MID_GNE_REROUTEDIALOG_TABLE_DESTPROBREROUTE, MID_GNE_REROUTEDIALOG_TABLE_ROUTEPROBREROUTE, SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_ROUTE_PROB_REROUTE, and toString().
GNERerouterIntervalDialog::~GNERerouterIntervalDialog | ( | ) |
destructor
Definition at line 163 of file GNERerouterIntervalDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 122 of file GNERerouterIntervalDialog.h.
|
private |
Invalidated copy constructor.
|
inherited |
change additional dialog header
Definition at line 81 of file GNEAdditionalDialog.cpp.
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 168 of file GNERerouterIntervalDialog.cpp.
References GNERerouterDialog::getRerouterParent(), GNERerouterInterval::getRerouterParent(), GNEAttributeCarrier::getTag(), GNERerouterInterval::getTag(), GNEAdditional::getViewNet(), GNEViewNet::isTestingModeEnabled(), myBeginEndValid, myBeginTextField, myClosingLaneReroutesValid, myClosingReroutesValid, myCopyOfClosingLaneReroutes, myCopyOfClosingReroutes, myCopyOfDestProbReroutes, myCopyOfRouteProbReroutes, myDestProbReroutesValid, myEndTextField, myRerouterDialogParent, myRerouterInterval, myRouteProbReroutesValid, GNERerouterInterval::setBegin(), GNERerouterInterval::setClosingLaneReroutes(), GNERerouterInterval::setClosingReroutes(), GNERerouterInterval::setDestProbReroutes(), GNERerouterInterval::setEnd(), GNERerouterInterval::setRouteProbReroutes(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_ROUTE_PROB_REROUTE, toString(), and WRITE_WARNING.
long GNERerouterIntervalDialog::onCmdAddClosingLaneReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add closing lane reroute
Definition at line 302 of file GNERerouterIntervalDialog.cpp.
References myCopyOfClosingLaneReroutes, myRerouterInterval, onCmdEditClosingLaneReroute(), and updateClosingLaneReroutesTable().
long GNERerouterIntervalDialog::onCmdAddClosingReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add closing reroute
Definition at line 312 of file GNERerouterIntervalDialog.cpp.
References myCopyOfClosingReroutes, myRerouterInterval, onCmdEditClosingLaneReroute(), and updateClosingReroutesTable().
long GNERerouterIntervalDialog::onCmdAddDestProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add dest prob reroute
Definition at line 322 of file GNERerouterIntervalDialog.cpp.
References myCopyOfDestProbReroutes, myRerouterInterval, onCmdEditDestProbReroute(), and updateDestProbReroutesTable().
long GNERerouterIntervalDialog::onCmdAddRouteProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add route prob reroute
Definition at line 332 of file GNERerouterIntervalDialog.cpp.
References myCopyOfRouteProbReroutes, myRerouterInterval, onCmdEditRouteProbReroute(), and updateRouteProbReroutesTable().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 278 of file GNERerouterIntervalDialog.cpp.
long GNERerouterIntervalDialog::onCmdChangeBeginEnd | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when begin or endis changed
Definition at line 520 of file GNERerouterIntervalDialog.cpp.
References GNERerouterDialog::checkModifyInterval(), GUIIconSubSys::getIcon(), ICON_CORRECT, ICON_ERROR, myBeginEndValid, myBeginTextField, myCheckLabel, myEndTextField, myRerouterDialogParent, and myRerouterInterval.
long GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove closing lane reroute
Definition at line 342 of file GNERerouterIntervalDialog.cpp.
References myClosingLaneRerouteList, myCopyOfClosingLaneReroutes, and updateClosingLaneReroutesTable().
long GNERerouterIntervalDialog::onCmdClickedClosingReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove closing reroute
Definition at line 357 of file GNERerouterIntervalDialog.cpp.
References myClosingRerouteList, myCopyOfClosingReroutes, and updateClosingReroutesTable().
long GNERerouterIntervalDialog::onCmdClickedDestProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove dest prob reroute
Definition at line 372 of file GNERerouterIntervalDialog.cpp.
References myCopyOfDestProbReroutes, myDestProbRerouteList, and updateDestProbReroutesTable().
long GNERerouterIntervalDialog::onCmdClickedRouteProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove route prob reroute
Definition at line 387 of file GNERerouterIntervalDialog.cpp.
References myCopyOfRouteProbReroutes, myRouteProbRerouteList, and updateRouteProbReroutesTable().
long GNERerouterIntervalDialog::onCmdEditClosingLaneReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
/edit closing lane reroute
Definition at line 402 of file GNERerouterIntervalDialog.cpp.
References canParseVehicleClasses(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNERerouterInterval::getRerouterParent(), GNEAdditional::getViewNet(), ICON_CORRECT, ICON_ERROR, myClosingLaneRerouteList, myClosingLaneReroutesValid, myCopyOfClosingLaneReroutes, myRerouterInterval, parseVehicleClasses(), and GNENet::retrieveLane().
Referenced by onCmdAddClosingLaneReroute(), and onCmdAddClosingReroute().
long GNERerouterIntervalDialog::onCmdEditClosingReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
/edit closing reroute
Definition at line 430 of file GNERerouterIntervalDialog.cpp.
References canParseVehicleClasses(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNERerouterInterval::getRerouterParent(), GNEAdditional::getViewNet(), ICON_CORRECT, ICON_ERROR, myClosingRerouteList, myClosingReroutesValid, myCopyOfClosingReroutes, myRerouterInterval, parseVehicleClasses(), and GNENet::retrieveEdge().
long GNERerouterIntervalDialog::onCmdEditDestProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
/edit dest prob reroute
Definition at line 458 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNERerouterInterval::getRerouterParent(), GNEAdditional::getViewNet(), ICON_CORRECT, ICON_ERROR, myCopyOfDestProbReroutes, myDestProbRerouteList, myDestProbReroutesValid, myRerouterInterval, and GNENet::retrieveEdge().
Referenced by onCmdAddDestProbReroute().
long GNERerouterIntervalDialog::onCmdEditRouteProbReroute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
/edit route prob reroute
Definition at line 489 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), ICON_CORRECT, ICON_ERROR, myCopyOfRouteProbReroutes, myRouteProbRerouteList, and myRouteProbReroutesValid.
Referenced by onCmdAddRouteProbReroute().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 286 of file GNERerouterIntervalDialog.cpp.
References GNERerouterInterval::getClosingLaneReroutes(), GNERerouterInterval::getClosingReroutes(), GNERerouterInterval::getDestProbReroutes(), GNERerouterInterval::getRouteProbReroutes(), myCopyOfClosingLaneReroutes, myCopyOfClosingReroutes, myCopyOfDestProbReroutes, myCopyOfRouteProbReroutes, myRerouterInterval, updateClosingLaneReroutesTable(), updateClosingReroutesTable(), updateDestProbReroutesTable(), and updateRouteProbReroutesTable().
|
private |
Invalidated assignment operator.
|
protected |
update data of closing lane reroute table
Definition at line 548 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), getVehicleClassNames(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_ERROR, ICON_REMOVE, myClosingLaneRerouteList, myClosingLaneReroutesValid, myCopyOfClosingLaneReroutes, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_LANE, and toString().
Referenced by onCmdAddClosingLaneReroute(), onCmdClickedClosingLaneReroute(), and onCmdReset().
|
protected |
update data of closing reroute table
Definition at line 607 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), getVehicleClassNames(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_ERROR, ICON_REMOVE, myClosingRerouteList, myClosingReroutesValid, myCopyOfClosingReroutes, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_EDGE, and toString().
Referenced by onCmdAddClosingReroute(), onCmdClickedClosingReroute(), and onCmdReset().
|
protected |
update data of destiny probabilitry reroute table
Definition at line 666 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_ERROR, ICON_REMOVE, myCopyOfDestProbReroutes, myDestProbRerouteList, myDestProbReroutesValid, SUMO_ATTR_EDGE, SUMO_ATTR_PROB, and toString().
Referenced by onCmdAddDestProbReroute(), onCmdClickedDestProbReroute(), and onCmdReset().
|
protected |
update data of probabilitry reroutes table
Definition at line 720 of file GNERerouterIntervalDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_ERROR, ICON_REMOVE, myCopyOfRouteProbReroutes, myRouteProbRerouteList, myRouteProbReroutesValid, SUMO_ATTR_PROB, SUMO_ATTR_ROUTE, and toString().
Referenced by onCmdAddRouteProbReroute(), onCmdClickedRouteProbReroute(), and onCmdReset().
|
protectedinherited |
accept button
Definition at line 85 of file GNEAdditionalDialog.h.
|
protected |
button for add new closing lane reroutes
Definition at line 140 of file GNERerouterIntervalDialog.h.
|
protected |
button for add new closing reroutes
Definition at line 143 of file GNERerouterIntervalDialog.h.
|
protected |
button for add new destiny probability reroutes
Definition at line 146 of file GNERerouterIntervalDialog.h.
|
protected |
button for add new route probability reroutes
Definition at line 149 of file GNERerouterIntervalDialog.h.
|
protected |
flag to check if begin an end are valid
Definition at line 164 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), and onCmdChangeBeginEnd().
|
protected |
begin time text field
Definition at line 131 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), and onCmdChangeBeginEnd().
|
protectedinherited |
cancel button
Definition at line 88 of file GNEAdditionalDialog.h.
|
protected |
begin/end time check label
Definition at line 137 of file GNERerouterIntervalDialog.h.
Referenced by onCmdChangeBeginEnd().
|
protected |
list with closing lane reroutes
Definition at line 152 of file GNERerouterIntervalDialog.h.
Referenced by onCmdClickedClosingLaneReroute(), onCmdEditClosingLaneReroute(), and updateClosingLaneReroutesTable().
|
protected |
flag to check if closing lane reroutes are valid
Definition at line 170 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdEditClosingLaneReroute(), and updateClosingLaneReroutesTable().
|
protected |
list with closing reroutes
Definition at line 155 of file GNERerouterIntervalDialog.h.
Referenced by onCmdClickedClosingReroute(), onCmdEditClosingReroute(), and updateClosingReroutesTable().
|
protected |
flag to check if closing reroutes are valid
Definition at line 176 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdEditClosingReroute(), and updateClosingReroutesTable().
|
protectedinherited |
frame for contents
Definition at line 82 of file GNEAdditionalDialog.h.
|
protected |
vector with the closingLaneReroutes
Definition at line 167 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdAddClosingLaneReroute(), onCmdClickedClosingLaneReroute(), onCmdEditClosingLaneReroute(), onCmdReset(), and updateClosingLaneReroutesTable().
|
protected |
vector with a copy of the closingReroutes
Definition at line 173 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdAddClosingReroute(), onCmdClickedClosingReroute(), onCmdEditClosingReroute(), onCmdReset(), and updateClosingReroutesTable().
|
protected |
vector with a copy of the destProbReroutes
Definition at line 179 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdAddDestProbReroute(), onCmdClickedDestProbReroute(), onCmdEditDestProbReroute(), onCmdReset(), and updateDestProbReroutesTable().
|
protected |
vector with a copy of the routeProbReroutes
Definition at line 185 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdAddRouteProbReroute(), onCmdClickedRouteProbReroute(), onCmdEditRouteProbReroute(), onCmdReset(), and updateRouteProbReroutesTable().
|
protected |
list with destiny probability reroutes
Definition at line 158 of file GNERerouterIntervalDialog.h.
Referenced by onCmdClickedDestProbReroute(), onCmdEditDestProbReroute(), and updateDestProbReroutesTable().
|
protected |
flag to check if Destiny probability reroutes are valid
Definition at line 182 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdEditDestProbReroute(), and updateDestProbReroutesTable().
|
protected |
end time text field
Definition at line 134 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), and onCmdChangeBeginEnd().
|
protected |
pointer to GNERerouterDialog parent
Definition at line 125 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), and onCmdChangeBeginEnd().
|
protected |
pointer to rerouter interval
Definition at line 128 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdAddClosingLaneReroute(), onCmdAddClosingReroute(), onCmdAddDestProbReroute(), onCmdAddRouteProbReroute(), onCmdChangeBeginEnd(), onCmdEditClosingLaneReroute(), onCmdEditClosingReroute(), onCmdEditDestProbReroute(), and onCmdReset().
|
protectedinherited |
cancel button
Definition at line 91 of file GNEAdditionalDialog.h.
|
protected |
list with route probability reroute
Definition at line 161 of file GNERerouterIntervalDialog.h.
Referenced by onCmdClickedRouteProbReroute(), onCmdEditRouteProbReroute(), and updateRouteProbReroutesTable().
|
protected |
flag to check if route prob reroutes are valid
Definition at line 188 of file GNERerouterIntervalDialog.h.
Referenced by onCmdAccept(), onCmdEditRouteProbReroute(), and updateRouteProbReroutesTable().