15#ifndef OSGANIMATION_ANIMATION
16#define OSGANIMATION_ANIMATION 1
78 bool update (
double time,
int priority = 0);
101 typedef std::map<std::string, osg::ref_ptr<osgAnimation::Animation> >
AnimationMap;
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
std::vector< osg::ref_ptr< osgAnimation::Animation > > AnimationList
Definition Animation:100
std::map< std::string, osg::ref_ptr< osgAnimation::Animation > > AnimationMap
Definition Animation:101
std::vector< osg::ref_ptr< osgAnimation::Channel > > ChannelList
Definition Channel:168
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
PlayMode getPlayMode() const
Definition Animation:82
bool update(double time, int priority=0)
void setStartTime(double time)
Definition Animation:84
double computeDurationFromChannels() const
double _duration
Definition Animation:91
double getDuration() const
double _originalDuration
Definition Animation:92
Animation(const osgAnimation::Animation &, const osg::CopyOp &)
void removeChannel(Channel *pChannel)
~Animation()
Definition Animation:89
double getStartTime() const
Definition Animation:85
void addChannel(Channel *pChannel)
const ChannelList & getChannels() const
ChannelList _channels
Definition Animation:96
void setPlayMode(PlayMode mode)
Definition Animation:81
PlayMode _playmode
Definition Animation:95
ChannelList & getChannels()
Those accessors let you add and remove channels if you modify something that can change the duration ...
META_Object(osgAnimation, Animation) Animation()
Definition Animation:31
void setWeight(float weight)
PlayMode
Definition Animation:40
@ STAY
Definition Animation:42
@ PPONG
Definition Animation:44
@ ONCE
Definition Animation:41
@ LOOP
Definition Animation:43
void setDuration(double duration)
Change the duration of animation then evaluate the animation in the range 0-duration it stretch the a...
float _weight
Definition Animation:93
double _startTime
Definition Animation:94
void computeDuration()
Compute duration from channel and keyframes if the duration is not specified you should call this met...
#define OSGANIMATION_EXPORT
Definition Export:40