15#ifndef OSGANIMATION_TIMELINE
16#define OSGANIMATION_TIMELINE 1
55 void play() { _state = Play; }
56 void gotoFrame(
unsigned int frame) { _currentFrame = frame; }
57 void stop() { _state = Stop; }
69 virtual void update(
double simulationTime);
Definition ActionVisitor:39
Definition AnimationManagerBase:29
Definition StatsVisitor:27
osg::observer_ptr< AnimationManagerBase > _animationManager
Definition Timeline:85
double _lastUpdate
Definition Timeline:87
double getCurrentTime() const
Definition Timeline:53
unsigned int _currentFrame
Definition Timeline:89
Timeline(const Timeline &nc, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY)
double _speed
Definition Timeline:88
virtual void addActionAt(double t, Action *action, int priority=0)
void setStats(osg::Stats *stats)
void removeAction(Action *action)
osg::ref_ptr< osgAnimation::StatsActionVisitor > _statsVisitor
Definition Timeline:96
bool _initFirstFrame
Definition Timeline:91
void gotoFrame(unsigned int frame)
Definition Timeline:56
void internalRemoveAction(Action *action)
osg::ref_ptr< osg::Stats > _stats
Definition Timeline:95
TimelineStatus getStatus() const
Definition Timeline:46
void processPendingOperation()
bool getEvaluating() const
Definition Timeline:58
void setAnimationManager(AnimationManagerBase *)
virtual void addActionAt(unsigned int frame, Action *action, int priority=0)
bool isActive(Action *activeAction)
const ActionList & getActionLayer(int i)
Definition Timeline:51
std::vector< FrameAction > ActionList
Definition Timeline:48
void setEvaluating(bool state)
Definition Timeline:72
CommandList _addActionOperations
Definition Timeline:110
ActionLayers _actions
Definition Timeline:86
void traverse(ActionVisitor &visitor)
unsigned int _previousFrameEvaluated
Definition Timeline:90
std::vector< Command > CommandList
Definition Timeline:109
META_Action(osgAnimation, Timeline)
ActionList _removeActionOperations
Definition Timeline:111
const ActionLayers & getActionLayers() const
Definition Timeline:80
bool _evaluating
Definition Timeline:99
void play()
Definition Timeline:55
TimelineStatus _state
Definition Timeline:92
void collectStats(bool state)
std::map< int, ActionList > ActionLayers
Definition Timeline:49
osgAnimation::StatsActionVisitor * getStatsVisitor()
virtual void update(double simulationTime)
unsigned int getCurrentFrame() const
Definition Timeline:52
bool _collectStats
Definition Timeline:94
void stop()
Definition Timeline:57
void internalAddAction(int priority, const FrameAction &ftl)
void addActionNow(Action *action, int priority=0)
void setLastFrameEvaluated(unsigned int frame)
Definition Timeline:70
TimelineStatus
Definition Timeline:41
@ Play
Definition Timeline:42
@ SHALLOW_COPY
Definition CopyOp:47
Definition observer_ptr:39
std::pair< unsigned int, osg::ref_ptr< Action > > FrameAction
Definition FrameAction:24
#define OSGANIMATION_EXPORT
Definition osgAnimation/Export:40
Command()
Definition Timeline:103
FrameAction _action
Definition Timeline:106
int _priority
Definition Timeline:105
Command(int priority, const FrameAction &action)
Definition Timeline:104