![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
A template class for animating eye movements using keyframes. More...
#include <EyeMoveTrack.h>
Public Member Functions | |
EyeMoveTrack () | |
Default constructor. | |
![]() | |
AnimationTrack () | |
Default constructor. | |
AnimationTrack (float min, float max, KeyFrameInterpolation::InterpolationMethod interpMethod) | |
Parameterized constructor. | |
void | Play () |
Starts or resumes playback of the animation track. | |
void | Pause () |
Pauses playback of the animation track. | |
void | RestartTime () |
Restarts the animation track's time to the beginning. | |
void | PrintTime () |
Prints the current time of the animation track. | |
void | Reset () |
Resets the animation track to its initial state. | |
float | GetParameterValue () |
Retrieves the current parameter value of the animation track. | |
float | Update () |
Updates the animation track and returns the current parameter value. | |
void | AddParameter (float *parameter) |
Adds a parameter to the animation track. | |
Private Member Functions | |
void | AddKeyFrames () |
Adds predefined keyframes for the eye movement animation. | |
Additional Inherited Members | |
![]() | |
KeyFrameTrack< maxParameters, maxKeyFrames > | track |
Internal track object for keyframe management. | |
A template class for animating eye movements using keyframes.
The EyeMoveTrack class inherits from AnimationTrack and provides a specific keyframe animation sequence to simulate smooth and controlled eye movements.
parameters | The number of parameters for the eye movement animation. |
Definition at line 26 of file EyeMoveTrack.h.
|
inline |
Default constructor.
Constructs an EyeMoveTrack object and initializes the eye movement animation keyframes.
Definition at line 47 of file EyeMoveTrack.h.
References EyeMoveTrack< parameters >::AddKeyFrames().
Adds predefined keyframes for the eye movement animation.
This function initializes the keyframes to create the eye movement sequence, including timings for directional changes and pauses.
< Eyes at initial position at time 0.0.
< Eyes move to position 1.0 at time 2.5.
< Eyes return to initial position at time 5.0.
< Eyes remain stationary until time 25.0.
Implements AnimationTrack< parameters, 10 >.
Definition at line 34 of file EyeMoveTrack.h.
References AnimationTrack< parameters, 10 >::track.
Referenced by EyeMoveTrack< parameters >::EyeMoveTrack().