15 #ifndef OSGANIMATION_ACTIONVISITOR_H
16 #define OSGANIMATION_ACTIONVISITOR_H
19 #include <osgAnimation/Export>
20 #include <osg/Referenced>
21 #include <osgAnimation/FrameAction>
30 class ActionAnimation;
31 class ActionStripAnimation;
33 #define META_ActionVisitor(library,name) \
34 virtual const char* libraryName() const { return #library; }\
35 virtual const char* className() const { return #name; }
43 void traverse(
Action& visitor);
46 void popFrameAction();
48 void pushTimelineOnStack(
Timeline* tm);
57 virtual void apply(
Action& action);
79 void setFrame(
unsigned int frame) { _frame = frame;}
81 bool isActive(
Action& action)
const;
82 unsigned int getLocalFrame()
const;
85 void apply(
Action& action);
104 void setFrame(
unsigned int frame) { _frame = frame;}
107 void apply(
Action& action);
#define OSGANIMATION_EXPORT
std::vector< osg::ref_ptr< Action > > _remove
std::vector< FrameAction > _stackFrameAction
void setFrame(unsigned int frame)
void setCurrentLayer(int layer)
void setFrame(unsigned int frame)
std::pair< unsigned int, osg::ref_ptr< Action > > FrameAction
blend in from 0 to weight in duration
std::vector< Timeline * > _stackTimeline
const std::vector< FrameAction > & getStackedFrameAction() const
#define META_ActionVisitor(library, name)
blend out from weight to 0 in duration
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
unsigned int _currentAnimationPriority
int getCurrentLayer() const