Updated wrappers

This commit is contained in:
Robert Osfield 2009-06-16 13:02:33 +00:00
parent 93cafb2292
commit bf895e5c98
3 changed files with 104 additions and 435 deletions

View File

@ -192,6 +192,7 @@ EXPAND_AS_DEFINED = META_Object \
META_Technique \
META_NodeVisitor \
META_Effect \
META_Action \
META_OSGMANIPULATOR_Object
PREDEFINED =

View File

@ -312,9 +312,6 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone)
__bool__link__osgAnimation_Channel_P1,
"",
"");
I_PublicMemberProperty(osg::ref_ptr< osgAnimation::Vec3Target >, _position);
I_PublicMemberProperty(osg::ref_ptr< osgAnimation::QuatTarget >, _quaternion);
I_PublicMemberProperty(osg::ref_ptr< osgAnimation::Vec3Target >, _scale);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Bone >)

View File

@ -12,7 +12,10 @@
#include <osg/CopyOp>
#include <osg/Object>
#include <osgAnimation/Animation>
#include <osg/Stats>
#include <osgAnimation/Action>
#include <osgAnimation/ActionVisitor>
#include <osgAnimation/StatsVisitor>
#include <osgAnimation/Timeline>
// Must undefine IN and OUT macros defined in Windows headers
@ -23,342 +26,19 @@
#undef OUT
#endif
TYPE_NAME_ALIAS(std::map< unsigned int COMMA osg::ref_ptr< osgAnimation::Action::Callback > >, osgAnimation::Action::FrameCallback)
BEGIN_OBJECT_REFLECTOR(osgAnimation::Action)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osg::Object);
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_Constructor0(____Action,
"",
"");
I_Constructor2(IN, const osgAnimation::Action &, x, IN, const osg::CopyOp &, x,
____Action__C5_Action_R1__C5_osg_CopyOp_R1,
"",
"");
I_Method2(void, setCallback, IN, double, when, IN, osgAnimation::Action::Callback *, callback,
Properties::NON_VIRTUAL,
__void__setCallback__double__Callback_P1,
"",
"");
I_Method2(void, setCallback, IN, unsigned int, frame, IN, osgAnimation::Action::Callback *, callback,
Properties::NON_VIRTUAL,
__void__setCallback__unsigned_int__Callback_P1,
"",
"");
I_Method1(osgAnimation::Action::Callback *, getCallback, IN, unsigned int, frame,
Properties::NON_VIRTUAL,
__Callback_P1__getCallback__unsigned_int,
"",
"");
I_Method1(void, setNumFrames, IN, unsigned int, numFrames,
Properties::NON_VIRTUAL,
__void__setNumFrames__unsigned_int,
"",
"");
I_Method1(void, setDuration, IN, double, duration,
Properties::NON_VIRTUAL,
__void__setDuration__double,
"",
"");
I_Method0(unsigned int, getNumFrames,
Properties::NON_VIRTUAL,
__unsigned_int__getNumFrames,
"",
"");
I_Method0(double, getDuration,
Properties::NON_VIRTUAL,
__double__getDuration,
"",
"");
I_Method1(void, setLoop, IN, int, nb,
Properties::VIRTUAL,
__void__setLoop__int,
"",
"");
I_Method0(unsigned int, getLoop,
Properties::VIRTUAL,
__unsigned_int__getLoop,
"",
"");
I_Method3(bool, evaluateFrame, IN, unsigned int, frame, IN, unsigned int &, resultframe, IN, unsigned int &, nbloop,
Properties::NON_VIRTUAL,
__bool__evaluateFrame__unsigned_int__unsigned_int_R1__unsigned_int_R1,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_Method1(void, evaluateCallback, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluateCallback__unsigned_int,
"",
"");
I_IndexedProperty(osgAnimation::Action::Callback *, Callback,
__Callback_P1__getCallback__unsigned_int,
__void__setCallback__unsigned_int__Callback_P1,
0);
I_SimpleProperty(double, Duration,
__double__getDuration,
__void__setDuration__double);
I_SimpleProperty(int, Loop,
0,
__void__setLoop__int);
I_SimpleProperty(unsigned int, NumFrames,
0,
__void__setNumFrames__unsigned_int);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::Action::Callback)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osg::Object);
I_Constructor0(____Callback,
"",
"");
I_Constructor2(IN, const osgAnimation::Action::Callback &, x, IN, const osg::CopyOp &, x,
____Callback__C5_Callback_R1__C5_osg_CopyOp_R1,
"",
"");
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_Method1(void, addNestedCallback, IN, osgAnimation::Action::Callback *, callback,
Properties::NON_VIRTUAL,
__void__addNestedCallback__Callback_P1,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionAnimation)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osgAnimation::Action);
I_Constructor1(IN, osgAnimation::Animation *, animation,
Properties::NON_EXPLICIT,
____ActionAnimation__Animation_P1,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_Method0(osgAnimation::Animation *, getAnimation,
Properties::NON_VIRTUAL,
__Animation_P1__getAnimation,
"",
"");
I_SimpleProperty(osgAnimation::Animation *, Animation,
__Animation_P1__getAnimation,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::BlendIn)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osgAnimation::Action);
I_Constructor3(IN, osgAnimation::Animation *, animation, IN, double, duration, IN, double, weight,
____BlendIn__Animation_P1__double__double,
"",
"");
I_Method0(double, getWeight,
Properties::NON_VIRTUAL,
__double__getWeight,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_SimpleProperty(double, Weight,
__double__getWeight,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::BlendOut)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osgAnimation::Action);
I_Constructor2(IN, osgAnimation::Animation *, animation, IN, double, duration,
____BlendOut__Animation_P1__double,
"",
"");
I_Method0(double, getWeight,
Properties::NON_VIRTUAL,
__double__getWeight,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_SimpleProperty(double, Weight,
__double__getWeight,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::RunAction)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osgAnimation::Action::Callback);
I_Constructor2(IN, osgAnimation::Timeline *, tm, IN, osgAnimation::Action *, a,
____RunAction__Timeline_P1__Action_P1,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::StripAnimation)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osgAnimation::Action);
I_ConstructorWithDefaults4(IN, osgAnimation::Animation *, animation, , IN, double, blendInDuration, , IN, double, blendOutDuration, , IN, double, blendInWeightTarget, 1.0,
____StripAnimation__Animation_P1__double__double__double,
"",
"");
I_Method0(osgAnimation::ActionAnimation *, getActionAnimation,
Properties::NON_VIRTUAL,
__ActionAnimation_P1__getActionAnimation,
"",
"");
I_Method0(osgAnimation::BlendIn *, getBlendIn,
Properties::NON_VIRTUAL,
__BlendIn_P1__getBlendIn,
"",
"");
I_Method0(osgAnimation::BlendOut *, getBlendOut,
Properties::NON_VIRTUAL,
__BlendOut_P1__getBlendOut,
"",
"");
I_Method0(const osgAnimation::ActionAnimation *, getActionAnimation,
Properties::NON_VIRTUAL,
__C5_ActionAnimation_P1__getActionAnimation,
"",
"");
I_Method0(const osgAnimation::BlendIn *, getBlendIn,
Properties::NON_VIRTUAL,
__C5_BlendIn_P1__getBlendIn,
"",
"");
I_Method0(const osgAnimation::BlendOut *, getBlendOut,
Properties::NON_VIRTUAL,
__C5_BlendOut_P1__getBlendOut,
"",
"");
I_Method0(unsigned int, getLoop,
Properties::VIRTUAL,
__unsigned_int__getLoop,
"",
"");
I_Method1(void, setLoop, IN, unsigned int, loop,
Properties::NON_VIRTUAL,
__void__setLoop__unsigned_int,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_SimpleProperty(osgAnimation::ActionAnimation *, ActionAnimation,
__ActionAnimation_P1__getActionAnimation,
0);
I_SimpleProperty(osgAnimation::BlendIn *, BlendIn,
__BlendIn_P1__getBlendIn,
0);
I_SimpleProperty(osgAnimation::BlendOut *, BlendOut,
__BlendOut_P1__getBlendOut,
0);
I_SimpleProperty(unsigned int, Loop,
__unsigned_int__getLoop,
__void__setLoop__unsigned_int);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgAnimation::Timeline::TimelineStatus)
I_DeclaringFile("osgAnimation/Timeline");
I_EnumLabel(osgAnimation::Timeline::Play);
I_EnumLabel(osgAnimation::Timeline::Stop);
END_REFLECTOR
TYPE_NAME_ALIAS(std::pair< unsigned int COMMA osg::ref_ptr< osgAnimation::Action > >, osgAnimation::Timeline::FrameAction)
TYPE_NAME_ALIAS(std::vector< osgAnimation::Timeline::FrameAction >, osgAnimation::Timeline::ActionList)
TYPE_NAME_ALIAS(std::vector< osgAnimation::FrameAction >, osgAnimation::Timeline::ActionList)
TYPE_NAME_ALIAS(std::map< int COMMA osgAnimation::Timeline::ActionList >, osgAnimation::Timeline::ActionLayers)
BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline)
I_DeclaringFile("osgAnimation/Timeline");
I_BaseType(osg::Object);
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_BaseType(osgAnimation::Action);
I_Constructor0(____Timeline,
"",
"");
@ -366,6 +46,36 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline)
____Timeline__C5_Timeline_R1__C5_osg_CopyOp_R1,
"",
"");
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 *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv,
Properties::VIRTUAL,
__void__accept__osgAnimation_ActionVisitor_R1,
"",
"");
I_Method0(osgAnimation::Timeline::TimelineStatus, getStatus,
Properties::NON_VIRTUAL,
__TimelineStatus__getStatus,
@ -426,14 +136,14 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline)
__void__addActionAt__double__Action_P1__int,
"",
"");
I_Method1(void, evaluate, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluate__unsigned_int,
"",
"");
I_Method1(void, evaluateCallback, IN, unsigned int, frame,
Properties::VIRTUAL,
__void__evaluateCallback__unsigned_int,
I_MethodWithDefaults2(void, addActionNow, IN, osgAnimation::Action *, action, , IN, int, priority, 0,
Properties::NON_VIRTUAL,
__void__addActionNow__Action_P1__int,
"",
"");
I_Method0(void, clearActions,
Properties::NON_VIRTUAL,
__void__clearActions,
"",
"");
I_Method1(void, update, IN, double, simulationTime,
@ -441,30 +151,66 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline)
__void__update__double,
"",
"");
I_ProtectedMethod1(void, setEvaluating, IN, bool, state,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__setEvaluating__bool,
"",
"");
I_ProtectedMethod0(void, processPendingOperation,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__processPendingOperation,
"",
"");
I_Method1(void, setLastFrameEvaluated, IN, unsigned int, frame,
Properties::NON_VIRTUAL,
__void__setLastFrameEvaluated__unsigned_int,
"",
"");
I_Method1(void, setEvaluating, IN, bool, state,
Properties::NON_VIRTUAL,
__void__setEvaluating__bool,
"",
"");
I_Method1(void, traverse, IN, osgAnimation::ActionVisitor &, visitor,
Properties::VIRTUAL,
__void__traverse__ActionVisitor_R1,
"",
"");
I_Method1(void, setStats, IN, osg::Stats *, stats,
Properties::NON_VIRTUAL,
__void__setStats__osg_Stats_P1,
"",
"");
I_Method0(osg::Stats *, getStats,
Properties::NON_VIRTUAL,
__osg_Stats_P1__getStats,
"",
"");
I_Method1(void, collectStats, IN, bool, state,
Properties::NON_VIRTUAL,
__void__collectStats__bool,
"",
"");
I_Method0(osgAnimation::StatsActionVisitor *, getStatsVisitor,
Properties::NON_VIRTUAL,
__osgAnimation_StatsActionVisitor_P1__getStatsVisitor,
"",
"");
I_Method0(const osgAnimation::Timeline::ActionLayers &, getActionLayers,
Properties::NON_VIRTUAL,
__C5_ActionLayers_R1__getActionLayers,
"",
"");
I_Method0(void, processPendingOperation,
Properties::NON_VIRTUAL,
__void__processPendingOperation,
"",
"");
I_ProtectedMethod1(void, internalRemoveAction, IN, osgAnimation::Action *, action,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__internalRemoveAction__Action_P1,
"",
"");
I_ProtectedMethod2(void, internalAddAction, IN, int, priority, IN, const osgAnimation::Timeline::FrameAction &, ftl,
I_ProtectedMethod2(void, internalAddAction, IN, int, priority, IN, const osgAnimation::FrameAction &, ftl,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__internalAddAction__int__C5_FrameAction_R1,
"",
"");
I_SimpleProperty(const osgAnimation::Timeline::ActionLayers &, ActionLayers,
__C5_ActionLayers_R1__getActionLayers,
0);
I_SimpleProperty(unsigned int, CurrentFrame,
__unsigned_int__getCurrentFrame,
0);
@ -473,97 +219,22 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline)
0);
I_SimpleProperty(bool, Evaluating,
__bool__getEvaluating,
__void__setEvaluating__bool);
I_SimpleProperty(unsigned int, LastFrameEvaluated,
0,
__void__setLastFrameEvaluated__unsigned_int);
I_SimpleProperty(osg::Stats *, Stats,
__osg_Stats_P1__getStats,
__void__setStats__osg_Stats_P1);
I_SimpleProperty(osgAnimation::StatsActionVisitor *, StatsVisitor,
__osgAnimation_StatsActionVisitor_P1__getStatsVisitor,
0);
I_SimpleProperty(osgAnimation::Timeline::TimelineStatus, Status,
__TimelineStatus__getStatus,
0);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Action >)
I_DeclaringFile("osg/ref_ptr");
I_Constructor0(____ref_ptr,
"",
"");
I_Constructor1(IN, osgAnimation::Action *, ptr,
Properties::NON_EXPLICIT,
____ref_ptr__T_P1,
"",
"");
I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Action > &, rp,
Properties::NON_EXPLICIT,
____ref_ptr__C5_ref_ptr_R1,
"",
"");
I_Method0(osgAnimation::Action *, get,
Properties::NON_VIRTUAL,
__T_P1__get,
"",
"");
I_Method0(bool, valid,
Properties::NON_VIRTUAL,
__bool__valid,
"",
"");
I_Method0(osgAnimation::Action *, release,
Properties::NON_VIRTUAL,
__T_P1__release,
"",
"");
I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Action > &, rp,
Properties::NON_VIRTUAL,
__void__swap__ref_ptr_R1,
"",
"");
I_SimpleProperty(osgAnimation::Action *, ,
__T_P1__get,
0);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Action::Callback >)
I_DeclaringFile("osg/ref_ptr");
I_Constructor0(____ref_ptr,
"",
"");
I_Constructor1(IN, osgAnimation::Action::Callback *, ptr,
Properties::NON_EXPLICIT,
____ref_ptr__T_P1,
"",
"");
I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Action::Callback > &, rp,
Properties::NON_EXPLICIT,
____ref_ptr__C5_ref_ptr_R1,
"",
"");
I_Method0(osgAnimation::Action::Callback *, get,
Properties::NON_VIRTUAL,
__T_P1__get,
"",
"");
I_Method0(bool, valid,
Properties::NON_VIRTUAL,
__bool__valid,
"",
"");
I_Method0(osgAnimation::Action::Callback *, release,
Properties::NON_VIRTUAL,
__T_P1__release,
"",
"");
I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Action::Callback > &, rp,
Properties::NON_VIRTUAL,
__void__swap__ref_ptr_R1,
"",
"");
I_SimpleProperty(osgAnimation::Action::Callback *, ,
__T_P1__get,
0);
END_REFLECTOR
STD_MAP_REFLECTOR(std::map< int COMMA osgAnimation::Timeline::ActionList >)
STD_MAP_REFLECTOR(std::map< unsigned int COMMA osg::ref_ptr< osgAnimation::Action::Callback > >)
STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA osg::ref_ptr< osgAnimation::Action > >)
STD_VECTOR_REFLECTOR(std::vector< osgAnimation::Timeline::FrameAction >)
STD_VECTOR_REFLECTOR(std::vector< osgAnimation::FrameAction >)