15#ifndef OSGANIMATION_ANIMATION_UPDATE_CALLBACK
16#define OSGANIMATION_ANIMATION_UPDATE_CALLBACK 1
51 const std::string&
getName()
const {
return T::getName(); }
55 if (T::getName().empty())
57 osg::notify(
osg::WARN) <<
"An update callback has no name, it means it could link only with \"\" named Target, often an error, discard" << std::endl;
61 for (ChannelList::iterator it = animation->
getChannels().begin();
65 std::string targetName = (*it)->getTargetName();
66 if (targetName == T::getName())
@ WARN
Definition Notify:33
std::ostream & notify(void)
Definition Notify:80
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
Callback for attaching a script to a Node's via there UserDataContainer for the purpose of overriding...
Definition Callback:134
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
ChannelList & getChannels()
Those accessors let you add and remove channels if you modify something that can change the duration ...
Definition AnimationUpdateCallback:27
virtual bool link(Channel *channel)=0
virtual int link(Animation *animation)=0
META_Object(osgAnimation, AnimationUpdateCallback< T >)
virtual const osg::CallbackObject * asCallbackObject() const
convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject,...
Definition AnimationUpdateCallback:48
virtual const osg::Callback * asCallback() const
convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0.
Definition AnimationUpdateCallback:45
virtual osg::CallbackObject * asCallbackObject()
Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0.
Definition AnimationUpdateCallback:47
bool link(Channel *)
Definition AnimationUpdateCallback:52
const std::string & getName() const
Definition AnimationUpdateCallback:51
AnimationUpdateCallback(const std::string &name)
Definition AnimationUpdateCallback:39
int link(Animation *animation)
Definition AnimationUpdateCallback:53
AnimationUpdateCallback(const AnimationUpdateCallback &apc, const osg::CopyOp ©op)
Definition AnimationUpdateCallback:40
AnimationUpdateCallback()
Definition AnimationUpdateCallback:38
virtual osg::Callback * asCallback()
Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0.
Definition AnimationUpdateCallback:44