ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
KeyFrame Class Reference

Represents a single keyframe in an animation. More...

#include <KeyFrame.h>

Public Member Functions

 KeyFrame ()
 Default constructor.
 
 KeyFrame (float time, float value)
 Parameterized constructor.
 
void Set (float time, float value)
 Sets the time and value of the keyframe.
 

Public Attributes

float Time = 0.0f
 The time of the keyframe.
 
float Value = 0.0f
 The value of the keyframe.
 

Detailed Description

Represents a single keyframe in an animation.

The KeyFrame class stores the time and value for a specific point in an animation. It provides methods for initialization and updating keyframe data.

Definition at line 21 of file KeyFrame.h.

Constructor & Destructor Documentation

◆ KeyFrame() [1/2]

KeyFrame ( )

Default constructor.

Constructs a KeyFrame object with default time and value (0.0f).

Definition at line 3 of file KeyFrame.cpp.

◆ KeyFrame() [2/2]

KeyFrame ( float  time,
float  value 
)

Parameterized constructor.

Constructs a KeyFrame object with specified time and value.

Parameters
timeThe time of the keyframe.
valueThe value of the keyframe.

Definition at line 5 of file KeyFrame.cpp.

References Time, and Value.

Member Function Documentation

◆ Set()

void Set ( float  time,
float  value 
)

Sets the time and value of the keyframe.

Updates the properties of the keyframe to the specified time and value.

Parameters
timeThe new time of the keyframe.
valueThe new value of the keyframe.

Definition at line 10 of file KeyFrame.cpp.

References Time, and Value.

Member Data Documentation

◆ Time

float Time = 0.0f

The time of the keyframe.

Definition at line 23 of file KeyFrame.h.

Referenced by KeyFrame(), and Set().

◆ Value

float Value = 0.0f

The value of the keyframe.

Definition at line 24 of file KeyFrame.h.

Referenced by KeyFrame(), and Set().


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