Updated wrappers

This commit is contained in:
Robert Osfield
2007-02-12 18:02:15 +00:00
parent d28a6011f1
commit 3a48c95fc5
304 changed files with 8597 additions and 376 deletions

View File

@@ -34,6 +34,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object)
"Construct an object. ",
"Note Object is a pure virtual base class and therefore cannot be constructed on its own, only derived classes which override the clone and className methods are concrete classes and can be constructed. ");
I_Constructor1(IN, bool, threadSafeRefUnref,
Properties::EXPLICIT,
____Object__bool,
"",
"");
@@ -42,62 +43,77 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object)
"Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. ",
"");
I_Method0(osg::Object *, cloneType,
Properties::PURE_VIRTUAL,
__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::PURE_VIRTUAL,
__Object_P1__clone__C5_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, x,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::PURE_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::PURE_VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, setName, IN, const std::string &, name,
Properties::NON_VIRTUAL,
__void__setName__C5_std_string_R1,
"Set the name of object using C++ style string. ",
"");
I_Method1(void, setName, IN, const char *, name,
Properties::NON_VIRTUAL,
__void__setName__C5_char_P1,
"Set the name of object using a C style string. ",
"");
I_Method0(const std::string &, getName,
Properties::NON_VIRTUAL,
__C5_std_string_R1__getName,
"Get the name of object. ",
"");
I_Method1(void, setDataVariance, IN, osg::Object::DataVariance, dv,
Properties::NON_VIRTUAL,
__void__setDataVariance__DataVariance,
"Set the data variance of this object. ",
"Can be set to either STATIC for values that do not change over the lifetime of the object, or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value can be used by routines such as optimzation codes that wish to share static data. ");
I_Method0(osg::Object::DataVariance, getDataVariance,
Properties::NON_VIRTUAL,
__DataVariance__getDataVariance,
"Get the data variance of this object. ",
"");
I_Method1(void, setUserData, IN, osg::Referenced *, obj,
Properties::NON_VIRTUAL,
__void__setUserData__Referenced_P1,
"Set user data, data must be subclassed from Referenced to allow automatic memory handling. ",
"If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own object and handles the memory addressing.");
I_Method0(osg::Referenced *, getUserData,
Properties::NON_VIRTUAL,
__Referenced_P1__getUserData,
"Get user data. ",
"");
I_Method0(const osg::Referenced *, getUserData,
Properties::NON_VIRTUAL,
__C5_Referenced_P1__getUserData,
"Get const user data. ",
"");
I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int,
Properties::VIRTUAL,
__void__resizeGLObjectBuffers__unsigned,
"Resize any per context GLObject buffers to specified size. ",
"");
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0,
Properties::VIRTUAL,
__void__releaseGLObjects__osg_State_P1,
"If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ",
"Otherwise, releases OpenGL objexts for all graphics contexts. ");