|
OpenSceneGraph
3.0.1
|

Public Types | |
| enum | PlayMode { ONCE, STAY, LOOP, PPONG } |
Public Member Functions | |
| META_Object (osgAnimation, Animation) Animation() | |
| Animation (const osgAnimation::Animation &, const osg::CopyOp &) | |
| void | addChannel (Channel *pChannel) |
| ChannelList & | 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 & | getChannels () 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. | |
| double | getDuration () const |
| void | setWeight (float weight) |
| float | getWeight () const |
| bool | update (double time, int priority=0) |
| void | resetTargets () |
| void | setPlayMode (PlayMode mode) |
| PlayMode | getPlayMode () const |
| void | setStartTime (double time) |
| double | getStartTime () const |
Protected Member Functions | |
| double | computeDurationFromChannels () const |
| ~Animation () | |
Protected Attributes | |
| double | _duration |
| double | _originalDuration |
| float | _weight |
| double | _startTime |
| PlayMode | _playmode |
| ChannelList | _channels |
| osgAnimation::Animation::Animation | ( | const osgAnimation::Animation & | , |
| const osg::CopyOp & | |||
| ) |
| osgAnimation::Animation::~Animation | ( | ) | [inline, protected] |
| void osgAnimation::Animation::addChannel | ( | Channel * | pChannel | ) |
Compute duration from channel and keyframes if the duration is not specified you should call this method before using it.
| double osgAnimation::Animation::computeDurationFromChannels | ( | ) | const [protected] |
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.
Referenced by osgAnimation::AnimationUpdateCallback< osg::StateAttributeCallback >::link().
| const ChannelList& osgAnimation::Animation::getChannels | ( | ) | const |
| double osgAnimation::Animation::getDuration | ( | ) | const |
| PlayMode osgAnimation::Animation::getPlayMode | ( | ) | const [inline] |
| double osgAnimation::Animation::getStartTime | ( | ) | const [inline] |
| float osgAnimation::Animation::getWeight | ( | ) | const |
| osgAnimation::Animation::META_Object | ( | osgAnimation | , |
| Animation | |||
| ) | [inline] |
| 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::setPlayMode | ( | PlayMode | mode | ) | [inline] |
| void osgAnimation::Animation::setStartTime | ( | double | time | ) | [inline] |
| void osgAnimation::Animation::setWeight | ( | float | weight | ) |
| bool osgAnimation::Animation::update | ( | double | time, |
| int | priority = 0 |
||
| ) |
ChannelList osgAnimation::Animation::_channels [protected] |
double osgAnimation::Animation::_duration [protected] |
double osgAnimation::Animation::_originalDuration [protected] |
PlayMode osgAnimation::Animation::_playmode [protected] |
double osgAnimation::Animation::_startTime [protected] |
float osgAnimation::Animation::_weight [protected] |
| Generated at Thu Sep 27 2012 17:03:07 for the OpenSceneGraph by doxygen 1.7.6.1. |