SLProject 4.0.000
SLTransformKeyframe Class Reference

SLTransformKeyframe is a specialized SLKeyframe for node transformations. More...

#include <SLAnimKeyframe.h>

Inheritance diagram for SLTransformKeyframe:
[legend]

Public Member Functions

 SLTransformKeyframe (const SLAnimTrack *parent, SLfloat time)
 
void translation (const SLVec3f &t)
 
void rotation (const SLQuat4f &r)
 
void scale (const SLVec3f &s)
 
const SLVec3ftranslation () const
 
const SLQuat4frotation () const
 
const SLVec3fscale () const
 
- Public Member Functions inherited from SLAnimKeyframe
 SLAnimKeyframe (const SLAnimTrack *parent, SLfloat time)
 
bool operator< (const SLAnimKeyframe &other) const
 
void time (SLfloat t)
 
SLfloat time () const
 
SLbool isValid () const
 

Protected Attributes

SLVec3f _translation
 
SLQuat4f _rotation
 
SLVec3f _scale
 
- Protected Attributes inherited from SLAnimKeyframe
const SLAnimTrack_parentTrack
 owning animation track for this keyframe More...
 
SLfloat _time
 temporal position in local time relative to the keyframes parent clip in seconds More...
 
SLbool _isValid
 is this keyframe in use inside its parent track More...
 

Detailed Description

SLTransformKeyframe is a specialized SLKeyframe for node transformations.

Keeps track of translation, rotation and scale.

Constructor & Destructor Documentation

◆ SLTransformKeyframe()

SLTransformKeyframe::SLTransformKeyframe ( const SLAnimTrack parent,
SLfloat  time 
)

Constructor for specialized transform keyframes.

Member Function Documentation

◆ rotation() [1/2]

const SLQuat4f & SLTransformKeyframe::rotation ( ) const
inline

◆ rotation() [2/2]

void SLTransformKeyframe::rotation ( const SLQuat4f r)
inline

◆ scale() [1/2]

const SLVec3f & SLTransformKeyframe::scale ( ) const
inline

◆ scale() [2/2]

void SLTransformKeyframe::scale ( const SLVec3f s)
inline

◆ translation() [1/2]

const SLVec3f & SLTransformKeyframe::translation ( ) const
inline

◆ translation() [2/2]

void SLTransformKeyframe::translation ( const SLVec3f t)
inline

Member Data Documentation

◆ _rotation

SLQuat4f SLTransformKeyframe::_rotation
protected

◆ _scale

SLVec3f SLTransformKeyframe::_scale
protected

◆ _translation

SLVec3f SLTransformKeyframe::_translation
protected

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