From e078aad61f500bf3bd40ab2c50e5738216890802 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jul 2009 15:55:50 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgText/Text.cpp | 6 ++++++ src/osgWrappers/osgText/TextBase.cpp | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp index a7d916ec6..5e739abf1 100644 --- a/src/osgWrappers/osgText/Text.cpp +++ b/src/osgWrappers/osgText/Text.cpp @@ -312,6 +312,12 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text) __void__computeBackdropBoundingBox, "", ""); + I_ProtectedMethod0(void, computeBoundingBoxMargin, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeBoundingBoxMargin, + "", + ""); I_ProtectedMethod0(void, computeColorGradients, Properties::NON_VIRTUAL, Properties::CONST, diff --git a/src/osgWrappers/osgText/TextBase.cpp b/src/osgWrappers/osgText/TextBase.cpp index ecb03019a..b81a40123 100644 --- a/src/osgWrappers/osgText/TextBase.cpp +++ b/src/osgWrappers/osgText/TextBase.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -78,6 +79,7 @@ BEGIN_ENUM_REFLECTOR(osgText::TextBase::DrawModeMask) I_DeclaringFile("osgText/TextBase"); I_EnumLabel(osgText::TextBase::TEXT); I_EnumLabel(osgText::TextBase::BOUNDINGBOX); + I_EnumLabel(osgText::TextBase::FILLEDBOUNDINGBOX); I_EnumLabel(osgText::TextBase::ALIGNMENT); END_REFLECTOR @@ -281,6 +283,26 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::TextBase) __unsigned_int__getDrawMode, "", ""); + I_Method1(void, setBoundingBoxMargin, IN, float, margin, + Properties::NON_VIRTUAL, + __void__setBoundingBoxMargin__float, + "", + ""); + I_Method0(float, getBoundingBoxMargin, + Properties::NON_VIRTUAL, + __float__getBoundingBoxMargin, + "", + ""); + I_Method1(void, setBoundingBoxColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setBoundingBoxColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getBoundingBoxColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getBoundingBoxColor, + "", + ""); I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType, Properties::NON_VIRTUAL, __void__setKerningType__KerningType, @@ -355,6 +377,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::TextBase) I_SimpleProperty(osgText::TextBase::AxisAlignment, AxisAlignment, __AxisAlignment__getAxisAlignment, __void__setAxisAlignment__AxisAlignment); + I_SimpleProperty(const osg::Vec4 &, BoundingBoxColor, + __C5_osg_Vec4_R1__getBoundingBoxColor, + __void__setBoundingBoxColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, BoundingBoxMargin, + __float__getBoundingBoxMargin, + __void__setBoundingBoxMargin__float); I_SimpleProperty(float, CharacterAspectRatio, __float__getCharacterAspectRatio, 0);