OpenSceneGraph  3.0.1
Public Member Functions | Public Attributes
osgAnimation::SamplerMotionTemplate< T > Struct Template Reference
Inheritance diagram for osgAnimation::SamplerMotionTemplate< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SamplerMotionTemplate (float startValue=0, float duration=1, float changeValue=1, TimeBehaviour tb=CLAMP)
T & getSampler ()
const T & getSampler () const
virtual void getValueInNormalizedRange (float t, value_type &result) const
- Public Member Functions inherited from osgAnimation::Motion
 Motion (float startValue=0, float duration=1, float changeValue=1, TimeBehaviour tb=CLAMP)
virtual ~Motion ()
void reset ()
float getTime () const
float evaluateTime (float time) const
void update (float dt)
void setTime (float time)
void getValue (value_type &result) const
value_type getValue () const
void getValueAt (float time, value_type &result) const
value_type getValueAt (float time) const
float getDuration () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

Public Attributes

_sampler

Additional Inherited Members

- Public Types inherited from osgAnimation::Motion
enum  TimeBehaviour { CLAMP, LOOP }
typedef float value_type
- Protected Attributes inherited from osgAnimation::Motion
float _time
float _startValue
float _changeValue
float _duration
TimeBehaviour _behaviour
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Constructor & Destructor Documentation

template<class T >
osgAnimation::SamplerMotionTemplate< T >::SamplerMotionTemplate ( float  startValue = 0,
float  duration = 1,
float  changeValue = 1,
TimeBehaviour  tb = CLAMP 
)
inline

Member Function Documentation

template<class T >
T& osgAnimation::SamplerMotionTemplate< T >::getSampler ( )
inline
template<class T >
const T& osgAnimation::SamplerMotionTemplate< T >::getSampler ( ) const
inline
template<class T >
virtual void osgAnimation::SamplerMotionTemplate< T >::getValueInNormalizedRange ( float  t,
value_type result 
) const
inlinevirtual

Member Data Documentation

template<class T >
T osgAnimation::SamplerMotionTemplate< T >::_sampler

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

osg logo
Generated at Thu Oct 4 2012 13:46:09 for the OpenSceneGraph by doxygen 1.8.1.1.