Updated wrappers

This commit is contained in:
Robert Osfield
2007-12-10 16:21:13 +00:00
parent a59790ed6e
commit 1dcb6cc4fd
6 changed files with 1039 additions and 322 deletions

View File

@@ -19,6 +19,7 @@
#include <osg/Texture>
#include <osg/Vec2>
#include <osgText/Font>
#include <osgText/KerningType>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
@@ -537,10 +538,3 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture)
__void__setThreadSafeRefUnref__bool);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::KerningType)
I_DeclaringFile("osgText/Font");
I_EnumLabel(osgText::KERNING_DEFAULT);
I_EnumLabel(osgText::KERNING_UNFITTED);
I_EnumLabel(osgText::KERNING_NONE);
END_REFLECTOR

View File

@@ -0,0 +1,415 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Array>
#include <osg/BoundingBox>
#include <osg/CopyOp>
#include <osg/Geometry>
#include <osg/Object>
#include <osg/Vec2>
#include <osgText/Font3D>
#include <osgText/KerningType>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
TYPE_NAME_ALIAS(OpenThreads::Mutex, osgText::Font3D::Font3DMutex)
BEGIN_OBJECT_REFLECTOR(osgText::Font3D)
I_DeclaringFile("osgText/Font3D");
I_BaseType(osg::Object);
I_ConstructorWithDefaults1(IN, osgText::Font3D::Font3DImplementation *, implementation, 0,
Properties::NON_EXPLICIT,
____Font3D__Font3DImplementation_P1,
"",
"");
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 &, x,
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 *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
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(std::string, getFileName,
Properties::VIRTUAL,
__std_string__getFileName,
"",
"");
I_Method0(unsigned int, getFontWidth,
Properties::NON_VIRTUAL,
__unsigned_int__getFontWidth,
"Set the pixel width and height hint. ",
"");
I_Method0(unsigned int, getFontHeight,
Properties::NON_VIRTUAL,
__unsigned_int__getFontHeight,
"",
"");
I_Method0(unsigned int, getFontDepth,
Properties::NON_VIRTUAL,
__unsigned_int__getFontDepth,
"",
"");
I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType,
Properties::VIRTUAL,
__osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType,
"Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ",
"");
I_Method1(osgText::Font3D::Glyph3D *, getGlyph, IN, unsigned int, charcode,
Properties::VIRTUAL,
__Glyph3D_P1__getGlyph__unsigned_int,
"Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ",
"");
I_Method0(bool, hasVertical,
Properties::VIRTUAL,
__bool__hasVertical,
"Return true if this font provides vertical alignments and spacing or glyphs. ",
"");
I_Method0(float, getScale,
Properties::VIRTUAL,
__float__getScale,
"Return the scale to apply on the glyph to have a charactere size equal to 1. ",
"");
I_Method1(void, setImplementation, IN, osgText::Font3D::Font3DImplementation *, implementation,
Properties::NON_VIRTUAL,
__void__setImplementation__Font3DImplementation_P1,
"",
"");
I_Method0(osgText::Font3D::Font3DImplementation *, getImplementation,
Properties::NON_VIRTUAL,
__Font3DImplementation_P1__getImplementation,
"",
"");
I_Method0(const osgText::Font3D::Font3DImplementation *, getImplementation,
Properties::NON_VIRTUAL,
__C5_Font3DImplementation_P1__getImplementation,
"",
"");
I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe,
Properties::VIRTUAL,
__void__setThreadSafeRefUnref__bool,
"Set whether to use a mutex to ensure ref() and unref(). ",
"");
I_StaticMethod0(osgText::Font3D::Font3DMutex *, getSerializeFontCallsMutex,
__Font3DMutex_P1__getSerializeFontCallsMutex_S,
"Get the mutex that enables the serialization of calls to this font. ",
"");
I_ProtectedMethod2(void, addGlyph, IN, unsigned int, charcode, IN, osgText::Font3D::Glyph3D *, glyph,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__addGlyph__unsigned_int__Glyph3D_P1,
"",
"");
I_SimpleProperty(std::string, FileName,
__std_string__getFileName,
0);
I_SimpleProperty(unsigned int, FontDepth,
__unsigned_int__getFontDepth,
0);
I_SimpleProperty(unsigned int, FontHeight,
__unsigned_int__getFontHeight,
0);
I_SimpleProperty(unsigned int, FontWidth,
__unsigned_int__getFontWidth,
0);
I_SimpleProperty(osgText::Font3D::Font3DImplementation *, Implementation,
__Font3DImplementation_P1__getImplementation,
__void__setImplementation__Font3DImplementation_P1);
I_SimpleProperty(float, Scale,
__float__getScale,
0);
I_SimpleProperty(bool, ThreadSafeRefUnref,
0,
__void__setThreadSafeRefUnref__bool);
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font3D::Font3DImplementation)
I_DeclaringFile("osgText/Font3D");
I_BaseType(osg::Referenced);
I_Constructor0(____Font3DImplementation,
"",
"");
I_Method0(std::string, getFileName,
Properties::PURE_VIRTUAL,
__std_string__getFileName,
"",
"");
I_Method1(osgText::Font3D::Glyph3D *, getGlyph, IN, unsigned int, charcode,
Properties::PURE_VIRTUAL,
__Glyph3D_P1__getGlyph__unsigned_int,
"Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ",
"");
I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType,
Properties::PURE_VIRTUAL,
__osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType,
"Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ",
"");
I_Method0(bool, hasVertical,
Properties::PURE_VIRTUAL,
__bool__hasVertical,
"Return true if this font provides vertical alignments and spacing or glyphs. ",
"");
I_Method0(float, getScale,
Properties::PURE_VIRTUAL,
__float__getScale,
"",
"");
I_Method1(void, setFontWidth, IN, unsigned int, width,
Properties::NON_VIRTUAL,
__void__setFontWidth__unsigned_int,
"",
"");
I_Method1(void, setFontHeight, IN, unsigned int, height,
Properties::NON_VIRTUAL,
__void__setFontHeight__unsigned_int,
"",
"");
I_Method1(void, setFontDepth, IN, unsigned int, depth,
Properties::NON_VIRTUAL,
__void__setFontDepth__unsigned_int,
"",
"");
I_SimpleProperty(std::string, FileName,
__std_string__getFileName,
0);
I_SimpleProperty(unsigned int, FontDepth,
0,
__void__setFontDepth__unsigned_int);
I_SimpleProperty(unsigned int, FontHeight,
0,
__void__setFontHeight__unsigned_int);
I_SimpleProperty(unsigned int, FontWidth,
0,
__void__setFontWidth__unsigned_int);
I_SimpleProperty(float, Scale,
__float__getScale,
0);
I_PublicMemberProperty(osgText::Font3D *, _facade);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::Font3D::Glyph3D)
I_DeclaringFile("osgText/Font3D");
I_BaseType(osg::Referenced);
I_Constructor1(IN, unsigned int, glyphCode,
Properties::NON_EXPLICIT,
____Glyph3D__unsigned_int,
"",
"");
I_Method0(unsigned int, getGlyphCode,
Properties::NON_VIRTUAL,
__unsigned_int__getGlyphCode,
"return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ",
"");
I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing,
Properties::NON_VIRTUAL,
__void__setHorizontalBearing__C5_osg_Vec2_R1,
"",
"");
I_Method0(const osg::Vec2 &, getHorizontalBearing,
Properties::NON_VIRTUAL,
__C5_osg_Vec2_R1__getHorizontalBearing,
"",
"");
I_Method1(void, setHorizontalAdvance, IN, float, advance,
Properties::NON_VIRTUAL,
__void__setHorizontalAdvance__float,
"",
"");
I_Method0(float, getHorizontalAdvance,
Properties::NON_VIRTUAL,
__float__getHorizontalAdvance,
"",
"");
I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing,
Properties::NON_VIRTUAL,
__void__setVerticalBearing__C5_osg_Vec2_R1,
"",
"");
I_Method0(const osg::Vec2 &, getVerticalBearing,
Properties::NON_VIRTUAL,
__C5_osg_Vec2_R1__getVerticalBearing,
"",
"");
I_Method1(void, setVerticalAdvance, IN, float, advance,
Properties::NON_VIRTUAL,
__void__setVerticalAdvance__float,
"",
"");
I_Method0(float, getVerticalAdvance,
Properties::NON_VIRTUAL,
__float__getVerticalAdvance,
"",
"");
I_Method1(void, setBoundingBox, IN, osg::BoundingBox &, bb,
Properties::NON_VIRTUAL,
__void__setBoundingBox__osg_BoundingBox_R1,
"",
"");
I_Method0(const osg::BoundingBox &, getBoundingBox,
Properties::NON_VIRTUAL,
__C5_osg_BoundingBox_R1__getBoundingBox,
"",
"");
I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe,
Properties::VIRTUAL,
__void__setThreadSafeRefUnref__bool,
"Set whether to use a mutex to ensure ref() and unref() are thread safe. ",
"");
I_Method0(osg::Geometry::PrimitiveSetList &, getFrontPrimitiveSetList,
Properties::NON_VIRTUAL,
__osg_Geometry_PrimitiveSetList_R1__getFrontPrimitiveSetList,
"Get the PrimitiveSetList for the front face. ",
"");
I_Method0(osg::Geometry::PrimitiveSetList &, getWallPrimitiveSetList,
Properties::NON_VIRTUAL,
__osg_Geometry_PrimitiveSetList_R1__getWallPrimitiveSetList,
"Get the PrimitiveSetList for the wall face. ",
"");
I_Method0(osg::Geometry::PrimitiveSetList &, getBackPrimitiveSetList,
Properties::NON_VIRTUAL,
__osg_Geometry_PrimitiveSetList_R1__getBackPrimitiveSetList,
"Get et the PrimitiveSetList for the back face. ",
"");
I_Method1(void, setVertexArray, IN, osg::Vec3Array *, va,
Properties::NON_VIRTUAL,
__void__setVertexArray__osg_Vec3Array_P1,
"Set the VertexArray of the glyph. ",
"");
I_Method0(osg::Vec3Array *, getVertexArray,
Properties::NON_VIRTUAL,
__osg_Vec3Array_P1__getVertexArray,
"Get the VertexArray of the glyph. ",
"");
I_Method0(osg::Vec3Array *, getNormalArray,
Properties::NON_VIRTUAL,
__osg_Vec3Array_P1__getNormalArray,
"Get the NormalArray for the wall face. ",
"");
I_Method0(float, getHorizontalWidth,
Properties::NON_VIRTUAL,
__float__getHorizontalWidth,
"",
"");
I_Method0(float, getHorizontalHeight,
Properties::NON_VIRTUAL,
__float__getHorizontalHeight,
"",
"");
I_Method0(float, getVerticalWidth,
Properties::NON_VIRTUAL,
__float__getVerticalWidth,
"",
"");
I_Method0(float, getVerticalHeight,
Properties::NON_VIRTUAL,
__float__getVerticalHeight,
"",
"");
I_Method1(void, setWidth, IN, float, width,
Properties::NON_VIRTUAL,
__void__setWidth__float,
"",
"");
I_Method0(float, getWidth,
Properties::NON_VIRTUAL,
__float__getWidth,
"",
"");
I_Method1(void, setHeight, IN, float, height,
Properties::NON_VIRTUAL,
__void__setHeight__float,
"",
"");
I_Method0(float, getHeight,
Properties::NON_VIRTUAL,
__float__getHeight,
"",
"");
I_SimpleProperty(osg::Geometry::PrimitiveSetList &, BackPrimitiveSetList,
__osg_Geometry_PrimitiveSetList_R1__getBackPrimitiveSetList,
0);
I_SimpleProperty(osg::BoundingBox &, BoundingBox,
0,
__void__setBoundingBox__osg_BoundingBox_R1);
I_SimpleProperty(osg::Geometry::PrimitiveSetList &, FrontPrimitiveSetList,
__osg_Geometry_PrimitiveSetList_R1__getFrontPrimitiveSetList,
0);
I_SimpleProperty(unsigned int, GlyphCode,
__unsigned_int__getGlyphCode,
0);
I_SimpleProperty(float, Height,
__float__getHeight,
__void__setHeight__float);
I_SimpleProperty(float, HorizontalAdvance,
__float__getHorizontalAdvance,
__void__setHorizontalAdvance__float);
I_SimpleProperty(const osg::Vec2 &, HorizontalBearing,
__C5_osg_Vec2_R1__getHorizontalBearing,
__void__setHorizontalBearing__C5_osg_Vec2_R1);
I_SimpleProperty(float, HorizontalHeight,
__float__getHorizontalHeight,
0);
I_SimpleProperty(float, HorizontalWidth,
__float__getHorizontalWidth,
0);
I_SimpleProperty(osg::Vec3Array *, NormalArray,
__osg_Vec3Array_P1__getNormalArray,
0);
I_SimpleProperty(bool, ThreadSafeRefUnref,
0,
__void__setThreadSafeRefUnref__bool);
I_SimpleProperty(osg::Vec3Array *, VertexArray,
__osg_Vec3Array_P1__getVertexArray,
__void__setVertexArray__osg_Vec3Array_P1);
I_SimpleProperty(float, VerticalAdvance,
__float__getVerticalAdvance,
__void__setVerticalAdvance__float);
I_SimpleProperty(const osg::Vec2 &, VerticalBearing,
__C5_osg_Vec2_R1__getVerticalBearing,
__void__setVerticalBearing__C5_osg_Vec2_R1);
I_SimpleProperty(float, VerticalHeight,
__float__getVerticalHeight,
0);
I_SimpleProperty(float, VerticalWidth,
__float__getVerticalWidth,
0);
I_SimpleProperty(osg::Geometry::PrimitiveSetList &, WallPrimitiveSetList,
__osg_Geometry_PrimitiveSetList_R1__getWallPrimitiveSetList,
0);
I_SimpleProperty(float, Width,
__float__getWidth,
__void__setWidth__float);
END_REFLECTOR

