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