ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
MouthTrack< parameters > Class Template Reference

A template class for animating mouth movements using keyframes. More...

#include <MouthTrack.h>

Inheritance diagram for MouthTrack< parameters >:
Collaboration diagram for MouthTrack< parameters >:

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, maxKeyFramestrack
 Internal track object for keyframe management.
 

Detailed Description

template<size_t parameters>
class MouthTrack< parameters >

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.

Template Parameters
parametersThe number of parameters for the mouth movement animation.

Definition at line 26 of file MouthTrack.h.

Constructor & Destructor Documentation

◆ MouthTrack()

template<size_t parameters>
MouthTrack ( )
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().

Member Function Documentation

◆ AddKeyFrames()

template<size_t parameters>
void AddKeyFrames ( )
inlineprivatevirtual

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().


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