From 51f872c279f6da2dd5d74f1d69f39ddd3276cd18 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Mar 2008 16:05:20 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/LineSegment.cpp | 22 ++++++- src/osgWrappers/osgSim/ObjectRecordData.cpp | 67 +++++++++++++++++++++ 2 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 src/osgWrappers/osgSim/ObjectRecordData.cpp diff --git a/src/osgWrappers/osg/LineSegment.cpp b/src/osgWrappers/osg/LineSegment.cpp index fe1ca6353..9519ffbd1 100644 --- a/src/osgWrappers/osg/LineSegment.cpp +++ b/src/osgWrappers/osg/LineSegment.cpp @@ -14,7 +14,8 @@ #include #include #include -#include +#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -83,6 +84,11 @@ BEGIN_OBJECT_REFLECTOR(osg::LineSegment) __bool__intersect__C5_BoundingBox_R1__float_R1__float_R1, "return true if segment intersects BoundingBox and return the intersection ratios. ", ""); + I_Method3(bool, intersect, IN, const osg::BoundingBox &, bb, IN, double &, r1, IN, double &, r2, + Properties::NON_VIRTUAL, + __bool__intersect__C5_BoundingBox_R1__double_R1__double_R1, + "return true if segment intersects BoundingBox and return the intersection ratios. ", + ""); I_Method1(bool, intersect, IN, const osg::BoundingSphere &, bs, Properties::NON_VIRTUAL, __bool__intersect__C5_BoundingSphere_R1, @@ -93,9 +99,19 @@ BEGIN_OBJECT_REFLECTOR(osg::LineSegment) __bool__intersect__C5_BoundingSphere_R1__float_R1__float_R1, "return true if segment intersects BoundingSphere and return the intersection ratio. ", ""); - I_Method4(bool, intersect, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, IN, float &, r, + I_Method3(bool, intersect, IN, const osg::BoundingSphere &, bs, IN, double &, r1, IN, double &, r2, Properties::NON_VIRTUAL, - __bool__intersect__C5_Vec3_R1__C5_Vec3_R1__C5_Vec3_R1__float_R1, + __bool__intersect__C5_BoundingSphere_R1__double_R1__double_R1, + "return true if segment intersects BoundingSphere and return the intersection ratio. ", + ""); + I_Method4(bool, intersect, IN, const osg::Vec3f &, v1, IN, const osg::Vec3f &, v2, IN, const osg::Vec3f &, v3, IN, float &, r, + Properties::NON_VIRTUAL, + __bool__intersect__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1__float_R1, + "return true if segment intersects triangle and set ratio long segment. ", + ""); + I_Method4(bool, intersect, IN, const osg::Vec3d &, v1, IN, const osg::Vec3d &, v2, IN, const osg::Vec3d &, v3, IN, double &, r, + Properties::NON_VIRTUAL, + __bool__intersect__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1__double_R1, "return true if segment intersects triangle and set ratio long segment. ", ""); I_Method2(void, mult, IN, const osg::LineSegment &, seg, IN, const osg::Matrix &, m, diff --git a/src/osgWrappers/osgSim/ObjectRecordData.cpp b/src/osgWrappers/osgSim/ObjectRecordData.cpp new file mode 100644 index 000000000..15bc6f015 --- /dev/null +++ b/src/osgWrappers/osgSim/ObjectRecordData.cpp @@ -0,0 +1,67 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData) + I_DeclaringFile("osgSim/ObjectRecordData"); + I_BaseType(osg::Object); + I_Constructor0(____ObjectRecordData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ObjectRecordData &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ObjectRecordData__C5_ObjectRecordData_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 &, copyop, + 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_PublicMemberProperty(unsigned int, _flags); + I_PublicMemberProperty(short, _relativePriority); + I_PublicMemberProperty(unsigned short, _transparency); + I_PublicMemberProperty(short, _effectID1); + I_PublicMemberProperty(short, _effectID2); + I_PublicMemberProperty(short, _significance); +END_REFLECTOR +