OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgAnimation::TemplateTarget< T > Class Template Reference

#include <Target.h>

Inheritance diagram for osgAnimation::TemplateTarget< T >:
Inheritance graph
[legend]
Collaboration diagram for osgAnimation::TemplateTarget< T >:
Collaboration graph
[legend]

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
 

Detailed Description

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

Definition at line 49 of file Target.h.

Constructor & Destructor Documentation

template<class T>
osgAnimation::TemplateTarget< T >::TemplateTarget ( )
inline

Definition at line 53 of file Target.h.

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

Definition at line 54 of file Target.h.

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

Definition at line 55 of file Target.h.

Member Function Documentation

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

Definition at line 92 of file Target.h.

Here is the caller graph for this function:

template<class T>
void osgAnimation::TemplateTarget< T >::lerp ( float  t,
const T &  a,
const T &  b 
)
inline

Definition at line 102 of file Target.h.

Here is the caller graph for this function:

template<>
void osgAnimation::TemplateTarget< osg::Quat >::lerp ( float  t,
const osg::Quat a,
const osg::Quat b 
)
inline

Definition at line 108 of file Target.h.

Here is the call graph for this function:

template<class T>
void osgAnimation::TemplateTarget< T >::setValue ( const T &  value)
inline

Definition at line 94 of file Target.h.

Here is the caller graph for this function:

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 ...

Definition at line 68 of file Target.h.

Member Data Documentation

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

Definition at line 98 of file Target.h.


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