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);
169 long onPaint(FXObject*, FXSelector,
void*);
195 void drawValues(GUITLLogicPhasesTrackerPanel& caller);
301 void drawNames(
const std::vector<std::string>& names,
double fontHeight,
double fontWidth,
double divHeight,
double divWidth,
double& h,
int extraLines);
306 SUMOTime firstOffset,
int first2Show,
double hStart,
307 double panelWidth,
double leftOffset,
double barWidth,
double stateHeight,
double h20,
double& h);
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
const Position & getMousePos() const
}
GUITLLogicPhasesTrackerWindow * myParent
The parent window.
GUITLLogicPhasesTrackerPanel()
protected constructor for FOX
long onPaint(FXObject *, FXSelector, void *)
called if the widget shall be repainted
~GUITLLogicPhasesTrackerPanel()
Destructor.
long onMouseMove(FXObject *, FXSelector, void *)
called on mouse movement (for updating tooltip)
This window displays a phase diagram for a chosen tl-logic.
GUITLLogicPhasesTrackerWindow()
protected constructor for FOX
AdditionalStatesVector myDetectorStates
The state of all used detectors of the current phase.
FXMutex myLock
A lock to avoid addition of new values while drawing.
SUMOTime myBeginTime
The first time a phase was added at.
MFXComboBoxIcon * myGreenMode
Whether green durations are printed.
static int myLastY
y-Position of previously opened window
DurationsVector myTimeInCycle
The time within the cycle for the current phase.
std::vector< std::string > myLinkNames
The names of links.
std::vector< int > IndexVector
Definition of a storage for indices.
DurationsVector myDetectorDurations
The list of detector state durations.
FXCheckButton * myDetectorMode
Whether detector states are drawn.
~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.
int computeHeight()
compute required windowHeight
void setBeginTime(SUMOTime time)
Sets the time the display shall be shown as beginning at.
FXToolBarShell * myToolBarDrag
The tool bar drag (tracking mode)
SUMOTime myFirstCondOffset
FXToolBar * myToolBar
The tool bar (tracking mode)
PhasesVector myPhases
The list of phases.
SUMOTime myFirstPhaseOffset
The offset to draw the first phase (left offset)
std::vector< std::string > myDetectorNames
IndexVector myPhaseIndex
The index of the current phase.
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.
MFXComboBoxIcon * myTimeMode
The time mode.
SUMOTime myFirstDetOffset
std::vector< std::string > myConditionNames
int myFirstPhase2Show
The index of the first phase that fits into the window.
AdditionalStatesVector myConditionStates
long onPaint(FXObject *sender, FXSelector sel, void *ptr)
called if the widget shall be repainted
SUMOTime findTimeInCycle(SUMOTime t)
find time in cycle based on myTimeInCycle
FXCheckButton * myConditionMode
Whether detector states are drawn.
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< std::vector< double > > AdditionalStatesVector
Definition of a storage for detector and condition states.
void drawNames(const std::vector< std::string > &names, double fontHeight, double fontWidth, double divHeight, double divWidth, double &h, int extraLines)
draw row title
FXCheckButton * myIndexMode
Whether phase names shall be printed instead of indices.
std::vector< SUMOTime > DurationsVector
Definition of a storage for durations.
DurationsVector myConditionDurations
void drawAdditionalStates(GUITLLogicPhasesTrackerPanel &caller, const AdditionalStatesVector &states, const DurationsVector &durations, SUMOTime firstOffset, int first2Show, double hStart, double panelWidth, double leftOffset, double barWidth, double stateHeight, double h20, double &h)
draw detector and condition states
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.
A point in 2D or 3D with translation and scaling methods.