View File

@@ -0,0 +1,29 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osgText/KerningType>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osgText::KerningType)
I_DeclaringFile("osgText/KerningType");
I_EnumLabel(osgText::KERNING_DEFAULT);
I_EnumLabel(osgText::KERNING_UNFITTED);
I_EnumLabel(osgText::KERNING_NONE);
END_REFLECTOR

View File

@@ -10,18 +10,14 @@
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/BoundingBox>
#include <osg/CopyOp>
#include <osg/Drawable>
#include <osg/Object>
#include <osg/PrimitiveSet>
#include <osg/Quat>
#include <osg/RenderInfo>
#include <osg/State>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osgText/Font>
#include <osgText/String>
#include <osgText/Text>
// Must undefine IN and OUT macros defined in Windows headers
@@ -34,59 +30,6 @@
TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap)
BEGIN_ENUM_REFLECTOR(osgText::Text::CharacterSizeMode)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::OBJECT_COORDS);
I_EnumLabel(osgText::Text::SCREEN_COORDS);
I_EnumLabel(osgText::Text::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::Text::AlignmentType)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::LEFT_TOP);
I_EnumLabel(osgText::Text::LEFT_CENTER);
I_EnumLabel(osgText::Text::LEFT_BOTTOM);
I_EnumLabel(osgText::Text::CENTER_TOP);
I_EnumLabel(osgText::Text::CENTER_CENTER);
I_EnumLabel(osgText::Text::CENTER_BOTTOM);
I_EnumLabel(osgText::Text::RIGHT_TOP);
I_EnumLabel(osgText::Text::RIGHT_CENTER);
I_EnumLabel(osgText::Text::RIGHT_BOTTOM);
I_EnumLabel(osgText::Text::LEFT_BASE_LINE);
I_EnumLabel(osgText::Text::CENTER_BASE_LINE);
I_EnumLabel(osgText::Text::RIGHT_BASE_LINE);
I_EnumLabel(osgText::Text::LEFT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::CENTER_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::RIGHT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::BASE_LINE);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::Text::AxisAlignment)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::XY_PLANE);
I_EnumLabel(osgText::Text::REVERSED_XY_PLANE);
I_EnumLabel(osgText::Text::XZ_PLANE);
I_EnumLabel(osgText::Text::REVERSED_XZ_PLANE);
I_EnumLabel(osgText::Text::YZ_PLANE);
I_EnumLabel(osgText::Text::REVERSED_YZ_PLANE);
I_EnumLabel(osgText::Text::SCREEN);
I_EnumLabel(osgText::Text::USER_DEFINED_ROTATION);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::Text::Layout)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::LEFT_TO_RIGHT);
I_EnumLabel(osgText::Text::RIGHT_TO_LEFT);
I_EnumLabel(osgText::Text::VERTICAL);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::Text::DrawModeMask)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::TEXT);
I_EnumLabel(osgText::Text::BOUNDINGBOX);
I_EnumLabel(osgText::Text::ALIGNMENT);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropType)
I_DeclaringFile("osgText/Text");
I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_RIGHT);
@@ -118,7 +61,7 @@ END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::Text)
I_DeclaringFile("osgText/Text");
I_BaseType(osg::Drawable);
I_BaseType(osgText::TextBase);
I_Constructor0(____Text,
"",
"");
@@ -166,171 +109,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__C5_Font_P1__getFont,
"Get the font. ",
"Return 0 if default is being used. ");
I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height,
Properties::NON_VIRTUAL,
__void__setFontResolution__unsigned_int__unsigned_int,
"Set the Font reference width and height resolution in texels. ",
"Note, the size may not be supported by current font, the closest supported font size will be selected. ");
I_Method0(unsigned int, getFontWidth,
Properties::NON_VIRTUAL,
__unsigned_int__getFontWidth,
"",
"");
I_Method0(unsigned int, getFontHeight,
Properties::NON_VIRTUAL,
__unsigned_int__getFontHeight,
"",
"");
I_Method1(void, setText, IN, const osgText::String &, text,
Properties::NON_VIRTUAL,
__void__setText__C5_String_R1,
"Set the text using a osgText::String. ",
"");
I_Method1(void, setText, IN, const std::string &, text,
Properties::NON_VIRTUAL,
__void__setText__C5_std_string_R1,
"Set the text using a std::string, which is converted to an internal TextString. ",
"");
I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding,
Properties::NON_VIRTUAL,
__void__setText__C5_std_string_R1__String_Encoding,
"Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ",
"The encoding parameter specificies which Unicode encodeding is used in the std::string. ");
I_Method1(void, setText, IN, const wchar_t *, text,
Properties::NON_VIRTUAL,
__void__setText__C5_wchar_t_P1,
"Set the text using a wchar_t string, which is converted to an internal TextString. ",
"");
I_Method0(osgText::String &, getText,
Properties::NON_VIRTUAL,
__String_R1__getText,
"Get the text string. ",
"Note, if you modify the string you must call Text::update() for the internal glyph reprentation to be updated. ");
I_Method0(const osgText::String &, getText,
Properties::NON_VIRTUAL,
__C5_String_R1__getText,
"Get the const text string. ",
"");
I_Method0(void, update,
Properties::NON_VIRTUAL,
__void__update,
"update internal glyph respresnetation used for rendering, and bounding volume. ",
"");
I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f,
Properties::NON_VIRTUAL,
__void__setCharacterSize__float__float,
"Set the rendered character size in object coordinates. ",
"");
I_Method0(float, getCharacterHeight,
Properties::NON_VIRTUAL,
__float__getCharacterHeight,
"",
"");
I_Method0(float, getCharacterAspectRatio,
Properties::NON_VIRTUAL,
__float__getCharacterAspectRatio,
"",
"");
I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode,
Properties::NON_VIRTUAL,
__void__setCharacterSizeMode__CharacterSizeMode,
"Set how the CharacterSize value relates to the final rendered character. ",
"");
I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode,
Properties::NON_VIRTUAL,
__CharacterSizeMode__getCharacterSizeMode,
"Get the CharacterSizeMode. ",
"");
I_Method1(void, setMaximumWidth, IN, float, maximumWidth,
Properties::NON_VIRTUAL,
__void__setMaximumWidth__float,
"Set the maximum width of the text box. ",
"With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum width is set, lines can be as long as they need be to fit thre required text ");
I_Method0(float, getMaximumWidth,
Properties::NON_VIRTUAL,
__float__getMaximumWidth,
"Get the maximim width of the text box. ",
"");
I_Method1(void, setMaximumHeight, IN, float, maximumHeight,
Properties::NON_VIRTUAL,
__void__setMaximumHeight__float,
"Set the maximum height of the text box. ",
"With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum height is set, lines can be as long as they need be to fit the required text ");
I_Method0(float, getMaximumHeight,
Properties::NON_VIRTUAL,
__float__getMaximumHeight,
"Get the maximum height of the text box. ",
"");
I_Method1(void, setLineSpacing, IN, float, lineSpacing,
Properties::NON_VIRTUAL,
__void__setLineSpacing__float,
"Set the line spacing of the text box, given as a percentage of the character height. ",
"The default value is 0 for backward compatibility. For longer paragraphs of text, a value of at least 25% (i.e. set line spacing to 0.25) is recommended. ");
I_Method0(float, getLineSpacing,
Properties::NON_VIRTUAL,
__float__getLineSpacing,
"Get the line spacing of the text box. ",
"");
I_Method1(void, setPosition, IN, const osg::Vec3 &, pos,
Properties::NON_VIRTUAL,
__void__setPosition__C5_osg_Vec3_R1,
"Set the position of text. ",
"");
I_Method0(const osg::Vec3 &, getPosition,
Properties::NON_VIRTUAL,
__C5_osg_Vec3_R1__getPosition,
"Get the position of text. ",
"");
I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment,
Properties::NON_VIRTUAL,
__void__setAlignment__AlignmentType,
"",
"");
I_Method0(osgText::Text::AlignmentType, getAlignment,
Properties::NON_VIRTUAL,
__AlignmentType__getAlignment,
"",
"");
I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis,
Properties::NON_VIRTUAL,
__void__setAxisAlignment__AxisAlignment,
"",
"");
I_Method0(osgText::Text::AxisAlignment, getAxisAlignment,
Properties::NON_VIRTUAL,
__AxisAlignment__getAxisAlignment,
"",
"");
I_Method1(void, setRotation, IN, const osg::Quat &, quat,
Properties::NON_VIRTUAL,
__void__setRotation__C5_osg_Quat_R1,
"",
"");
I_Method0(const osg::Quat &, getRotation,
Properties::NON_VIRTUAL,
__C5_osg_Quat_R1__getRotation,
"",
"");
I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen,
Properties::NON_VIRTUAL,
__void__setAutoRotateToScreen__bool,
"",
"");
I_Method0(bool, getAutoRotateToScreen,
Properties::NON_VIRTUAL,
__bool__getAutoRotateToScreen,
"",
"");
I_Method1(void, setLayout, IN, osgText::Text::Layout, layout,
Properties::NON_VIRTUAL,
__void__setLayout__Layout,
"",
"");
I_Method0(osgText::Text::Layout, getLayout,
Properties::NON_VIRTUAL,
__Layout__getLayout,
"",
"");
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
Properties::NON_VIRTUAL,
__void__setColor__C5_osg_Vec4_R1,
@@ -341,16 +119,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__C5_osg_Vec4_R1__getColor,
"",
"");
I_Method1(void, setDrawMode, IN, unsigned int, mode,
Properties::NON_VIRTUAL,
__void__setDrawMode__unsigned_int,
"",
"");
I_Method0(unsigned int, getDrawMode,
Properties::NON_VIRTUAL,
__unsigned_int__getDrawMode,
"",
"");
I_Method1(void, setBackdropType, IN, osgText::Text::BackdropType, type,
Properties::NON_VIRTUAL,
__void__setBackdropType__BackdropType,
@@ -436,21 +204,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__C5_osg_Vec4_R1__getColorGradientTopRight,
"",
"");
I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType,
Properties::NON_VIRTUAL,
__void__setKerningType__KerningType,
"",
"");
I_Method0(osgText::KerningType, getKerningType,
Properties::NON_VIRTUAL,
__KerningType__getKerningType,
"",
"");
I_Method0(unsigned int, getLineCount,
Properties::NON_VIRTUAL,
__unsigned_int__getLineCount,
"Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ",
"");
I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
Properties::VIRTUAL,
__void__drawImplementation__osg_RenderInfo_R1,
@@ -506,11 +259,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap,
"",
"");
I_Method0(osg::BoundingBox, computeBound,
Properties::VIRTUAL,
__osg_BoundingBox__computeBound,
"Compute the bounding box around Drawables's geometry. ",
"");
I_ProtectedMethod0(osgText::Font *, getActiveFont,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
@@ -530,7 +278,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
"",
"");
I_ProtectedMethod0(void, computeGlyphRepresentation,
Properties::NON_VIRTUAL,
Properties::VIRTUAL,
Properties::NON_CONST,
__void__computeGlyphRepresentation,
"",
@@ -541,14 +289,8 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__bool__computeAverageGlyphWidthAndHeight__float_R1__float_R1,
"",
"");
I_ProtectedMethod0(void, computePositions,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__computePositions,
"",
"");
I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID,
Properties::NON_VIRTUAL,
Properties::VIRTUAL,
Properties::CONST,
__void__computePositions__unsigned_int,
"",
@@ -643,15 +385,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
__void__convertRgbToHsv__float__float,
"",
"");
I_SimpleProperty(osgText::Text::AlignmentType, Alignment,
__AlignmentType__getAlignment,
__void__setAlignment__AlignmentType);
I_SimpleProperty(bool, AutoRotateToScreen,
__bool__getAutoRotateToScreen,
__void__setAutoRotateToScreen__bool);
I_SimpleProperty(osgText::Text::AxisAlignment, AxisAlignment,
__AxisAlignment__getAxisAlignment,
__void__setAxisAlignment__AxisAlignment);
I_SimpleProperty(const osg::Vec4 &, BackdropColor,
__C5_osg_Vec4_R1__getBackdropColor,
__void__setBackdropColor__C5_osg_Vec4_R1);
@@ -670,15 +403,6 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
I_SimpleProperty(float, BackdropVerticalOffset,
__float__getBackdropVerticalOffset,
0);
I_SimpleProperty(float, CharacterAspectRatio,
__float__getCharacterAspectRatio,
0);
I_SimpleProperty(float, CharacterHeight,
__float__getCharacterHeight,
0);
I_SimpleProperty(osgText::Text::CharacterSizeMode, CharacterSizeMode,
__CharacterSizeMode__getCharacterSizeMode,
__void__setCharacterSizeMode__CharacterSizeMode);
I_SimpleProperty(const osg::Vec4 &, Color,
__C5_osg_Vec4_R1__getColor,
__void__setColor__C5_osg_Vec4_R1);
@@ -697,45 +421,9 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text)
I_SimpleProperty(const osg::Vec4 &, ColorGradientTopRight,
__C5_osg_Vec4_R1__getColorGradientTopRight,
0);
I_SimpleProperty(unsigned int, DrawMode,
__unsigned_int__getDrawMode,
__void__setDrawMode__unsigned_int);
I_SimpleProperty(osgText::Font *, Font,
0,
__void__setFont__Font_P1);
I_SimpleProperty(unsigned int, FontHeight,
__unsigned_int__getFontHeight,
0);
I_SimpleProperty(unsigned int, FontWidth,
__unsigned_int__getFontWidth,
0);
I_SimpleProperty(osgText::KerningType, KerningType,
__KerningType__getKerningType,
__void__setKerningType__KerningType);
I_SimpleProperty(osgText::Text::Layout, Layout,
__Layout__getLayout,
__void__setLayout__Layout);
I_SimpleProperty(unsigned int, LineCount,
__unsigned_int__getLineCount,
0);
I_SimpleProperty(float, LineSpacing,
__float__getLineSpacing,
__void__setLineSpacing__float);
I_SimpleProperty(float, MaximumHeight,
__float__getMaximumHeight,
__void__setMaximumHeight__float);
I_SimpleProperty(float, MaximumWidth,
__float__getMaximumWidth,
__void__setMaximumWidth__float);
I_SimpleProperty(const osg::Vec3 &, Position,
__C5_osg_Vec3_R1__getPosition,
__void__setPosition__C5_osg_Vec3_R1);
I_SimpleProperty(const osg::Quat &, Rotation,
__C5_osg_Quat_R1__getRotation,
__void__setRotation__C5_osg_Quat_R1);
I_SimpleProperty(const osgText::String &, Text,
__C5_String_R1__getText,
__void__setText__C5_String_R1);
I_SimpleProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap,
__C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap,
0);

