Updated wrappers

This commit is contained in:
Robert Osfield
2009-10-22 12:03:36 +00:00
parent d743412605
commit 7690fee435
5 changed files with 95 additions and 58 deletions

View File

@@ -21,6 +21,7 @@
#include <osg/Referenced>
#include <osg/Shape>
#include <osg/StateAttribute>
#include <osg/StateAttributeCallback>
#include <osg/StateSet>
#include <osg/Texture>
#include <osg/Uniform>
@@ -47,7 +48,7 @@ BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options)
I_EnumLabel(osg::CopyOp::DEEP_COPY_PRIMITIVES);
I_EnumLabel(osg::CopyOp::DEEP_COPY_SHAPES);
I_EnumLabel(osg::CopyOp::DEEP_COPY_UNIFORMS);
I_EnumLabel(osg::CopyOp::DEEP_COPY_NODECALLBACKS);
I_EnumLabel(osg::CopyOp::DEEP_COPY_CALLBACKS);
I_EnumLabel(osg::CopyOp::DEEP_COPY_ALL);
END_REFLECTOR

View File

@@ -271,7 +271,7 @@ END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::ImageSequence::UpdateCallback)
I_DeclaringFile("osg/ImageSequence");
I_BaseType(osg::StateAttribute::Callback);
I_BaseType(osg::StateAttributeCallback);
I_Constructor0(____UpdateCallback,
"",
"");

View File

@@ -11,10 +11,10 @@
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/NodeVisitor>
#include <osg/Object>
#include <osg/State>
#include <osg/StateAttribute>
#include <osg/StateAttributeCallback>
#include <osg/StateSet>
#include <osg/Texture>
@@ -97,6 +97,8 @@ TYPE_NAME_ALIAS(std::pair< osg::StateAttribute::Type COMMA unsigned int >, osg:
TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::StateAttribute::ParentList)
TYPE_NAME_ALIAS(osg::StateAttributeCallback, osg::StateAttribute::Callback)
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute)
I_DeclaringFile("osg/StateAttribute");
I_BaseType(osg::Object);
@@ -197,34 +199,34 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute)
__bool__checkValidityOfAssociatedModes__osg_State_R1,
"Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ",
"Return true if all associated modes are valid. ");
I_Method1(void, setUpdateCallback, IN, osg::StateAttribute::Callback *, uc,
I_Method1(void, setUpdateCallback, IN, osg::StateAttributeCallback *, uc,
Properties::NON_VIRTUAL,
__void__setUpdateCallback__Callback_P1,
__void__setUpdateCallback__StateAttributeCallback_P1,
"Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ",
"");
I_Method0(osg::StateAttribute::Callback *, getUpdateCallback,
I_Method0(osg::StateAttributeCallback *, getUpdateCallback,
Properties::NON_VIRTUAL,
__Callback_P1__getUpdateCallback,
__StateAttributeCallback_P1__getUpdateCallback,
"Get the non const UpdateCallback. ",
"");
I_Method0(const osg::StateAttribute::Callback *, getUpdateCallback,
I_Method0(const osg::StateAttributeCallback *, getUpdateCallback,
Properties::NON_VIRTUAL,
__C5_Callback_P1__getUpdateCallback,
__C5_StateAttributeCallback_P1__getUpdateCallback,
"Get the const UpdateCallback. ",
"");
I_Method1(void, setEventCallback, IN, osg::StateAttribute::Callback *, ec,
I_Method1(void, setEventCallback, IN, osg::StateAttributeCallback *, ec,
Properties::NON_VIRTUAL,
__void__setEventCallback__Callback_P1,
__void__setEventCallback__StateAttributeCallback_P1,
"Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ",
"");
I_Method0(osg::StateAttribute::Callback *, getEventCallback,
I_Method0(osg::StateAttributeCallback *, getEventCallback,
Properties::NON_VIRTUAL,
__Callback_P1__getEventCallback,
__StateAttributeCallback_P1__getEventCallback,
"Get the non const EventCallback. ",
"");
I_Method0(const osg::StateAttribute::Callback *, getEventCallback,
I_Method0(const osg::StateAttributeCallback *, getEventCallback,
Properties::NON_VIRTUAL,
__C5_Callback_P1__getEventCallback,
__C5_StateAttributeCallback_P1__getEventCallback,
"Get the const EventCallback. ",
"");
I_Method1(void, apply, IN, osg::State &, x,
@@ -259,9 +261,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute)
__void__removeParent__osg_StateSet_P1,
"",
"");
I_SimpleProperty(osg::StateAttribute::Callback *, EventCallback,
__Callback_P1__getEventCallback,
__void__setEventCallback__Callback_P1);
I_SimpleProperty(osg::StateAttributeCallback *, EventCallback,
__StateAttributeCallback_P1__getEventCallback,
__void__setEventCallback__StateAttributeCallback_P1);
I_SimpleProperty(unsigned int, Member,
__unsigned_int__getMember,
0);
@@ -281,46 +283,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute)
I_SimpleProperty(osg::StateAttribute::TypeMemberPair, TypeMemberPair,
__TypeMemberPair__getTypeMemberPair,
0);
I_SimpleProperty(osg::StateAttribute::Callback *, UpdateCallback,
__Callback_P1__getUpdateCallback,
__void__setUpdateCallback__Callback_P1);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::StateAttribute::Callback)
I_DeclaringFile("osg/StateAttribute");
I_VirtualBaseType(osg::Object);
I_Constructor0(____Callback,
"",
"");
I_Constructor2(IN, const osg::StateAttribute::Callback &, x, IN, const osg::CopyOp &, x,
____Callback__C5_Callback_R1__C5_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_SimpleProperty(osg::StateAttributeCallback *, UpdateCallback,
__StateAttributeCallback_P1__getUpdateCallback,
__void__setUpdateCallback__StateAttributeCallback_P1);
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute::ModeUsage)

View File

@@ -0,0 +1,63 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/NodeVisitor>
#include <osg/Object>
#include <osg/StateAttribute>
#include <osg/StateAttributeCallback>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_OBJECT_REFLECTOR(osg::StateAttributeCallback)
I_DeclaringFile("osg/StateAttributeCallback");
I_VirtualBaseType(osg::Object);
I_Constructor0(____StateAttributeCallback,
"",
"");
I_Constructor2(IN, const osg::StateAttributeCallback &, x, IN, const osg::CopyOp &, x,
____StateAttributeCallback__C5_StateAttributeCallback_R1__C5_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. ");
END_REFLECTOR

View File

@@ -131,6 +131,14 @@ BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMaterial)
__bool__link__osgAnimation_Channel_P1,
"",
"");
I_Method0(osgAnimation::Vec4Target *, getDiffuse,
Properties::NON_VIRTUAL,
__osgAnimation_Vec4Target_P1__getDiffuse,
"",
"");
I_SimpleProperty(osgAnimation::Vec4Target *, Diffuse,
__osgAnimation_Vec4Target_P1__getDiffuse,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform)