ALBA
|
#include <albaGUISettingsTimeBar.h>
Public Types | |
enum | STORAGE_SETTINGS_WIDGET_ID { ID_REAL_TIME = MINID , ID_TIME_SPEED , ID_TIME_SCALE , ID_TIME_STEP , ID_NUMBER_OF_FRAMES , ID_ANIMATE_IN_SUBRANGE , ID_SUBRANGE , ID_LOOP , ID_PLAY_ACTIVE_VIEWPORT } |
Public Member Functions | |
albaGUISettingsTimeBar (albaObserver *Listener, const albaString &label=_("Time Bar")) | |
~albaGUISettingsTimeBar () | |
void | OnEvent (albaEventBase *alba_event) |
int | GetRealTimeMode () |
void | SetRealTimeMode (int realTime=0) |
int | GetLoop () |
void | LoopAnimation (int loop=0) |
void | AminateInSubrange (int animate_subrange=0) |
int | GetAnimateSubrange () |
void | SetSubrange (double sub_range[2]) |
void | SetSubrange (double min, double max) |
void | GetSubrange (double sub_range[2]) |
double * | GetSubrange () |
void | SetTimeMultiplier (double tmult=1.0) |
double | GetTimeMultiplier () |
void | SetTimeScale (double tscale=1000.0) |
double | GetTimeScale () |
void | PlayInActiveViewport (int active_viewport=0) |
int | GetPlayingInActiveViewport () |
void | SetTimeBounds (double min, double max) |
int | GetNumberOfFrames () |
void | SetNumberOfFrames (int frames) |
void | SetTimeStep (double step) |
Public Member Functions inherited from albaGUISettings | |
albaGUISettings (albaObserver *Listener, const albaString &label=_("Settings")) | |
~albaGUISettings () | |
virtual void | OnEvent (albaEventBase *alba_event) |
void | SetListener (albaObserver *Listener) |
albaGUI * | GetGui () |
const char * | GetLabel () |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
void | CreateGui () |
void | InitializeSettings () |
void | EnableWidgets () |
void | Update () |
virtual void | CreateGui () |
virtual void | InitializeSettings () |
Protected Attributes | |
double | m_TimeMin |
double | m_TimeMax |
int | m_NumberOfFrames |
double | m_TimeStep |
int | m_RealTimeMode |
int | m_Loop |
int | m_PlayInActiveViewport |
int | m_AnimateInSubrange |
double | m_SubRange [2] |
double | m_TimeSpeed |
double | m_TimeScale |
Protected Attributes inherited from albaGUISettings | |
albaGUI * | m_Gui |
albaString | m_Label |
wxConfig * | m_Config |
albaObserver * | m_Listener |
class name: albaGUISettingsTimeBar Gui class for handling time bar properties inside application settings panel.
Definition at line 30 of file albaGUISettingsTimeBar.h.
Enumerator | |
---|---|
ID_REAL_TIME | |
ID_TIME_SPEED | |
ID_TIME_SCALE | |
ID_TIME_STEP | |
ID_NUMBER_OF_FRAMES | |
ID_ANIMATE_IN_SUBRANGE | |
ID_SUBRANGE | |
ID_LOOP | |
ID_PLAY_ACTIVE_VIEWPORT |
Definition at line 38 of file albaGUISettingsTimeBar.h.
albaGUISettingsTimeBar::albaGUISettingsTimeBar | ( | albaObserver * | Listener, |
const albaString & | label = _("Time Bar") |
||
) |
constructor
albaGUISettingsTimeBar::~albaGUISettingsTimeBar | ( | ) |
destructor
|
virtual |
Answer to the messages coming from interface.
Reimplemented from albaGUISettings.
|
inline |
Return true if real time mode is active.
Definition at line 55 of file albaGUISettingsTimeBar.h.
References m_RealTimeMode.
void albaGUISettingsTimeBar::SetRealTimeMode | ( | int | realTime = 0 | ) |
Set the play modality: real time or all frames.
|
inline |
Return true if loop animation is active.
Definition at line 61 of file albaGUISettingsTimeBar.h.
References m_Loop.
void albaGUISettingsTimeBar::LoopAnimation | ( | int | loop = 0 | ) |
Turn On/Off the loop playback.
void albaGUISettingsTimeBar::AminateInSubrange | ( | int | animate_subrange = 0 | ) |
Turn On/Off the possibility to do the playback in a sub-range of the whole time range.
|
inline |
Return true if animation in subrange is active.
Definition at line 70 of file albaGUISettingsTimeBar.h.
References m_AnimateInSubrange.
void albaGUISettingsTimeBar::SetSubrange | ( | double | sub_range[2] | ) |
Set the subrange playback interval.
void albaGUISettingsTimeBar::SetSubrange | ( | double | min, |
double | max | ||
) |
Set the subrange playback interval.
|
inline |
Return the playback subrange.
Definition at line 79 of file albaGUISettingsTimeBar.h.
References m_SubRange.
|
inline |
Return the playback subrange.
Definition at line 82 of file albaGUISettingsTimeBar.h.
References m_SubRange.
void albaGUISettingsTimeBar::SetTimeMultiplier | ( | double | tmult = 1.0 | ) |
Set the time multiplier to speed up or down the animation when the playback is not in real time.
|
inline |
Return the time multiplier.
Definition at line 89 of file albaGUISettingsTimeBar.h.
References m_TimeSpeed.
void albaGUISettingsTimeBar::SetTimeScale | ( | double | tscale = 1000.0 | ) |
Set the time scale to transform milliseconds to the VME unit time.
Default value will transform milliseconds in seconds.
|
inline |
Return the time scale factor.
Definition at line 96 of file albaGUISettingsTimeBar.h.
References m_TimeScale.
void albaGUISettingsTimeBar::PlayInActiveViewport | ( | int | active_viewport = 0 | ) |
Enable/Disable the update of the animation only in the active viewport.
|
inline |
Return true if is active the flag for the update only into the active viewport.
Definition at line 102 of file albaGUISettingsTimeBar.h.
References m_PlayInActiveViewport.
void albaGUISettingsTimeBar::SetTimeBounds | ( | double | min, |
double | max | ||
) |
Called by the time bar to set the time-bounds of the loaded data tree.
|
inline |
Return the number of subdivision for the time bar.
Definition at line 108 of file albaGUISettingsTimeBar.h.
References m_NumberOfFrames.
void albaGUISettingsTimeBar::SetNumberOfFrames | ( | int | frames | ) |
Set the number of frames.
void albaGUISettingsTimeBar::SetTimeStep | ( | double | step | ) |
Set the time step for the animation.
|
protectedvirtual |
Create the GUI for the setting panel.
Reimplemented from albaGUISettings.
|
protectedvirtual |
Initialize the application settings.
Reimplemented from albaGUISettings.
|
protected |
Enable/Disable widgets.
|
protected |
Update the GUI information according to the new values associated to the variables and flush these new values to the registry.
|
protected |
Definition at line 130 of file albaGUISettingsTimeBar.h.
|
protected |
Definition at line 131 of file albaGUISettingsTimeBar.h.
|
protected |
Number of frames.
Definition at line 133 of file albaGUISettingsTimeBar.h.
Referenced by GetNumberOfFrames().
|
protected |
Time step linked to the number of frames and to the time range.
Definition at line 134 of file albaGUISettingsTimeBar.h.
|
protected |
Flag to play the animation in real time mode (checked) or to show all key-frames of the animation (unchecked)
Definition at line 135 of file albaGUISettingsTimeBar.h.
Referenced by GetRealTimeMode().
|
protected |
Definition at line 136 of file albaGUISettingsTimeBar.h.
Referenced by GetLoop().
|
protected |
Definition at line 137 of file albaGUISettingsTimeBar.h.
Referenced by GetPlayingInActiveViewport().
|
protected |
Definition at line 138 of file albaGUISettingsTimeBar.h.
Referenced by GetAnimateSubrange().
|
protected |
Time subrange animation.
Definition at line 139 of file albaGUISettingsTimeBar.h.
Referenced by GetSubrange().
|
protected |
Multiplier to speed up the animation when is not in real time mode.
Definition at line 140 of file albaGUISettingsTimeBar.h.
Referenced by GetTimeMultiplier().
|
protected |
Time scale referring to the time base = seconds.
Definition at line 141 of file albaGUISettingsTimeBar.h.
Referenced by GetTimeScale().