15 #ifndef OSGANIMATION_ANIMATION
16 #define OSGANIMATION_ANIMATION 1
19 #include <osgAnimation/Export>
20 #include <osgAnimation/Channel>
21 #include <osg/ref_ptr>
33 Animation() : _duration(0), _weight(0), _startTime(0), _playmode(LOOP) {}
45 void addChannel (
Channel* pChannel);
59 void setDuration(
double duration);
66 void computeDuration();
68 double getDuration()
const;
71 void setWeight (
float weight);
72 float getWeight()
const;
74 bool update (
double time,
int priority = 0);
85 double computeDurationFromChannels()
const;
98 typedef std::vector<osg::ref_ptr<osgAnimation::Animation> >
AnimationList;
99 typedef std::map<std::string, osg::ref_ptr<osgAnimation::Animation> >
AnimationMap;
double getStartTime() const
#define OSGANIMATION_EXPORT
void setStartTime(double time)
PlayMode getPlayMode() const
std::map< std::string, osg::ref_ptr< osgAnimation::Animation > > AnimationMap
std::vector< osg::ref_ptr< osgAnimation::Animation > > AnimationList
std::vector< osg::ref_ptr< osgAnimation::Channel > > ChannelList
void setPlayMode(PlayMode mode)
META_Object(osgAnimation, Animation) Animation()