SUMO - Simulation of Urban MObility
GNERerouterDialog.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation; either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNERerouterDialog_h
21 #define GNERerouterDialog_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include "GNEAdditionalDialog.h"
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 
40 class GNERerouter;
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
54  FXDECLARE(GNERerouterDialog)
55 
56 public:
58  GNERerouterDialog(GNERerouter* rerouterParent);
59 
62 
65 
67  bool findInterval(SUMOReal begin, SUMOReal end) const;
68 
70  bool checkInterval(SUMOReal begin, SUMOReal end) const;
71 
73  bool checkModifyInterval(SUMOReal oldBegin, SUMOReal oldEnd, SUMOReal newBegin, SUMOReal newEnd) const;
74 
78  long onCmdAccept(FXObject*, FXSelector, void*);
79 
81  long onCmdCancel(FXObject*, FXSelector, void*);
82 
84  long onCmdReset(FXObject*, FXSelector, void*);
85 
87  long onCmdAddInterval(FXObject*, FXSelector, void*);
88 
90  long onCmdClickedInterval(FXObject*, FXSelector, void*);
92 
93 protected:
96 
99 
101  FXButton* myAddInterval;
102 
104  FXTable* myIntervalList;
105 
107  std::vector<GNERerouterInterval> myCopyOfRerouterIntervals;
108 
110  void updateIntervalTable();
111 
112 private:
115 
118 };
119 
120 #endif
GNERerouter * myRerouterParent
pointer to rerouter parent
FXButton * myAddInterval
button for add new interval
Dialog for edit rerouter intervals.
bool checkInterval(SUMOReal begin, SUMOReal end) const
check begin and end of an new interval
Dialog to edit sequences, parameters, etc.. of Additionals.
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
GNERerouterDialog()
FOX needs this.
bool findInterval(SUMOReal begin, SUMOReal end) const
check if a interval exists
Dialog for edit rerouters.
GNERerouter * getRerouterParent() const
get rerouter parent
std::vector< GNERerouterInterval > myCopyOfRerouterIntervals
set with a copy of rerouter intervals
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdAddInterval(FXObject *, FXSelector, void *)
add new interval
bool checkModifyInterval(SUMOReal oldBegin, SUMOReal oldEnd, SUMOReal newBegin, SUMOReal newEnd) const
check if begin and end of an existent interval can be modified
FXTable * myIntervalList
list with intervals
#define SUMOReal
Definition: config.h:208
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
~GNERerouterDialog()
destructor
void updateIntervalTable()
update data table
long onCmdAccept(FXObject *, FXSelector, void *)
GNERerouterDialog & operator=(const GNERerouterDialog &)
Invalidated assignment operator.