Sleeping Wombat Common Library  0.50.0
swCommonLibrary
TimelineBase.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "swCommonLib/ParameterAnimation/Timelines/TimelineTypes.h"
10 
11 #include <memory>
12 
17 class TimelineBase;
18 DEFINE_PTR_TYPE( TimelineBase );
19 DEFINE_WPTR_TYPE( TimelineBase );
20 
21 
22 
26 class TimelineBase : public Object
27 {
28 private:
29 protected:
30 
31  TimeType m_currentTime;
32  TimelineBaseWPtr m_parent;
33 
34 public:
35  explicit TimelineBase () = default;
36  explicit TimelineBase ( TimelineBasePtr parent );
37  virtual ~TimelineBase () = default;
38 
39 
40 
41  virtual void Update () = 0;
42  virtual void Start () = 0;
43  virtual void Stop () = 0;
44  virtual void Pause () = 0;
45 
46  virtual void SetTimeline ( TimelineBasePtr& parent ) = 0;
47 
48  virtual bool IsPaused () = 0;
49 
52  inline TimeType GetTime () { return m_currentTime; };
53 };
54 
55 
Base class for timelines.
Definition: TimelineBase.h:26
TimeType GetTime()
Current time.
Definition: TimelineBase.h:52
TimeType m_currentTime
Evaluated timeline time. Time is evaluated once.
Definition: TimelineBase.h:31
Base clas for all objects in sleeping wombat libraries.
Definition: Object.h:42