GlsAnimation Library  1.0.6
Provides classes and functions to support animating GL Studio objects programmatically or with script files
Public Types | Public Member Functions | List of all members
disti::GlsSphericalLinearInterpolator< Vector > Struct Template Reference

#include <gls_keyframe.h>

Inheritance diagram for disti::GlsSphericalLinearInterpolator< Vector >:
disti::GlsKeyframeInterpolator< Vector >

Public Types

typedef GlsKeyframeInterpolator< Vector >::Value Value
 Alias for easier reading.
 
typedef GlsKeyframeInterpolator< Value >::Key Key
 Alias for easier reading.
 
typedef GlsKeyframeCurveBase::Size Size
 Alias for easier reading.
 
- Public Types inherited from disti::GlsKeyframeInterpolator< Vector >
typedef stdortr1::shared_ptr< GlsKeyframeInterpolatorPtr
 Alias for easier reading.
 
typedef stdortr1::shared_ptr< const GlsKeyframeInterpolatorPtrConst
 Alias for easier reading.
 
typedef GlsKeyframeCurveBase::Key Key
 Alias for easier reading.
 
typedef Vector Value
 Alias for easier reading.
 
typedef Detail::FloatSelector< Value >::Type Float
 Alias for easier reading.
 

Public Member Functions

 GlsSphericalLinearInterpolator ()
 Constructor.
 
Value operator() (const Key &key, const Key &lowerKey, const Key &upperKey, const Value &lowerValue, const Value &upperValue) const
 
- Public Member Functions inherited from disti::GlsKeyframeInterpolator< Vector >
virtual ~GlsKeyframeInterpolator ()
 Destructor.
 
virtual Value operator() (const Key &key, const Key &lowerKey, const Key &upperKey, const Value &lowerValue, const Value &upperValue) const =0
 

Detailed Description

template<>
struct disti::GlsSphericalLinearInterpolator< Vector >

Implementation of GlsSphericalLinearInterpolator for rotation vectors. The interpolator converts to a quaternion for accuracy and then back to vector when done. To avoid unnecessary conversions, this class caches recent values in a cache.

Note
This class expects the incoming angles in degrees.

Member Function Documentation

Value disti::GlsSphericalLinearInterpolator< Vector >::operator() ( const Key key,
const Key lowerKey,
const Key upperKey,
const Value lowerValue,
const Value upperValue 
) const
inline

Overrides GlsKeyframeInterpolator

Note
This expects the incoming angles in degrees.

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