OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
osgAnimation::Motion Class Referenceabstract

#include <EaseMotion.h>

Inheritance diagram for osgAnimation::Motion:
Inheritance graph
[legend]
Collaboration diagram for osgAnimation::Motion:
Collaboration graph
[legend]

Public Types

enum  TimeBehaviour { CLAMP, LOOP }
 
typedef float value_type
 

Public Member Functions

 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
 
virtual void getValueInNormalizedRange (float t, value_type &result) const =0
 
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)
 
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

float _time
 
float _startValue
 
float _changeValue
 
float _duration
 
TimeBehaviour _behaviour
 
- 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

Definition at line 347 of file EaseMotion.h.

Member Typedef Documentation

Definition at line 350 of file EaseMotion.h.

Member Enumeration Documentation

Enumerator
CLAMP 
LOOP 

Definition at line 351 of file EaseMotion.h.

Constructor & Destructor Documentation

osgAnimation::Motion::Motion ( float  startValue = 0,
float  duration = 1,
float  changeValue = 1,
TimeBehaviour  tb = CLAMP 
)
inline

Definition at line 356 of file EaseMotion.h.

virtual osgAnimation::Motion::~Motion ( )
inlinevirtual

Definition at line 357 of file EaseMotion.h.

Member Function Documentation

float osgAnimation::Motion::evaluateTime ( float  time) const
inline

Definition at line 360 of file EaseMotion.h.

Here is the caller graph for this function:

float osgAnimation::Motion::getDuration ( ) const
inline

Definition at line 408 of file EaseMotion.h.

Here is the caller graph for this function:

float osgAnimation::Motion::getTime ( ) const
inline

Definition at line 359 of file EaseMotion.h.

void osgAnimation::Motion::getValue ( value_type result) const
inline

Definition at line 386 of file EaseMotion.h.

Here is the call graph for this function:

value_type osgAnimation::Motion::getValue ( ) const
inline

Definition at line 387 of file EaseMotion.h.

Here is the call graph for this function:

void osgAnimation::Motion::getValueAt ( float  time,
value_type result 
) const
inline

Definition at line 394 of file EaseMotion.h.

Here is the call graph for this function:

Here is the caller graph for this function:

value_type osgAnimation::Motion::getValueAt ( float  time) const
inline

Definition at line 399 of file EaseMotion.h.

Here is the call graph for this function:

virtual void osgAnimation::Motion::getValueInNormalizedRange ( float  t,
value_type result 
) const
pure virtual
void osgAnimation::Motion::reset ( )
inline

Definition at line 358 of file EaseMotion.h.

Here is the call graph for this function:

void osgAnimation::Motion::setTime ( float  time)
inline

Definition at line 385 of file EaseMotion.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void osgAnimation::Motion::update ( float  dt)
inline

Definition at line 380 of file EaseMotion.h.

Here is the call graph for this function:

Member Data Documentation

TimeBehaviour osgAnimation::Motion::_behaviour
protected

Definition at line 414 of file EaseMotion.h.

float osgAnimation::Motion::_changeValue
protected

Definition at line 412 of file EaseMotion.h.

float osgAnimation::Motion::_duration
protected

Definition at line 413 of file EaseMotion.h.

float osgAnimation::Motion::_startValue
protected

Definition at line 411 of file EaseMotion.h.

float osgAnimation::Motion::_time
protected

Definition at line 410 of file EaseMotion.h.


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