View File

@@ -0,0 +1,184 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/Drawable>
#include <osg/Object>
#include <osg/PrimitiveSet>
#include <osg/RenderInfo>
#include <osg/State>
#include <osgText/Font3D>
#include <osgText/Text3D>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osgText::Text3D::RenderMode)
I_DeclaringFile("osgText/Text3D");
I_EnumLabel(osgText::Text3D::PER_FACE);
I_EnumLabel(osgText::Text3D::PER_GLYPH);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::Text3D)
I_DeclaringFile("osgText/Text3D");
I_BaseType(osgText::TextBase);
I_Constructor0(____Text3D,
"",
"");
I_ConstructorWithDefaults2(IN, const osgText::Text3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____Text3D__C5_Text3D_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_Method0(float, getCharacterDepth,
Properties::NON_VIRTUAL,
__float__getCharacterDepth,
"Get the Charactere Depth of text. ",
"");
I_Method1(void, setCharacterDepth, IN, float, characterDepth,
Properties::NON_VIRTUAL,
__void__setCharacterDepth__float,
"Set the Charactere Depth of text. ",
"");
I_Method0(osgText::Text3D::RenderMode, getRenderMode,
Properties::NON_VIRTUAL,
__RenderMode__getRenderMode,
"Get the render mode used to render the text. ",
"");
I_Method1(void, setRenderMode, IN, osgText::Text3D::RenderMode, renderMode,
Properties::NON_VIRTUAL,
__void__setRenderMode__RenderMode,
"Set the render mode used to render the text. ",
"");
I_MethodWithDefaults1(void, setFont, IN, osgText::Font3D *, font, 0,
Properties::NON_VIRTUAL,
__void__setFont__Font3D_P1,
"Set the Font to use to render the text. ",
"setFont(0) sets the use of the default font. ");
I_Method1(void, setFont, IN, const std::string &, fontfile,
Properties::NON_VIRTUAL,
__void__setFont__C5_std_string_R1,
"Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ",
"See the osgText::readFontFile function for how the font file will be located. ");
I_Method0(const osgText::Font3D *, getFont,
Properties::NON_VIRTUAL,
__C5_Font3D_P1__getFont,
"Get the font. ",
"Return 0 if default is being used. ");
I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
Properties::VIRTUAL,
__void__drawImplementation__osg_RenderInfo_R1,
"Draw the text. ",
"");
I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x,
Properties::VIRTUAL,
__bool__supports__C5_osg_Drawable_AttributeFunctor_R1,
"return false, osgText::Text does not support accept(AttributeFunctor&). ",
"");
I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x,
Properties::VIRTUAL,
__bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1,
"return true, osgText::Text does support accept(ConstAttributeFunctor&). ",
"");
I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x,
Properties::VIRTUAL,
__bool__supports__C5_osg_PrimitiveFunctor_R1,
"return true, osgText::Text does support accept(PrimitiveFunctor&) . ",
"");
I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe,
Properties::VIRTUAL,
__void__setThreadSafeRefUnref__bool,
"Set whether to use a mutex to ensure ref() and unref() are thread safe. ",
"");
I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize,
Properties::VIRTUAL,
__void__resizeGLObjectBuffers__unsigned_int,
"Resize any per context GLObject buffers to specified size. ",
"");
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0,
Properties::VIRTUAL,
__void__releaseGLObjects__osg_State_P1,
"If State is non-zero, this function releases OpenGL objects for the specified graphics context. ",
"Otherwise, releases OpenGL objexts for all graphics contexts. ");
I_ProtectedMethod1(void, renderPerGlyph, IN, osg::State &, state,
Properties::NON_VIRTUAL,
Properties::CONST,
__void__renderPerGlyph__osg_State_R1,
"",
"");
I_ProtectedMethod1(void, renderPerFace, IN, osg::State &, state,
Properties::NON_VIRTUAL,
Properties::CONST,
__void__renderPerFace__osg_State_R1,
"",
"");
I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator,
"",
"");
I_ProtectedMethod0(void, computeGlyphRepresentation,
Properties::VIRTUAL,
Properties::NON_CONST,
__void__computeGlyphRepresentation,
"",
"");
I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID,
Properties::VIRTUAL,
Properties::CONST,
__void__computePositions__unsigned_int,
"",
"");
I_SimpleProperty(float, CharacterDepth,
__float__getCharacterDepth,
__void__setCharacterDepth__float);
I_SimpleProperty(osgText::Font3D *, Font,
0,
__void__setFont__Font3D_P1);
I_SimpleProperty(osgText::Text3D::RenderMode, RenderMode,
__RenderMode__getRenderMode,
__void__setRenderMode__RenderMode);
I_SimpleProperty(bool, ThreadSafeRefUnref,
0,
__void__setThreadSafeRefUnref__bool);
END_REFLECTOR

