![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
A template class for animating mouth movements using keyframes. More...
#include <MouthTrack.h>


Public Member Functions | |
| MouthTrack () | |
| Default constructor. | |
Public Member Functions inherited from AnimationTrack< parameters, 5 > | |
| 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 mouth movement animation. | |
Additional Inherited Members | |
Protected Attributes inherited from AnimationTrack< parameters, 5 > | |
| KeyFrameTrack< maxParameters, maxKeyFrames > | track |
| Internal track object for keyframe management. | |
A template class for animating mouth movements using keyframes.
The MouthTrack class inherits from AnimationTrack and provides a specific keyframe animation sequence to simulate the opening and closing of a mouth.
| parameters | The number of parameters for the mouth movement animation. |
Definition at line 26 of file MouthTrack.h.
|
inline |
Default constructor.
Constructs a MouthTrack object and initializes the mouth movement animation keyframes.
Definition at line 46 of file MouthTrack.h.
References MouthTrack< parameters >::AddKeyFrames().
Adds predefined keyframes for the mouth movement animation.
This function initializes the keyframes to create the mouth movement sequence, including timings for opening and closing.
< Mouth closed at time 0.0.
< Mouth fully open at time 1.5.
< Mouth closed again at time 4.0.
Implements AnimationTrack< parameters, 5 >.
Definition at line 34 of file MouthTrack.h.
References AnimationTrack< parameters, 5 >::track.
Referenced by MouthTrack< parameters >::MouthTrack().