Updated wrappers

This commit is contained in:
Robert Osfield
2009-08-05 12:51:10 +00:00
parent df9385ac19
commit 5b81e1e76f
7 changed files with 116 additions and 23 deletions

View File

@@ -262,7 +262,6 @@ END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone)
I_DeclaringFile("osgAnimation/Bone");
I_BaseType(osgAnimation::AnimationUpdateCallback);
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__osg_Object_P1__cloneType,

View File

@@ -10,6 +10,7 @@
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Geode>
#include <osg/Node>
#include <osgAnimation/Animation>
#include <osgAnimation/LinkVisitor>
@@ -43,6 +44,11 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::LinkVisitor)
__void__apply__osg_Node_R1,
"",
"");
I_Method1(void, apply, IN, osg::Geode &, node,
Properties::VIRTUAL,
__void__apply__osg_Geode_R1,
"",
"");
I_Method0(osgAnimation::AnimationList &, getAnimationList,
Properties::NON_VIRTUAL,
__AnimationList_R1__getAnimationList,
@@ -53,6 +59,18 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::LinkVisitor)
__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_ProtectedMethod1(void, handle_stateset, IN, osg::StateSet *, stateset,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__handle_stateset__osg_StateSet_P1,
"",
"");
I_ProtectedMethod1(void, link, IN, osgAnimation::AnimationUpdateCallbackBase *, cb,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__link__osgAnimation_AnimationUpdateCallbackBase_P1,
"",
"");
I_SimpleProperty(osgAnimation::AnimationList &, AnimationList,
__AnimationList_R1__getAnimationList,
0);

View File

@@ -200,7 +200,6 @@ END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMorph)
I_DeclaringFile("osgAnimation/MorphGeometry");
I_BaseType(osgAnimation::AnimationUpdateCallback);
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__osg_Object_P1__cloneType,

View File

@@ -11,11 +11,13 @@
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/Material>
#include <osg/MatrixTransform>
#include <osg/Node>
#include <osg/NodeVisitor>
#include <osg/Object>
#include <osg/PositionAttitudeTransform>
#include <osg/StateAttribute>
#include <osgAnimation/Animation>
#include <osgAnimation/AnimationManagerBase>
#include <osgAnimation/Channel>
@@ -29,21 +31,14 @@
#undef OUT
#endif
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallback)
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallbackBase)
I_DeclaringFile("osgAnimation/UpdateCallback");
I_BaseType(osg::NodeCallback);
I_ConstructorWithDefaults1(IN, const std::string &, name, "",
Properties::NON_EXPLICIT,
____AnimationUpdateCallback__C5_std_string_R1,
"",
"");
I_Constructor2(IN, const osgAnimation::AnimationUpdateCallback &, apc, IN, const osg::CopyOp &, copyop,
____AnimationUpdateCallback__C5_AnimationUpdateCallback_R1__C5_osg_CopyOp_R1,
I_Constructor0(____AnimationUpdateCallbackBase,
"",
"");
I_Method0(osgAnimation::AnimationManagerBase *, getAnimationManager,
Properties::NON_VIRTUAL,
__osgAnimation_AnimationManagerBase_P1__getAnimationManager,
Properties::PURE_VIRTUAL,
__AnimationManagerBase_P1__getAnimationManager,
"",
"");
I_Method0(bool, needLink,
@@ -57,23 +52,83 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallback)
"",
"");
I_Method1(int, link, IN, osgAnimation::Animation *, animation,
Properties::VIRTUAL,
Properties::PURE_VIRTUAL,
__int__link__osgAnimation_Animation_P1,
"",
"");
I_Method0(void, updateLink,
Properties::VIRTUAL,
Properties::PURE_VIRTUAL,
__void__updateLink,
"",
"");
I_Method0(const std::string &, getName,
Properties::PURE_VIRTUAL,
__C5_std_string_R1__getName,
"",
"");
I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager,
__osgAnimation_AnimationManagerBase_P1__getAnimationManager,
__AnimationManagerBase_P1__getAnimationManager,
0);
I_SimpleProperty(const std::string &, Name,
__C5_std_string_R1__getName,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMaterial)
I_DeclaringFile("osgAnimation/UpdateCallback");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__osg_Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x,
Properties::VIRTUAL,
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_osg_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_ConstructorWithDefaults1(IN, const std::string &, name, "",
Properties::NON_EXPLICIT,
____UpdateMaterial__C5_std_string_R1,
"",
"");
I_Constructor2(IN, const osgAnimation::UpdateMaterial &, apc, IN, const osg::CopyOp &, copyop,
____UpdateMaterial__C5_UpdateMaterial_R1__C5_osg_CopyOp_R1,
"",
"");
I_Method1(void, update, IN, osg::Material &, material,
Properties::NON_VIRTUAL,
__void__update__osg_Material_R1,
"",
"");
I_Method0(bool, needLink,
Properties::VIRTUAL,
__bool__needLink,
"",
"");
I_Method1(bool, link, IN, osgAnimation::Channel *, channel,
Properties::VIRTUAL,
__bool__link__osgAnimation_Channel_P1,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform)
I_DeclaringFile("osgAnimation/UpdateCallback");
I_BaseType(osgAnimation::AnimationUpdateCallback);
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__osg_Object_P1__cloneType,