2012-03-22 01:36:20 +08:00
|
|
|
/* -*-c++-*-
|
2009-10-30 00:09:07 +08:00
|
|
|
* Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net>
|
2008-12-17 04:29:00 +08:00
|
|
|
*
|
2012-03-22 01:36:20 +08:00
|
|
|
* This library is open source and may be redistributed and/or modified under
|
|
|
|
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
2008-12-17 04:29:00 +08:00
|
|
|
* (at your option) any later version. The full license is in LICENSE file
|
|
|
|
* included with this distribution, and on the openscenegraph.org website.
|
2012-03-22 01:36:20 +08:00
|
|
|
*
|
2008-12-17 04:29:00 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-03-22 01:36:20 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2008-12-17 04:29:00 +08:00
|
|
|
* OpenSceneGraph Public License for more details.
|
2009-10-30 00:09:07 +08:00
|
|
|
*/
|
2008-12-17 04:29:00 +08:00
|
|
|
|
2012-03-22 01:36:20 +08:00
|
|
|
#ifndef OSGANIMATION_TIMELINE_ANIMATION_MANAGER
|
2009-12-10 02:45:46 +08:00
|
|
|
#define OSGANIMATION_TIMELINE_ANIMATION_MANAGER 1
|
2008-12-17 04:29:00 +08:00
|
|
|
|
|
|
|
#include <osgAnimation/Export>
|
|
|
|
#include <osgAnimation/AnimationManagerBase>
|
|
|
|
#include <osgAnimation/Timeline>
|
|
|
|
|
|
|
|
|
2012-03-22 01:36:20 +08:00
|
|
|
namespace osgAnimation
|
2008-12-17 04:29:00 +08:00
|
|
|
{
|
|
|
|
|
2009-12-10 02:45:46 +08:00
|
|
|
class OSGANIMATION_EXPORT TimelineAnimationManager : public AnimationManagerBase
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
osg::ref_ptr<Timeline> _timeline;
|
|
|
|
|
|
|
|
public:
|
|
|
|
META_Object(osgAnimation, TimelineAnimationManager);
|
|
|
|
TimelineAnimationManager();
|
|
|
|
TimelineAnimationManager(const AnimationManagerBase& manager);
|
|
|
|
TimelineAnimationManager(const TimelineAnimationManager& nc,const osg::CopyOp&);
|
|
|
|
|
|
|
|
Timeline* getTimeline() { return _timeline.get(); }
|
|
|
|
const Timeline* getTimeline() const { return _timeline.get(); }
|
|
|
|
void update(double time);
|
|
|
|
};
|
2008-12-17 04:29:00 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|