15#ifndef OSGANIMATION_ANIMATION_MANAGER_BASE
16#define OSGANIMATION_ANIMATION_MANAGER_BASE 1
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
std::vector< osg::ref_ptr< osgAnimation::Animation > > AnimationList
Definition Animation:100
Deprecated.
Definition Callback:215
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class for all internal nodes in the scene graph.
Definition Node:72
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Animation * getRegisteredAnimation(unsigned int i)
Definition AnimationManagerBase:46
std::set< osg::ref_ptr< Target > > TargetSet
Definition AnimationManagerBase:31
AnimationList _animations
Definition AnimationManagerBase:75
virtual void update(double t)=0
void setAutomaticLink(bool)
set a flag to define the behaviour
const AnimationList & getAnimationList() const
Definition AnimationManagerBase:42
virtual void buildTargetReference()
TargetSet _targets
Definition AnimationManagerBase:76
osg::ref_ptr< LinkVisitor > _linker
Definition AnimationManagerBase:74
virtual bool needToLink() const
AnimationList & getAnimationList()
Definition AnimationManagerBase:43
void setLinkVisitor(LinkVisitor *)
virtual void link(osg::Node *subgraph)
virtual void unregisterAnimation(Animation *)
unsigned int getNumRegisteredAnimations() const
Definition AnimationManagerBase:47
bool getAutomaticLink() const
bool _needToLink
Definition AnimationManagerBase:77
bool isAutomaticLink() const
Definition AnimationManagerBase:69
void removeRegisteredAnimation(Animation *animation)
virtual ~AnimationManagerBase()
virtual void registerAnimation(Animation *)
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
Callback method called by the NodeVisitor when visiting a node.
void addRegisteredAnimation(Animation *animation)
Definition AnimationManagerBase:48
void clearTargets()
Reset the value of targets this Operation must be done each frame.
LinkVisitor * getOrCreateLinkVisitor()
bool _automaticLink
Definition AnimationManagerBase:78
AnimationManagerBase(const AnimationManagerBase &b, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
This class is instancied by the AnimationManagerBase, it will link animation target to updatecallback...
Definition LinkVisitor:29
#define OSGANIMATION_EXPORT
Definition Export:40