Updated wrappers

This commit is contained in:
Robert Osfield
2009-07-24 14:45:09 +00:00
parent 2e0f1dc0d1
commit 68c459ea30
9 changed files with 45 additions and 22 deletions

View File

@@ -15,6 +15,7 @@
#include <osg/NodeVisitor>
#include <osgAnimation/Animation>
#include <osgAnimation/AnimationManagerBase>
#include <osgAnimation/LinkVisitor>
#include <osgAnimation/Target>
// Must undefine IN and OUT macros defined in Windows headers
@@ -77,9 +78,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationManagerBase)
__void__normalizeTargets,
"",
"");
I_Method0(osgAnimation::LinkVisitor *, getOrCreateLinkVisitor,
Properties::NON_VIRTUAL,
__LinkVisitor_P1__getOrCreateLinkVisitor,
"",
"");
I_Method1(void, setLinkVisitor, IN, osgAnimation::LinkVisitor *, x,
Properties::NON_VIRTUAL,
__void__setLinkVisitor__LinkVisitor_P1,
"",
"");
I_SimpleProperty(const osgAnimation::AnimationList &, AnimationList,
__C5_AnimationList_R1__getAnimationList,
0);
I_SimpleProperty(osgAnimation::LinkVisitor *, LinkVisitor,
0,
__void__setLinkVisitor__LinkVisitor_P1);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Target >)

View File

@@ -25,14 +25,7 @@
BEGIN_OBJECT_REFLECTOR(osgAnimation::LinkVisitor)
I_DeclaringFile("osgAnimation/LinkVisitor");
I_BaseType(osg::NodeVisitor);
I_Constructor1(IN, osgAnimation::Animation *, animation,
Properties::NON_EXPLICIT,
____LinkVisitor__Animation_P1,
"",
"");
I_Constructor1(IN, const osgAnimation::AnimationList &, animations,
Properties::NON_EXPLICIT,
____LinkVisitor__C5_AnimationList_R1,
I_Constructor0(____LinkVisitor,
"",
"");
I_Method0(const char *, libraryName,
@@ -50,7 +43,18 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::LinkVisitor)
__void__apply__osg_Node_R1,
"",
"");
I_PublicMemberProperty(osgAnimation::AnimationList, _animations);
I_PublicMemberProperty(unsigned int, _nbLinkedTarget);
I_Method0(osgAnimation::AnimationList &, getAnimationList,
Properties::NON_VIRTUAL,
__AnimationList_R1__getAnimationList,
"",
"");
I_Method0(void, reset,
Properties::VIRTUAL,
__void__reset,
"Method to call to reset visitor. ",
"Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. ");
I_SimpleProperty(osgAnimation::AnimationList &, AnimationList,
__AnimationList_R1__getAnimationList,
0);
END_REFLECTOR

View File

@@ -104,7 +104,7 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::MorphGeometry)
Properties::VIRTUAL,
__void__addMorphTarget__osg_Geometry_P1__float,
"Add a MorphTarget to the MorphGeometry. ",
" param morphTarget The MorphTarget to be added to the MorphGeometry. return true for success; false otherwise. ");
" param morphTarget The MorphTarget to be added to the MorphGeometry. weight The weight to be added to the MorphGeometry. return true for success; false otherwise. ");
I_Method2(void, setWeight, IN, unsigned int, index, IN, float, morphWeight,
Properties::NON_VIRTUAL,
__void__setWeight__unsigned_int__float,