The changes are more or less just beautifications
(when looked at them from the C++ view), but make
wrapping OSG with SWIG easier.
I have tested the changes with both 2.8.1-rc4 and the
current head and would appreciate to incorporate the
changes in both branches.
Here is a description of the changes:
osg/BoundingSphere:
Use the following typedef (like used in BoundingBox)
typedef typename VT::value_type value_type;
instead of
typedef typename vec_type::value_type value_type;
SWIG reports errors on the latter construct.
Also makes it consistent with BoundingBox.
osg/Vec4ub:
Consistent use of "value_type" throughout the file.
osg/Vec?b:
Consistent use of "value_type" throughout the files.
Also changed
typedef char value_type;
to
typedef signed char value_type;
In the case of a simple "char", SWIG assumes a string.
Using "signed char" instead of "char" does not change
the behaviour of the class."
120 lines
3.4 KiB
C++
120 lines
3.4 KiB
C++
// ***************************************************************************
|
|
//
|
|
// Generated automatically by genwrapper.
|
|
// Please DO NOT EDIT this file!
|
|
//
|
|
// ***************************************************************************
|
|
|
|
#include <osgIntrospection/ReflectionMacros>
|
|
#include <osgIntrospection/TypedMethodInfo>
|
|
#include <osgIntrospection/StaticMethodInfo>
|
|
#include <osgIntrospection/Attributes>
|
|
|
|
#include <osg/Vec3b>
|
|
|
|
// Must undefine IN and OUT macros defined in Windows headers
|
|
#ifdef IN
|
|
#undef IN
|
|
#endif
|
|
#ifdef OUT
|
|
#undef OUT
|
|
#endif
|
|
|
|
#include <osg/io_utils>
|
|
|
|
TYPE_NAME_ALIAS(signed char, osg::Vec3b::value_type)
|
|
|
|
BEGIN_VALUE_REFLECTOR(osg::Vec3b)
|
|
I_ReaderWriter(osgIntrospection::StdReaderWriter<reflected_type>); // user-defined
|
|
I_Comparator(osgIntrospection::PartialOrderComparator<reflected_type>); // user-defined
|
|
I_DeclaringFile("osg/Vec3b");
|
|
I_Constructor0(____Vec3b,
|
|
"",
|
|
"");
|
|
I_Constructor3(IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b,
|
|
____Vec3b__value_type__value_type__value_type,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type *, ptr,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_P1__ptr,
|
|
"",
|
|
"");
|
|
I_Method0(const osg::Vec3b::value_type *, ptr,
|
|
Properties::NON_VIRTUAL,
|
|
__C5_value_type_P1__ptr,
|
|
"",
|
|
"");
|
|
I_Method3(void, set, IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b,
|
|
Properties::NON_VIRTUAL,
|
|
__void__set__value_type__value_type__value_type,
|
|
"",
|
|
"");
|
|
I_Method1(void, set, IN, const osg::Vec3b &, rhs,
|
|
Properties::NON_VIRTUAL,
|
|
__void__set__C5_Vec3b_R1,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, x,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__x,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, y,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__y,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, z,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__z,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, x,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__x,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, y,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__y,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, z,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__z,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, r,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__r,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, g,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__g,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type &, b,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type_R1__b,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, r,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__r,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, g,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__g,
|
|
"",
|
|
"");
|
|
I_Method0(osg::Vec3b::value_type, b,
|
|
Properties::NON_VIRTUAL,
|
|
__value_type__b,
|
|
"",
|
|
"");
|
|
END_REFLECTOR
|
|
|