Go to the documentation of this file.
7 #ifndef INCLUDE_JET_ANIMATION_H_
8 #define INCLUDE_JET_ANIMATION_H_
32 Frame(
int newIndex,
double newTimeIntervalInSeconds);
90 #endif // INCLUDE_JET_ANIMATION_H_
double timeInSeconds() const
Returns the elapsed time in seconds.
void advance()
Advances single frame.
std::shared_ptr< Animation > AnimationPtr
Shared pointer for the Animation type.
Definition: animation.h:86
virtual void onUpdate(const Frame &frame)=0
The implementation of this function should update the animation state for given Frame instance frame.
Definition: advection_solver2.h:18
Abstract base class for animation-related class.
Definition: animation.h:59
Frame()
Constructs Frame instance with 1/60 seconds time interval.
Representation of an animation frame.
Definition: animation.h:21
double timeIntervalInSeconds
Time interval in seconds between two adjacent frames.
Definition: animation.h:26
Frame & operator++()
Advances single frame (prefix).
Frame(int newIndex, double newTimeIntervalInSeconds)
Constructs Frame instance with given time interval.
Frame operator++(int)
Advances single frame (postfix).
void update(const Frame &frame)
Updates animation state for given frame.
int index
Frame index.
Definition: animation.h:23