Updated wrappers

This commit is contained in:
Robert Osfield
2006-10-24 09:45:50 +00:00
parent 85dc696c09
commit c892fafa1c
266 changed files with 37808 additions and 9935 deletions

View File

@@ -23,36 +23,125 @@
#endif
BEGIN_VALUE_REFLECTOR(osg::BoundingBox)
I_Constructor0();
I_Constructor6(IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax);
I_Constructor2(IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max);
I_Method0(void, init);
I_Method0(bool, valid);
I_Method6(void, set, IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax);
I_Method2(void, set, IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max);
I_Method0(float &, xMin);
I_Method0(float, xMin);
I_Method0(float &, yMin);
I_Method0(float, yMin);
I_Method0(float &, zMin);
I_Method0(float, zMin);
I_Method0(float &, xMax);
I_Method0(float, xMax);
I_Method0(float &, yMax);
I_Method0(float, yMax);
I_Method0(float &, zMax);
I_Method0(float, zMax);
I_Method0(const osg::Vec3, center);
I_Method0(float, radius);
I_Method0(float, radius2);
I_Method1(const osg::Vec3, corner, IN, unsigned int, pos);
I_Method1(void, expandBy, IN, const osg::Vec3 &, v);
I_Method3(void, expandBy, IN, float, x, IN, float, y, IN, float, z);
I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb);
I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh);
I_Method1(osg::BoundingBox, intersect, IN, const osg::BoundingBox &, bb);
I_Method1(bool, intersects, IN, const osg::BoundingBox &, bb);
I_Method1(bool, contains, IN, const osg::Vec3 &, v);
I_Constructor0(____BoundingBox,
"Creates an uninitialized bounding box. ",
"");
I_Constructor6(IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax,
____BoundingBox__float__float__float__float__float__float,
"Creates a bounding box initialized to the given extents. ",
"");
I_Constructor2(IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max,
____BoundingBox__C5_Vec3_R1__C5_Vec3_R1,
"Creates a bounding box initialized to the given extents. ",
"");
I_Method0(void, init,
__void__init,
"Clear the bounding box. ",
"Erases existing minimum and maximum extents. ");
I_Method0(bool, valid,
__bool__valid,
"Returns true if the bounding box extents are valid, false otherwise. ",
"");
I_Method6(void, set, IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax,
__void__set__float__float__float__float__float__float,
"Sets the bounding box extents. ",
"");
I_Method2(void, set, IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max,
__void__set__C5_Vec3_R1__C5_Vec3_R1,
"Sets the bounding box extents. ",
"");
I_Method0(float &, xMin,
__float_R1__xMin,
"",
"");
I_Method0(float, xMin,
__float__xMin,
"",
"");
I_Method0(float &, yMin,
__float_R1__yMin,
"",
"");
I_Method0(float, yMin,
__float__yMin,
"",
"");
I_Method0(float &, zMin,
__float_R1__zMin,
"",
"");
I_Method0(float, zMin,
__float__zMin,
"",
"");
I_Method0(float &, xMax,
__float_R1__xMax,
"",
"");
I_Method0(float, xMax,
__float__xMax,
"",
"");
I_Method0(float &, yMax,
__float_R1__yMax,
"",
"");
I_Method0(float, yMax,
__float__yMax,
"",
"");
I_Method0(float &, zMax,
__float_R1__zMax,
"",
"");
I_Method0(float, zMax,
__float__zMax,
"",
"");
I_Method0(const osg::Vec3, center,
__C5_Vec3__center,
"Calculates and returns the bounding box center. ",
"");
I_Method0(float, radius,
__float__radius,
"Calculates and returns the bounding box radius. ",
"");
I_Method0(float, radius2,
__float__radius2,
"Calculates and returns the squared length of the bounding box radius. ",
"Note, radius2() is faster to calculate than radius(). ");
I_Method1(const osg::Vec3, corner, IN, unsigned int, pos,
__C5_Vec3__corner__unsigned_int,
"Returns a specific corner of the bounding box. ",
"pos specifies the corner as a number between 0 and 7. Each bit selects an axis, X, Y, or Z from least- to most-significant. Unset bits select the minimum value for that axis, and set bits select the maximum. ");
I_Method1(void, expandBy, IN, const osg::Vec3 &, v,
__void__expandBy__C5_Vec3_R1,
"Expands the bounding box to include the given coordinate. ",
"If the box is uninitialized, set its min and max extents to v. ");
I_Method3(void, expandBy, IN, float, x, IN, float, y, IN, float, z,
__void__expandBy__float__float__float,
"Expands the bounding box to include the given coordinate. ",
"If the box is uninitialized, set its min and max extents to Vec3(x,y,z). ");
I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb,
__void__expandBy__C5_BoundingBox_R1,
"Expands this bounding box to include the given bounding box. ",
"If this box is uninitialized, set it equal to bb. ");
I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh,
__void__expandBy__C5_BoundingSphere_R1,
"Expands this bounding box to include the given sphere. ",
"If this box is uninitialized, set it to include sh. ");
I_Method1(osg::BoundingBox, intersect, IN, const osg::BoundingBox &, bb,
__BoundingBox__intersect__C5_BoundingBox_R1,
"Returns the intesection of this bounding box and the specified bounding box. ",
"");
I_Method1(bool, intersects, IN, const osg::BoundingBox &, bb,
__bool__intersects__C5_BoundingBox_R1,
"Return true if this bounding box intersects the specified bounding box. ",
"");
I_Method1(bool, contains, IN, const osg::Vec3 &, v,
__bool__contains__C5_Vec3_R1,
"Returns true if this bounding box contains the specified coordinate. ",
"");
I_PublicMemberProperty(osg::Vec3, _min);
I_PublicMemberProperty(osg::Vec3, _max);
END_REFLECTOR