openscenegraph
Public Member Functions | Protected Attributes | List of all members
osgAnimation::TemplateTarget< T > Class Template Reference
Inheritance diagram for osgAnimation::TemplateTarget< T >:
osgAnimation::Target osg::Referenced

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)
- Public Member Functions inherited from osgAnimation::Target
 Target ()
virtual ~Target ()
void reset ()
int getCount () const
float getWeight () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Protected Attributes

_target
- Protected Attributes inherited from osgAnimation::Target
float _weight
float _priorityWeight
int _lastPriority
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Constructor & Destructor Documentation

template<class T >
osgAnimation::TemplateTarget< T >::TemplateTarget ( )
inline
template<class T >
osgAnimation::TemplateTarget< T >::TemplateTarget ( const T &  v)
inline
template<class T >
osgAnimation::TemplateTarget< T >::TemplateTarget ( const TemplateTarget< T > &  v)
inline

Member Function Documentation

template<class T >
const T& osgAnimation::TemplateTarget< T >::getValue ( ) const
inline
template<class T >
void osgAnimation::TemplateTarget< T >::lerp ( float  t,
const T &  a,
const T &  b 
)
inline
template<>
void osgAnimation::TemplateTarget< osg::Quat >::lerp ( float  t,
const osg::Quat a,
const osg::Quat b 
)
inline
template<class T >
void osgAnimation::TemplateTarget< T >::setValue ( const T &  value)
inline
template<class T >
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().

Referenced by osgAnimation::TemplateChannel< SamplerType >::update().

Member Data Documentation

template<class T >
T osgAnimation::TemplateTarget< T >::_target
protected

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