17#ifndef __albaGUISettingsTimeBar_H__
18#define __albaGUISettingsTimeBar_H__
Implementation of the message object for the Subject/Observer design pattern.
class name: albaGUISettingsTimeBar Gui class for handling time bar properties inside application sett...
void EnableWidgets()
Enable/Disable widgets.
int GetLoop()
Return true if loop animation is active.
void SetSubrange(double min, double max)
Set the subrange playback interval.
double m_SubRange[2]
Time subrange animation.
STORAGE_SETTINGS_WIDGET_ID
@ ID_PLAY_ACTIVE_VIEWPORT
void SetTimeStep(double step)
Set the time step for the animation.
int m_NumberOfFrames
Number of frames.
void InitializeSettings()
Initialize the application settings.
void GetSubrange(double sub_range[2])
Return the playback subrange.
int GetNumberOfFrames()
Return the number of subdivision for the time bar.
void AminateInSubrange(int animate_subrange=0)
Turn On/Off the possibility to do the playback in a sub-range of the whole time range.
void OnEvent(albaEventBase *alba_event)
Answer to the messages coming from interface.
void Update()
Update the GUI information according to the new values associated to the variables and flush these ne...
double * GetSubrange()
Return the playback subrange.
void CreateGui()
Create the GUI for the setting panel.
void SetTimeBounds(double min, double max)
Called by the time bar to set the time-bounds of the loaded data tree.
int m_RealTimeMode
Flag to play the animation in real time mode (checked) or to show all key-frames of the animation (un...
int m_PlayInActiveViewport
int GetRealTimeMode()
Return true if real time mode is active.
void SetTimeMultiplier(double tmult=1.0)
Set the time multiplier to speed up or down the animation when the playback is not in real time.
~albaGUISettingsTimeBar()
destructor
int GetAnimateSubrange()
Return true if animation in subrange is active.
double GetTimeMultiplier()
Return the time multiplier.
double GetTimeScale()
Return the time scale factor.
double m_TimeScale
Time scale referring to the time base = seconds.
void SetSubrange(double sub_range[2])
Set the subrange playback interval.
int GetPlayingInActiveViewport()
Return true if is active the flag for the update only into the active viewport.
albaGUISettingsTimeBar(albaObserver *Listener, const albaString &label=_("Time Bar"))
constructor
void PlayInActiveViewport(int active_viewport=0)
Enable/Disable the update of the animation only in the active viewport.
void SetNumberOfFrames(int frames)
Set the number of frames.
void SetRealTimeMode(int realTime=0)
Set the play modality: real time or all frames.
double m_TimeStep
Time step linked to the number of frames and to the time range.
void SetTimeScale(double tscale=1000.0)
Set the time scale to transform milliseconds to the VME unit time.
void LoopAnimation(int loop=0)
Turn On/Off the loop playback.
double m_TimeSpeed
Multiplier to speed up the animation when is not in real time mode.
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.