Public Member Functions | |
| TemplateTarget () | |
| TemplateTarget (const T &v) | |
| TemplateTarget (const TemplateTarget &v) | |
| void | lerp (float t, const T &a, const T &b) |
| void | update (float weight, const T &val, int priority) |
| const T & | getValue () const |
| void | setValue (const T &value) |
| template<> | |
| void | lerp (float t, const osg::Quat &a, const osg::Quat &b) |
Protected Attributes | |
| T | _target |
| osgAnimation::TemplateTarget< T >::TemplateTarget | ( | ) | [inline] |
| osgAnimation::TemplateTarget< T >::TemplateTarget | ( | const T & | v | ) | [inline] |
References osgAnimation::TemplateTarget< T >::setValue().
| osgAnimation::TemplateTarget< T >::TemplateTarget | ( | const TemplateTarget< T > & | v | ) | [inline] |
| const T& osgAnimation::TemplateTarget< T >::getValue | ( | ) | const [inline] |
References osgAnimation::TemplateTarget< T >::_target.
Referenced by osgAnimation::TemplateTarget< T >::TemplateTarget().
| void osgAnimation::TemplateTarget< osg::Quat >::lerp | ( | float | t, | |
| const osg::Quat & | a, | |||
| const osg::Quat & | b | |||
| ) | [inline] |
References osgAnimation::TemplateTarget< T >::_target, and osg::Quat::asVec4().
| void osgAnimation::TemplateTarget< T >::lerp | ( | float | t, | |
| const T & | a, | |||
| const T & | b | |||
| ) | [inline] |
References osgAnimation::TemplateTarget< T >::_target.
Referenced by osgAnimation::TemplateTarget< T >::update().
| void osgAnimation::TemplateTarget< T >::setValue | ( | const T & | value | ) | [inline] |
References osgAnimation::TemplateTarget< T >::_target.
Referenced by osgAnimation::TemplateTarget< T >::TemplateTarget().
| void osgAnimation::TemplateTarget< T >::update | ( | float | weight, | |
| const T & | val, | |||
| int | priority | |||
| ) | [inline] |
The priority is used to detect a change of priority It's important to update animation target in priority order. eg: all animation with priority 1 all animation with priority 0 all animation with priority -1 ...
References osgAnimation::Target::_lastPriority, osgAnimation::Target::_priorityWeight, osgAnimation::TemplateTarget< T >::_target, osgAnimation::Target::_weight, and osgAnimation::TemplateTarget< T >::lerp().
T osgAnimation::TemplateTarget< T >::_target [protected] |
1.7.1