Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::Keyframe Class Reference

#include <StkKeyframe.h>

Public Types

enum  TransformMask { ROTATION = 0x01 , TRANSLATION = 0x02 , SCALE = 0x04 }
 

Public Member Functions

void interpolate (double t, const Keyframe &next, Keyframe &out) const
 
void buildMatrix (STK::Matrix4x4f &m) const
 
double getTime () const
 
void setTime (double t)
 
STK::Quaternionf getRotation () const
 
void setRotation (STK::Quaternionf rot)
 
STK::Vector3f getTranslation () const
 
void setTranslation (STK::Vector3f trans)
 
STK::Vector3f getScale () const
 
void setScale (STK::Vector3f scale)
 
bool operator< (const Keyframe &kf) const
 Comparison operator for sorting.
 
unsigned char getTransformMask () const
 

Protected Attributes

unsigned char xfm_mask_
 
double t_
 
STK::Quaternionf rot_
 
STK::Vector3f trans_
 
STK::Vector3f scale_
 

Detailed Description

Keyframe - An animation keyframe. A keyframe may consist of a rotation, a translation and a scaling vector.

Member Function Documentation

◆ buildMatrix()

void Keyframe::buildMatrix ( STK::Matrix4x4f m) const

Get transformation matrix. This method combines the current transforms and the input matrix into a transformation matrix.

◆ interpolate()

void Keyframe::interpolate ( double  t,
const Keyframe next,
Keyframe out 
) const

Interpolate between keyframes. This method will interpolate between the current and the next keyframe and return the results in the out keyframe.


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