OpenSceneGraph  3.0.1
Public Member Functions | Protected Attributes
osgAnimation::TemplateTarget Class Reference
Inheritance diagram for osgAnimation::TemplateTarget:
Inheritance graph
[legend]

List of all members.

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)
 The priority is used to detect a change of priority It's important to update animation target in priority order.
const T & getValue () const
void setValue (const T &value)
template<>
void lerp (float t, const osg::Quat &a, const osg::Quat &b)

Protected Attributes

_target

Constructor & Destructor Documentation

osgAnimation::TemplateTarget::TemplateTarget ( ) [inline]
osgAnimation::TemplateTarget::TemplateTarget ( const T &  v) [inline]

References setValue().

osgAnimation::TemplateTarget::TemplateTarget ( const TemplateTarget v) [inline]

References setValue(), and getValue().


Member Function Documentation

const T& osgAnimation::TemplateTarget::getValue ( ) const [inline]

References _target.

Referenced by TemplateTarget().

void osgAnimation::TemplateTarget::lerp ( float  t,
const T &  a,
const T &  b 
) [inline]

Referenced by update().

template<>
void osgAnimation::TemplateTarget< osg::Quat >::lerp ( float  t,
const osg::Quat a,
const osg::Quat b 
) [inline]
void osgAnimation::TemplateTarget::setValue ( const T &  value) [inline]

References _target.

Referenced by TemplateTarget().

void osgAnimation::TemplateTarget::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::_weight, osgAnimation::Target::_priorityWeight, osgAnimation::Target::_lastPriority, lerp(), and _target.


Member Data Documentation

Referenced by update(), getValue(), and setValue().


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

osg logo
Generated at Mon Oct 3 2011 12:39:46 for the OpenSceneGraph by doxygen 1.7.5.