| 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 | |
|---|
| 15 | #ifndef OSGANIMATION_TIMELINE_ANIMATION_MANAGER |
|---|
| 16 | #define OSGANIMATION_TIMELINE_ANIMATION_MANAGER 1 |
|---|
| 17 | |
|---|
| 18 | #include <osgAnimation/Export> |
|---|
| 19 | #include <osgAnimation/AnimationManagerBase> |
|---|
| 20 | #include <osgAnimation/Timeline> |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | namespace osgAnimation |
|---|
| 24 | { |
|---|
| 25 | |
|---|
| 26 | class OSGANIMATION_EXPORT TimelineAnimationManager : public AnimationManagerBase |
|---|
| 27 | { |
|---|
| 28 | protected: |
|---|
| 29 | osg::ref_ptr<Timeline> _timeline; |
|---|
| 30 | |
|---|
| 31 | public: |
|---|
| 32 | META_Object(osgAnimation, TimelineAnimationManager); |
|---|
| 33 | TimelineAnimationManager(); |
|---|
| 34 | TimelineAnimationManager(const AnimationManagerBase& manager); |
|---|
| 35 | TimelineAnimationManager(const TimelineAnimationManager& nc,const osg::CopyOp&); |
|---|
| 36 | |
|---|
| 37 | Timeline* getTimeline() { return _timeline.get(); } |
|---|
| 38 | const Timeline* getTimeline() const { return _timeline.get(); } |
|---|
| 39 | void update(double time); |
|---|
| 40 | }; |
|---|
| 41 | |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | #endif |
|---|