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

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

#include <EyeMoveTrack.h>

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

Public Member Functions

 EyeMoveTrack ()
 Default constructor.
 
- Public Member Functions inherited from AnimationTrack< parameters, 10 >
 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

- Protected Attributes inherited from AnimationTrack< parameters, 10 >
KeyFrameTrack< maxParameters, maxKeyFramestrack
 Internal track object for keyframe management.
 

Detailed Description

template<size_t parameters>
class EyeMoveTrack< parameters >

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.

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

Definition at line 26 of file EyeMoveTrack.h.

Constructor & Destructor Documentation

◆ EyeMoveTrack()

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

Member Function Documentation

◆ AddKeyFrames()

template<size_t parameters>
void AddKeyFrames ( )
inlineprivatevirtual

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


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