View File

@@ -0,0 +1,407 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/BoundingBox>
#include <osg/CopyOp>
#include <osg/Object>
#include <osg/Quat>
#include <osg/State>
#include <osg/Vec3>
#include <osgText/KerningType>
#include <osgText/String>
#include <osgText/TextBase>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osgText::TextBase::CharacterSizeMode)
I_DeclaringFile("osgText/TextBase");
I_EnumLabel(osgText::TextBase::OBJECT_COORDS);
I_EnumLabel(osgText::TextBase::SCREEN_COORDS);
I_EnumLabel(osgText::TextBase::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::TextBase::AlignmentType)
I_DeclaringFile("osgText/TextBase");
I_EnumLabel(osgText::TextBase::LEFT_TOP);
I_EnumLabel(osgText::TextBase::LEFT_CENTER);
I_EnumLabel(osgText::TextBase::LEFT_BOTTOM);
I_EnumLabel(osgText::TextBase::CENTER_TOP);
I_EnumLabel(osgText::TextBase::CENTER_CENTER);
I_EnumLabel(osgText::TextBase::CENTER_BOTTOM);
I_EnumLabel(osgText::TextBase::RIGHT_TOP);
I_EnumLabel(osgText::TextBase::RIGHT_CENTER);
I_EnumLabel(osgText::TextBase::RIGHT_BOTTOM);
I_EnumLabel(osgText::TextBase::LEFT_BASE_LINE);
I_EnumLabel(osgText::TextBase::CENTER_BASE_LINE);
I_EnumLabel(osgText::TextBase::RIGHT_BASE_LINE);
I_EnumLabel(osgText::TextBase::LEFT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::TextBase::CENTER_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::TextBase::RIGHT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::TextBase::BASE_LINE);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::TextBase::AxisAlignment)
I_DeclaringFile("osgText/TextBase");
I_EnumLabel(osgText::TextBase::XY_PLANE);
I_EnumLabel(osgText::TextBase::REVERSED_XY_PLANE);
I_EnumLabel(osgText::TextBase::XZ_PLANE);
I_EnumLabel(osgText::TextBase::REVERSED_XZ_PLANE);
I_EnumLabel(osgText::TextBase::YZ_PLANE);
I_EnumLabel(osgText::TextBase::REVERSED_YZ_PLANE);
I_EnumLabel(osgText::TextBase::SCREEN);
I_EnumLabel(osgText::TextBase::USER_DEFINED_ROTATION);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::TextBase::Layout)
I_DeclaringFile("osgText/TextBase");
I_EnumLabel(osgText::TextBase::LEFT_TO_RIGHT);
I_EnumLabel(osgText::TextBase::RIGHT_TO_LEFT);
I_EnumLabel(osgText::TextBase::VERTICAL);
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osgText::TextBase::DrawModeMask)
I_DeclaringFile("osgText/TextBase");
I_EnumLabel(osgText::TextBase::TEXT);
I_EnumLabel(osgText::TextBase::BOUNDINGBOX);
I_EnumLabel(osgText::TextBase::ALIGNMENT);
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::TextBase)
I_DeclaringFile("osgText/TextBase");
I_BaseType(osg::Drawable);
I_Constructor0(____TextBase,
"",
"");
I_ConstructorWithDefaults2(IN, const osgText::TextBase &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____TextBase__C5_TextBase_R1__C5_osg_CopyOp_R1,
"",
"");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_osg_Object_P1,
"",
"");
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_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_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height,
Properties::NON_VIRTUAL,
__void__setFontResolution__unsigned_int__unsigned_int,
"Set the Font reference width and height resolution in texels. ",
"Note, the size may not be supported by current font, the closest supported font size will be selected. ");
I_Method0(unsigned int, getFontWidth,
Properties::NON_VIRTUAL,
__unsigned_int__getFontWidth,
"",
"");
I_Method0(unsigned int, getFontHeight,
Properties::NON_VIRTUAL,
__unsigned_int__getFontHeight,
"",
"");
I_Method1(void, setText, IN, const osgText::String &, text,
Properties::NON_VIRTUAL,
__void__setText__C5_String_R1,
"Set the text using a osgText::String. ",
"");
I_Method1(void, setText, IN, const std::string &, text,
Properties::NON_VIRTUAL,
__void__setText__C5_std_string_R1,
"Set the text using a std::string, which is converted to an internal TextString. ",
"");
I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding,
Properties::NON_VIRTUAL,
__void__setText__C5_std_string_R1__String_Encoding,
"Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ",
"The encoding parameter specificies which Unicode encodeding is used in the std::string. ");
I_Method1(void, setText, IN, const wchar_t *, text,
Properties::NON_VIRTUAL,
__void__setText__C5_wchar_t_P1,
"Set the text using a wchar_t string, which is converted to an internal TextString. ",
"");
I_Method0(osgText::String &, getText,
Properties::NON_VIRTUAL,
__String_R1__getText,
"Get the text string. ",
"Note, if you modify the string you must call Text::update() for the internal glyph reprentation to be updated. ");
I_Method0(const osgText::String &, getText,
Properties::NON_VIRTUAL,
__C5_String_R1__getText,
"Get the const text string. ",
"");
I_Method0(void, update,
Properties::NON_VIRTUAL,
__void__update,
"update internal glyph respresentation used for rendering, and bounding volume. ",
"");
I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f,
Properties::NON_VIRTUAL,
__void__setCharacterSize__float__float,
"Set the rendered character size in object coordinates. ",
"");
I_Method0(float, getCharacterHeight,
Properties::NON_VIRTUAL,
__float__getCharacterHeight,
"",
"");
I_Method0(float, getCharacterAspectRatio,
Properties::NON_VIRTUAL,
__float__getCharacterAspectRatio,
"",
"");
I_Method1(void, setCharacterSizeMode, IN, osgText::TextBase::CharacterSizeMode, mode,
Properties::NON_VIRTUAL,
__void__setCharacterSizeMode__CharacterSizeMode,
"Set how the CharacterSize value relates to the final rendered character. ",
"");
I_Method0(osgText::TextBase::CharacterSizeMode, getCharacterSizeMode,
Properties::NON_VIRTUAL,
__CharacterSizeMode__getCharacterSizeMode,
"Get the CharacterSizeMode. ",
"");
I_Method1(void, setMaximumWidth, IN, float, maximumWidth,
Properties::NON_VIRTUAL,
__void__setMaximumWidth__float,
"Set the maximum width of the text box. ",
"With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum width is set, lines can be as long as they need be to fit thre required text ");
I_Method0(float, getMaximumWidth,
Properties::NON_VIRTUAL,
__float__getMaximumWidth,
"Get the maximim width of the text box. ",
"");
I_Method1(void, setMaximumHeight, IN, float, maximumHeight,
Properties::NON_VIRTUAL,
__void__setMaximumHeight__float,
"Set the maximum height of the text box. ",
"With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum height is set, lines can be as long as they need be to fit the required text ");
I_Method0(float, getMaximumHeight,
Properties::NON_VIRTUAL,
__float__getMaximumHeight,
"Get the maximum height of the text box. ",
"");
I_Method1(void, setLineSpacing, IN, float, lineSpacing,
Properties::NON_VIRTUAL,
__void__setLineSpacing__float,
"Set the line spacing of the text box, given as a percentage of the character height. ",
"The default value is 0 for backward compatibility. For longer paragraphs of text, a value of at least 25% (i.e. set line spacing to 0.25) is recommended. ");
I_Method0(float, getLineSpacing,
Properties::NON_VIRTUAL,
__float__getLineSpacing,
"Get the line spacing of the text box. ",
"");
I_Method1(void, setPosition, IN, const osg::Vec3 &, pos,
Properties::NON_VIRTUAL,
__void__setPosition__C5_osg_Vec3_R1,
"Set the position of text. ",
"");
I_Method0(const osg::Vec3 &, getPosition,
Properties::NON_VIRTUAL,
__C5_osg_Vec3_R1__getPosition,
"Get the position of text. ",
"");
I_Method1(void, setAlignment, IN, osgText::TextBase::AlignmentType, alignment,
Properties::NON_VIRTUAL,
__void__setAlignment__AlignmentType,
"",
"");
I_Method0(osgText::TextBase::AlignmentType, getAlignment,
Properties::NON_VIRTUAL,
__AlignmentType__getAlignment,
"",
"");
I_Method1(void, setAxisAlignment, IN, osgText::TextBase::AxisAlignment, axis,
Properties::NON_VIRTUAL,
__void__setAxisAlignment__AxisAlignment,
"",
"");
I_Method0(osgText::TextBase::AxisAlignment, getAxisAlignment,
Properties::NON_VIRTUAL,
__AxisAlignment__getAxisAlignment,
"",
"");
I_Method1(void, setRotation, IN, const osg::Quat &, quat,
Properties::NON_VIRTUAL,
__void__setRotation__C5_osg_Quat_R1,
"",
"");
I_Method0(const osg::Quat &, getRotation,
Properties::NON_VIRTUAL,
__C5_osg_Quat_R1__getRotation,
"",
"");
I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen,
Properties::NON_VIRTUAL,
__void__setAutoRotateToScreen__bool,
"",
"");
I_Method0(bool, getAutoRotateToScreen,
Properties::NON_VIRTUAL,
__bool__getAutoRotateToScreen,
"",
"");
I_Method1(void, setLayout, IN, osgText::TextBase::Layout, layout,
Properties::NON_VIRTUAL,
__void__setLayout__Layout,
"",
"");
I_Method0(osgText::TextBase::Layout, getLayout,
Properties::NON_VIRTUAL,
__Layout__getLayout,
"",
"");
I_Method1(void, setDrawMode, IN, unsigned int, mode,
Properties::NON_VIRTUAL,
__void__setDrawMode__unsigned_int,
"",
"");
I_Method0(unsigned int, getDrawMode,
Properties::NON_VIRTUAL,
__unsigned_int__getDrawMode,
"",
"");
I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType,
Properties::NON_VIRTUAL,
__void__setKerningType__KerningType,
"",
"");
I_Method0(osgText::KerningType, getKerningType,
Properties::NON_VIRTUAL,
__KerningType__getKerningType,
"",
"");
I_Method0(unsigned int, getLineCount,
Properties::NON_VIRTUAL,
__unsigned_int__getLineCount,
"Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ",
"");
I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe,
Properties::VIRTUAL,
__void__setThreadSafeRefUnref__bool,
"Set whether to use a mutex to ensure ref() and unref() are thread safe. ",
"");
I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize,
Properties::VIRTUAL,
__void__resizeGLObjectBuffers__unsigned_int,
"Resize any per context GLObject buffers to specified size. ",
"");
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0,
Properties::VIRTUAL,
__void__releaseGLObjects__osg_State_P1,
"If State is non-zero, this function releases OpenGL objects for the specified graphics context. ",
"Otherwise, releases OpenGL objexts for all graphics contexts. ");
I_Method0(osg::BoundingBox, computeBound,
Properties::VIRTUAL,
__osg_BoundingBox__computeBound,
"Compute the bounding box around Drawables's geometry. ",
"");
I_ProtectedMethod3(void, positionCursor, IN, const osg::Vec2 &, endOfLine_coords, IN, osg::Vec2 &, cursor, IN, unsigned int, linelength,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__positionCursor__C5_osg_Vec2_R1__osg_Vec2_R1__unsigned_int,
"",
"");
I_ProtectedMethod0(void, computePositions,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__computePositions,
"",
"");
I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator,
"",
"");
I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID,
Properties::PURE_VIRTUAL,
Properties::CONST,
__void__computePositions__unsigned_int,
"",
"");
I_ProtectedMethod0(void, computeGlyphRepresentation,
Properties::PURE_VIRTUAL,
Properties::NON_CONST,
__void__computeGlyphRepresentation,
"",
"");
I_SimpleProperty(osgText::TextBase::AlignmentType, Alignment,
__AlignmentType__getAlignment,
__void__setAlignment__AlignmentType);
I_SimpleProperty(bool, AutoRotateToScreen,
__bool__getAutoRotateToScreen,
__void__setAutoRotateToScreen__bool);
I_SimpleProperty(osgText::TextBase::AxisAlignment, AxisAlignment,
__AxisAlignment__getAxisAlignment,
__void__setAxisAlignment__AxisAlignment);
I_SimpleProperty(float, CharacterAspectRatio,
__float__getCharacterAspectRatio,
0);
I_SimpleProperty(float, CharacterHeight,
__float__getCharacterHeight,
0);
I_SimpleProperty(osgText::TextBase::CharacterSizeMode, CharacterSizeMode,
__CharacterSizeMode__getCharacterSizeMode,
__void__setCharacterSizeMode__CharacterSizeMode);
I_SimpleProperty(unsigned int, DrawMode,
__unsigned_int__getDrawMode,
__void__setDrawMode__unsigned_int);
I_SimpleProperty(unsigned int, FontHeight,
__unsigned_int__getFontHeight,
0);
I_SimpleProperty(unsigned int, FontWidth,
__unsigned_int__getFontWidth,
0);
I_SimpleProperty(osgText::KerningType, KerningType,
__KerningType__getKerningType,
__void__setKerningType__KerningType);
I_SimpleProperty(osgText::TextBase::Layout, Layout,
__Layout__getLayout,
__void__setLayout__Layout);
I_SimpleProperty(unsigned int, LineCount,
__unsigned_int__getLineCount,
0);
I_SimpleProperty(float, LineSpacing,
__float__getLineSpacing,
__void__setLineSpacing__float);
I_SimpleProperty(float, MaximumHeight,
__float__getMaximumHeight,
__void__setMaximumHeight__float);
I_SimpleProperty(float, MaximumWidth,
__float__getMaximumWidth,
__void__setMaximumWidth__float);
I_SimpleProperty(const osg::Vec3 &, Position,
__C5_osg_Vec3_R1__getPosition,
__void__setPosition__C5_osg_Vec3_R1);
I_SimpleProperty(const osg::Quat &, Rotation,
__C5_osg_Quat_R1__getRotation,
__void__setRotation__C5_osg_Quat_R1);
I_SimpleProperty(const osgText::String &, Text,
__C5_String_R1__getText,
__void__setText__C5_String_R1);
I_SimpleProperty(bool, ThreadSafeRefUnref,
0,
__void__setThreadSafeRefUnref__bool);
END_REFLECTOR