 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GUITLLogicPhasesTrackerWindow_h
20 #define GUITLLogicPhasesTrackerWindow_h
65 :
public FXMainWindow,
77 ValueSource<std::pair<SUMOTime, MSPhaseDefinition> >* src);
103 void addValue(std::pair<SUMOTime, MSPhaseDefinition> def);
116 long onConfigure(FXObject* sender, FXSelector sel,
void* data);
119 long onPaint(FXObject* sender, FXSelector sel,
void* data);
122 long onSimStep(FXObject* sender, FXSelector sel,
void* data);
165 long onPaint(FXObject*, FXSelector,
void*);
183 void drawValues(GUITLLogicPhasesTrackerPanel& caller);
GUIMainWindow * myApplication
The main application.
std::vector< SUMOTime > DurationsVector
Definition of a storage for durations.
FXRealSpinner * myBeginOffset
The offset changer (tracking mode)
The canvas for the visualisation of phases.
~GUITLLogicPhasesTrackerWindow()
Destructor.
bool myAmInTrackingMode
Information whether the tracking mode is on.
std::vector< std::string > myLinkNames
The names of links.
This window displays a phase diagram for a chosen tl-logic.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
long onSimStep(FXObject *sender, FXSelector sel, void *data)
called on a simulation step
void create()
Creates the window (FOX-Toolkit)
long onConfigure(FXObject *sender, FXSelector sel, void *data)
called on size change
GUITLLogicPhasesTrackerWindow * myParent
}
int myFirstPhase2Show
The index of the first phase that fits into the window.
PhasesVector myPhases
The list of phases.
void drawValues(GUITLLogicPhasesTrackerPanel &caller)
Draws all values.
DurationsVector myDurations
The list of phase durations.
long onConfigure(FXObject *, FXSelector, void *)
called on size change
Class passing values from a GUIGlObject to another object.
long onPaint(FXObject *, FXSelector, void *)
called if the widget shall be repainted
GUITLLogicPhasesTrackerPanel()
protected constructor for FOX
FXMutex myLock
A lock to avoid addition of new values while drawing.
SUMOTime myFirstTime2Show
The time the diagram begins at.
The parent class for traffic light logics.
std::vector< MSPhaseDefinition > PhasesVector
}
FXToolBarShell * myToolBarDrag
The tool bar drag (tracking mode)
void addValue(std::pair< SUMOTime, MSPhaseDefinition > def)
Adds a further phase definition.
GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > > * myConnector
The connector for retrieval of further phases.
SUMOTime myLastTime
The last time a phase was added at.
FXToolBar * myToolBar
The tool bar (tracking mode)
MSTrafficLightLogic * myTLLogic
The logic to display.
long onPaint(FXObject *sender, FXSelector sel, void *data)
called if the widget shall be repainted
SUMOTime myFirstPhaseOffset
The offset to draw the first phase (left offset)
~GUITLLogicPhasesTrackerPanel()
Destructor.
GUITLLogicPhasesTrackerWindow()
protected constructor for FOX
void setBeginTime(SUMOTime time)
Sets the time the display shall be shown as beginning at.
GUITLLogicPhasesTrackerPanel * myPanel
The panel to draw on.
SUMOTime myBeginTime
The first time a phase was added at.