From e883663072e59cd10805917e3c5436f7871b05a9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 17 Dec 2007 10:22:41 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgSim/ShapeAttribute.cpp | 2 +- src/osgWrappers/osgTerrain/Locator.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/osgWrappers/osgSim/ShapeAttribute.cpp b/src/osgWrappers/osgSim/ShapeAttribute.cpp index 9650df31f..2320916b6 100644 --- a/src/osgWrappers/osgSim/ShapeAttribute.cpp +++ b/src/osgWrappers/osgSim/ShapeAttribute.cpp @@ -50,7 +50,7 @@ BEGIN_VALUE_REFLECTOR(osgSim::ShapeAttribute) ""); I_Constructor2(IN, const char *, name, IN, const char *, value, ____ShapeAttribute__C5_char_P1__C5_char_P1, - "", + "Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings. ", ""); I_Constructor1(IN, const osgSim::ShapeAttribute &, sa, Properties::NON_EXPLICIT, diff --git a/src/osgWrappers/osgTerrain/Locator.cpp b/src/osgWrappers/osgTerrain/Locator.cpp index 00652a5fd..54768280f 100644 --- a/src/osgWrappers/osgTerrain/Locator.cpp +++ b/src/osgWrappers/osgTerrain/Locator.cpp @@ -157,6 +157,16 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::Locator) __bool__getDefinedInFile, "", ""); + I_Method1(void, setTransformScaledByResolution, IN, bool, scaledByResolution, + Properties::NON_VIRTUAL, + __void__setTransformScaledByResolution__bool, + "", + ""); + I_Method0(bool, getTransformScaledByResolution, + Properties::NON_VIRTUAL, + __bool__getTransformScaledByResolution, + "", + ""); I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgTerrain::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgTerrain::Locator &, destination, IN, osg::Vec3d &, destinationNDC, __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, "", @@ -179,5 +189,8 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::Locator) I_SimpleProperty(const osg::Matrixd &, Transform, __C5_osg_Matrixd_R1__getTransform, __void__setTransform__C5_osg_Matrixd_R1); + I_SimpleProperty(bool, TransformScaledByResolution, + __bool__getTransformScaledByResolution, + __void__setTransformScaledByResolution__bool); END_REFLECTOR