![]() |
Maria GDK 5.0.0.927
Documentation of native code in develop branch
|
#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_ |
Keyframe - An animation keyframe. A keyframe may consist of a rotation, a translation and a scaling vector.
| 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 between keyframes. This method will interpolate between the current and the next keyframe and return the results in the out keyframe.