ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUITimeBar Class Reference

#include <albaGUITimeBar.h>

Inheritance diagram for albaGUITimeBar:
Inheritance graph
[legend]
Collaboration diagram for albaGUITimeBar:
Collaboration graph
[legend]

Public Member Functions

 albaGUITimeBar (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false)
 
virtual ~albaGUITimeBar ()
 
void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *alba_event)
 
void SetBounds (double min, double max)
 
void SetMultiplier (double mult=1000.0)
 
void SetTimeSettings (albaGUISettingsTimeBar *settings)
 
void SetNumberOfIntervals (int intervals)
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void OnTimer (wxTimerEvent &event)
 
void Update ()
 
void UpdateTimeStep ()
 

Protected Attributes

double m_Time
 
double m_TimeMin
 
double m_TimeMax
 
double m_TimeStep
 
double m_TimeStart
 
int m_NumberOfIntervals
 
albaString m_TimeMinString
 
albaString m_TimeMaxString
 
wxDateTime m_WorldTimeStart
 
wxBoxSizer * m_Sizer
 
albaGUIPicButtonm_TimeBarButtons [5]
 
wxTextCtrl * m_TimeBarEntry
 
albaGUIFloatSliderm_TimeBarSlider
 
wxTimer m_Timer
 
albaObserverm_Listener
 
albaGUISettingsTimeBarm_TimeBarSettings
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

albaGUITimeBar is a wxPanel with a set of widget to handle time.

Definition at line 47 of file albaGUITimeBar.h.

Constructor & Destructor Documentation

◆ albaGUITimeBar()

albaGUITimeBar::albaGUITimeBar ( wxWindow *  parent,
wxWindowID  id = -1,
bool  CloseButton = false 
)

◆ ~albaGUITimeBar()

virtual albaGUITimeBar::~albaGUITimeBar ( )
virtual

Member Function Documentation

◆ SetListener()

void albaGUITimeBar::SetListener ( albaObserver Listener)
inline

Definition at line 52 of file albaGUITimeBar.h.

References m_Listener.

◆ OnEvent()

void albaGUITimeBar::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetBounds()

void albaGUITimeBar::SetBounds ( double  min,
double  max 
)

Set the time bounds for the time bar.

Time bar manage time expressed in milliseconds.

◆ SetMultiplier()

void albaGUITimeBar::SetMultiplier ( double  mult = 1000.0)

Set the multiplier for timer.

Default value is to show time data represented in seconds.

◆ SetTimeSettings()

void albaGUITimeBar::SetTimeSettings ( albaGUISettingsTimeBar settings)

Set the reference to the time setting panel.

◆ SetNumberOfIntervals()

void albaGUITimeBar::SetNumberOfIntervals ( int  intervals)

Set the number of subdivisions for the slider.

◆ OnTimer()

void albaGUITimeBar::OnTimer ( wxTimerEvent &  event)
protected

Update the time and send the TIME_SET event to synchronize all the application.

◆ Update()

void albaGUITimeBar::Update ( )
protected

Update the time bar interface.

◆ UpdateTimeStep()

void albaGUITimeBar::UpdateTimeStep ( )
protected

Calculate the Time step according to the number of intervals.

Member Data Documentation

◆ m_Time

double albaGUITimeBar::m_Time
protected

Definition at line 70 of file albaGUITimeBar.h.

◆ m_TimeMin

double albaGUITimeBar::m_TimeMin
protected

Definition at line 71 of file albaGUITimeBar.h.

◆ m_TimeMax

double albaGUITimeBar::m_TimeMax
protected

Definition at line 72 of file albaGUITimeBar.h.

◆ m_TimeStep

double albaGUITimeBar::m_TimeStep
protected

Definition at line 73 of file albaGUITimeBar.h.

◆ m_TimeStart

double albaGUITimeBar::m_TimeStart
protected

ALBA time when the play button was pressed.

Definition at line 74 of file albaGUITimeBar.h.

◆ m_NumberOfIntervals

int albaGUITimeBar::m_NumberOfIntervals
protected

Number of subdivision intervals for the time bar.

Definition at line 76 of file albaGUITimeBar.h.

◆ m_TimeMinString

albaString albaGUITimeBar::m_TimeMinString
protected

Definition at line 78 of file albaGUITimeBar.h.

◆ m_TimeMaxString

albaString albaGUITimeBar::m_TimeMaxString
protected

Definition at line 79 of file albaGUITimeBar.h.

◆ m_WorldTimeStart

wxDateTime albaGUITimeBar::m_WorldTimeStart
protected

World time when the play button was pressed.

Definition at line 81 of file albaGUITimeBar.h.

◆ m_Sizer

wxBoxSizer* albaGUITimeBar::m_Sizer
protected

Definition at line 83 of file albaGUITimeBar.h.

◆ m_TimeBarButtons

albaGUIPicButton* albaGUITimeBar::m_TimeBarButtons[5]
protected

Definition at line 84 of file albaGUITimeBar.h.

◆ m_TimeBarEntry

wxTextCtrl* albaGUITimeBar::m_TimeBarEntry
protected

Definition at line 85 of file albaGUITimeBar.h.

◆ m_TimeBarSlider

albaGUIFloatSlider* albaGUITimeBar::m_TimeBarSlider
protected

Definition at line 86 of file albaGUITimeBar.h.

◆ m_Timer

wxTimer albaGUITimeBar::m_Timer
protected

Definition at line 87 of file albaGUITimeBar.h.

◆ m_Listener

albaObserver* albaGUITimeBar::m_Listener
protected

Definition at line 89 of file albaGUITimeBar.h.

Referenced by SetListener().

◆ m_TimeBarSettings

albaGUISettingsTimeBar* albaGUITimeBar::m_TimeBarSettings
protected

Settings panel for the time bar.

Definition at line 90 of file albaGUITimeBar.h.


The documentation for this class was generated from the following file: