57 FXIMPLEMENT(
GNECalibratorRouteDialog, FXDialogBox, GNECalibratorRouteDialogMap, ARRAYNUMBER(GNECalibratorRouteDialogMap))
65 myCalibratorDialogParent(calibratorDialog),
66 myCalibratorRoute(&calibratorRoute),
67 myUpdatingElement(updatingElement),
68 myCalibratorRouteValid(true) {
70 changeAdditionalDialogHeader(
"Edit " +
toString(calibratorRoute.getTag()) +
" of " +
toString(calibratorRoute.getCalibratorParent()->getTag()) +
71 " '" + calibratorRoute.getCalibratorParent()->getID() +
"'");
99 std::vector<GNEEdge*> edgesOfNet = calibratorRoute.getCalibratorParent()->getViewNet()->getNet()->retrieveEdges();
100 for (std::vector<GNEEdge*>::iterator i = edgesOfNet.begin(); i != edgesOfNet.end(); i++) {
101 myListOfEdgesOfNet->appendItem((*i)->getID().c_str());
105 myCopyOfCalibratorRoute =
new GNECalibratorRoute(myCalibratorRoute->getCalibratorParent());
108 (*myCopyOfCalibratorRoute) = (*myCalibratorRoute);
111 updateCalibratorRouteValues();
128 FXMessageBox::warning(getApp(), MBOX_OK,
133 " is invalid.").c_str());
136 WRITE_WARNING(
"Closed FXMessageBox of type 'warning' with 'OK'");
141 (*myCalibratorRoute) = (*myCopyOfCalibratorRoute);
142 getApp()->stopModal(
this, TRUE);
151 getApp()->stopModal(
this, FALSE);
159 (*myCopyOfCalibratorRoute) = (*myCalibratorRoute);
189 for (std::vector<GNEEdge*>::iterator i = edgesOfRouter.begin(); i != edgesOfRouter.end(); i++) {
220 for (std::vector<GNEEdge*>::iterator i = edgesOfRouter.begin(); i != edgesOfRouter.end(); i++) {
const std::string & getColor() const
get color of route
FXTextField * myTextFieldColor
color of route
bool setEdges(const std::vector< std::string > &edgeIDs)
set edges of route using IDs
root element of a network file
FXList * myListOfEdgesOfRoute
list of edges of route
bool myCalibratorRouteValid
flag to check if current calibrator vehicleType is valid
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
SumoXMLTag getTag() const
get tag
Dialog to edit sequences, parameters, etc.. of Additionals.
const std::vector< GNEEdge * > & getEdges() const
get edges
GNECalibratorRoute * myCalibratorRoute
pointer to modified rerouter interval
const std::string & getRouteID() const
get route ID
begin/end of the description of a route
#define WRITE_WARNING(msg)
void updateCalibratorRouteValues()
update data fields
bool isTestingModeEnabled() const
check if netedit is running in testing mode
GNECalibrator * getCalibratorParent() const
get calibrator parent
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
FXTextField * myTextFieldRouteID
route ID
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
std::vector< std::string > getEdgesIDs() const
get IDs of Edges
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
#define GUIDesignTextField
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
begin/end of the description of an edge
bool setRouteID(std::string routeID)
set route ID
bool myUpdatingElement
flag to indicate if flow are being created or modified
#define GUIDesignTextFieldNCol
Num of column of text field.
Dialog for edit calibrators.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
Dialog for edit rerouter intervals.
GNECalibratorDialog * myCalibratorDialogParent
pointer to GNECalibratorDialog parent
GNECalibratorRoute * myCopyOfCalibratorRoute
pointer in which save modifications of CalibratorRoute
bool setColor(std::string color="")
set color of route
long onCmdAccept(FXObject *, FXSelector, void *)
#define GUIDesignListExtended
design for FXLists
FXTextField * myTextFieldEdges
list of edges (string)
FXDEFMAP(GNECalibratorRouteDialog) GNECalibratorRouteDialogMap[]
long onCmdSetVariable(FXObject *, FXSelector, void *)
event after change value
~GNECalibratorRouteDialog()
destructor
#define GUIDesignLabelLeftThick
label extended over frame with thick and with text justify to left
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
SumoXMLTag getTag() const
get XML Tag assigned to this object
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent