TimelineAnimationManager 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* -*-c++-*-
  2. * Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net>
  3. *
  4. * This library is open source and may be redistributed and/or modified under
  5. * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
  6. * (at your option) any later version. The full license is in LICENSE file
  7. * included with this distribution, and on the openscenegraph.org website.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * OpenSceneGraph Public License for more details.
  13. */
  14. #ifndef OSGANIMATION_TIMELINE_ANIMATION_MANAGER
  15. #define OSGANIMATION_TIMELINE_ANIMATION_MANAGER 1
  16. #include <osgAnimation/Export>
  17. #include <osgAnimation/AnimationManagerBase>
  18. #include <osgAnimation/Timeline>
  19. namespace osgAnimation
  20. {
  21. class OSGANIMATION_EXPORT TimelineAnimationManager : public AnimationManagerBase
  22. {
  23. protected:
  24. osg::ref_ptr<Timeline> _timeline;
  25. public:
  26. META_Object(osgAnimation, TimelineAnimationManager);
  27. TimelineAnimationManager();
  28. TimelineAnimationManager(const AnimationManagerBase& manager);
  29. TimelineAnimationManager(const TimelineAnimationManager& nc,const osg::CopyOp&);
  30. Timeline* getTimeline() { return _timeline.get(); }
  31. const Timeline* getTimeline() const { return _timeline.get(); }
  32. void update(double time);
  33. };
  34. }
  35. #endif