osgAnimation::Animation Class Reference

Inheritance diagram for osgAnimation::Animation:

Inheritance graph
[legend]

List of all members.

Public Types

enum  PlayMode { ONCE, STAY, LOOP, PPONG }

Public Member Functions

 META_Object (osgAnimation, Animation) Animation()
 Animation (const osgAnimation::Animation &anim, const osg::CopyOp &)
void addChannel (Channel *pChannel)
ChannelListgetChannels ()
 Those accessors let you add and remove channels if you modify something that can change the duration you are supposed to call computeDuration or setDuration.
const ChannelListgetChannels () const
void setDuration (double duration)
 Change the duration of animation then evaluate the animation in the range 0-duration it stretch the animation in time.
void computeDuration ()
 Compute duration from channel and keyframes if the duration is not specified you should call this method before using it.
float getDuration () const
void setWeight (float weight)
float getWeight () const
bool update (float time)
void resetTargets ()
void setPlaymode (PlayMode mode)
void setStartTime (float time)
float getStartTime () const

Protected Member Functions

double computeDurationFromChannels () const
 ~Animation ()

Protected Attributes

double _duration
double _originalDuration
float _weight
float _startTime
PlayMode _playmode
ChannelList _channels


Member Enumeration Documentation

Enumerator:
ONCE 
STAY 
LOOP 
PPONG 


Constructor & Destructor Documentation

osgAnimation::Animation::Animation ( const osgAnimation::Animation anim,
const osg::CopyOp  
)

osgAnimation::Animation::~Animation (  )  [inline, protected]


Member Function Documentation

osgAnimation::Animation::META_Object ( osgAnimation  ,
Animation   
) [inline]

void osgAnimation::Animation::addChannel ( Channel pChannel  ) 

ChannelList& osgAnimation::Animation::getChannels (  ) 

Those accessors let you add and remove channels if you modify something that can change the duration you are supposed to call computeDuration or setDuration.

const ChannelList& osgAnimation::Animation::getChannels (  )  const

void osgAnimation::Animation::setDuration ( double  duration  ) 

Change the duration of animation then evaluate the animation in the range 0-duration it stretch the animation in time.

see computeDuration too

void osgAnimation::Animation::computeDuration (  ) 

Compute duration from channel and keyframes if the duration is not specified you should call this method before using it.

float osgAnimation::Animation::getDuration (  )  const

void osgAnimation::Animation::setWeight ( float  weight  ) 

float osgAnimation::Animation::getWeight (  )  const

bool osgAnimation::Animation::update ( float  time  ) 

void osgAnimation::Animation::resetTargets (  ) 

void osgAnimation::Animation::setPlaymode ( PlayMode  mode  )  [inline]

void osgAnimation::Animation::setStartTime ( float  time  )  [inline]

float osgAnimation::Animation::getStartTime (  )  const [inline]

double osgAnimation::Animation::computeDurationFromChannels (  )  const [protected]


Member Data Documentation


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

osg logo
Generated at Mon Mar 30 09:06:10 2009 for the OpenSceneGraph by doxygen 1.5.5.