refactoring and fixes
only change in design: decouplage between MorphGeometry and MorphTransform technique no real change in behavior (i hope)
This commit is contained in:
@@ -42,6 +42,16 @@ namespace osgAnimation
|
||||
const AnimationList& getAnimationList() const { return _animations;}
|
||||
AnimationList& getAnimationList() { return _animations;}
|
||||
|
||||
//uniformisation of the API
|
||||
inline Animation * getRegisteredAnimation(unsigned int i){return _animations[i].get();}
|
||||
inline unsigned int getNumRegisteredAnimations()const{return _animations.size();}
|
||||
inline void addRegisteredAnimation(Animation* animation){
|
||||
_needToLink = true;
|
||||
_animations.push_back(animation);
|
||||
buildTargetReference();
|
||||
}
|
||||
void removeRegisteredAnimation(Animation* animation);
|
||||
|
||||
/** Callback method called by the NodeVisitor when visiting a node.*/
|
||||
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user