Updated wrappers
This commit is contained in:
@@ -11,3 +11,11 @@
|
||||
|
||||
#include <osgText/Export>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,114 +18,128 @@
|
||||
#include <osg/Vec2>
|
||||
#include <osgText/Font>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgText::Font)
|
||||
BaseType(osg::Object);
|
||||
ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0);
|
||||
Method0(osg::Object *, cloneType);
|
||||
Method1(osg::Object *, clone, IN, const osg::CopyOp &, x);
|
||||
Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
|
||||
Method0(const char *, className);
|
||||
Method0(const char *, libraryName);
|
||||
Method0(std::string, getFileName);
|
||||
Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
Method0(unsigned int, getFontWidth);
|
||||
Method0(unsigned int, getFontHeight);
|
||||
Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, KerningType, kerningType);
|
||||
Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode);
|
||||
Method0(bool, hasVertical);
|
||||
Method1(void, setGlyphImageMargin, IN, unsigned int, margin);
|
||||
Method0(unsigned int, getGlyphImageMargin);
|
||||
Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height);
|
||||
Method0(unsigned int, getTextureWidthHint);
|
||||
Method0(unsigned int, getTextureHeightHint);
|
||||
Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode);
|
||||
Method0(osg::Texture::FilterMode, getMinFilterHint);
|
||||
Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode);
|
||||
Method0(osg::Texture::FilterMode, getMagFilterHint);
|
||||
Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation);
|
||||
Method0(osgText::Font::FontImplementation *, getImplementation);
|
||||
Method0(const osgText::Font::FontImplementation *, getImplementation);
|
||||
MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
|
||||
ReadOnlyProperty(std::string, FileName);
|
||||
ReadOnlyProperty(unsigned int, FontHeight);
|
||||
ReadOnlyProperty(unsigned int, FontWidth);
|
||||
Property(unsigned int, GlyphImageMargin);
|
||||
Property(osgText::Font::FontImplementation *, Implementation);
|
||||
Property(osg::Texture::FilterMode, MagFilterHint);
|
||||
Property(osg::Texture::FilterMode, MinFilterHint);
|
||||
ReadOnlyProperty(unsigned int, TextureHeightHint);
|
||||
ReadOnlyProperty(unsigned int, TextureWidthHint);
|
||||
I_BaseType(osg::Object);
|
||||
I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0);
|
||||
I_Method0(osg::Object *, cloneType);
|
||||
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x);
|
||||
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
|
||||
I_Method0(const char *, className);
|
||||
I_Method0(const char *, libraryName);
|
||||
I_Method0(std::string, getFileName);
|
||||
I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
I_Method0(unsigned int, getFontWidth);
|
||||
I_Method0(unsigned int, getFontHeight);
|
||||
I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType);
|
||||
I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode);
|
||||
I_Method0(bool, hasVertical);
|
||||
I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin);
|
||||
I_Method0(unsigned int, getGlyphImageMargin);
|
||||
I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height);
|
||||
I_Method0(unsigned int, getTextureWidthHint);
|
||||
I_Method0(unsigned int, getTextureHeightHint);
|
||||
I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode);
|
||||
I_Method0(osg::Texture::FilterMode, getMinFilterHint);
|
||||
I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode);
|
||||
I_Method0(osg::Texture::FilterMode, getMagFilterHint);
|
||||
I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation);
|
||||
I_Method0(osgText::Font::FontImplementation *, getImplementation);
|
||||
I_Method0(const osgText::Font::FontImplementation *, getImplementation);
|
||||
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
|
||||
I_ReadOnlyProperty(std::string, FileName);
|
||||
I_ReadOnlyProperty(unsigned int, FontHeight);
|
||||
I_ReadOnlyProperty(unsigned int, FontWidth);
|
||||
I_Property(unsigned int, GlyphImageMargin);
|
||||
I_Property(osgText::Font::FontImplementation *, Implementation);
|
||||
I_Property(osg::Texture::FilterMode, MagFilterHint);
|
||||
I_Property(osg::Texture::FilterMode, MinFilterHint);
|
||||
I_ReadOnlyProperty(unsigned int, TextureHeightHint);
|
||||
I_ReadOnlyProperty(unsigned int, TextureWidthHint);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation)
|
||||
BaseType(osg::Referenced);
|
||||
Constructor0();
|
||||
Method0(std::string, getFileName);
|
||||
Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode);
|
||||
Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, KerningType, kerningType);
|
||||
Method0(bool, hasVertical);
|
||||
Method1(void, setFontWidth, IN, unsigned int, width);
|
||||
Method1(void, setFontHeight, IN, unsigned int, height);
|
||||
Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph);
|
||||
ReadOnlyProperty(std::string, FileName);
|
||||
WriteOnlyProperty(unsigned int, FontHeight);
|
||||
WriteOnlyProperty(unsigned int, FontWidth);
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0();
|
||||
I_Method0(std::string, getFileName);
|
||||
I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode);
|
||||
I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType);
|
||||
I_Method0(bool, hasVertical);
|
||||
I_Method1(void, setFontWidth, IN, unsigned int, width);
|
||||
I_Method1(void, setFontHeight, IN, unsigned int, height);
|
||||
I_Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph);
|
||||
I_ReadOnlyProperty(std::string, FileName);
|
||||
I_WriteOnlyProperty(unsigned int, FontHeight);
|
||||
I_WriteOnlyProperty(unsigned int, FontWidth);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph)
|
||||
BaseType(osg::Image);
|
||||
Constructor0();
|
||||
Method0(unsigned int, getGlyphCode);
|
||||
Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing);
|
||||
Method0(const osg::Vec2 &, getHorizontalBearing);
|
||||
Method1(void, setHorizontalAdvance, IN, float, advance);
|
||||
Method0(float, getHorizontalAdvance);
|
||||
Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing);
|
||||
Method0(const osg::Vec2 &, getVerticalBearing);
|
||||
Method1(void, setVerticalAdvance, IN, float, advance);
|
||||
Method0(float, getVerticalAdvance);
|
||||
Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture);
|
||||
Method0(osgText::Font::GlyphTexture *, getTexture);
|
||||
Method0(const osgText::Font::GlyphTexture *, getTexture);
|
||||
Method0(osg::StateSet *, getStateSet);
|
||||
Method0(const osg::StateSet *, getStateSet);
|
||||
Method2(void, setTexturePosition, IN, int, posX, IN, int, posY);
|
||||
Method0(int, getTexturePositionX);
|
||||
Method0(int, getTexturePositionY);
|
||||
Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord);
|
||||
Method0(const osg::Vec2 &, getMinTexCoord);
|
||||
Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord);
|
||||
Method0(const osg::Vec2 &, getMaxTexCoord);
|
||||
Method0(void, subload);
|
||||
Method1(void, draw, IN, osg::State &, state);
|
||||
ReadOnlyProperty(unsigned int, GlyphCode);
|
||||
Property(float, HorizontalAdvance);
|
||||
Property(const osg::Vec2 &, HorizontalBearing);
|
||||
Property(const osg::Vec2 &, MaxTexCoord);
|
||||
Property(const osg::Vec2 &, MinTexCoord);
|
||||
ReadOnlyProperty(osg::StateSet *, StateSet);
|
||||
Property(osgText::Font::GlyphTexture *, Texture);
|
||||
ReadOnlyProperty(int, TexturePositionX);
|
||||
ReadOnlyProperty(int, TexturePositionY);
|
||||
Property(float, VerticalAdvance);
|
||||
Property(const osg::Vec2 &, VerticalBearing);
|
||||
I_BaseType(osg::Image);
|
||||
I_Constructor0();
|
||||
I_Method0(unsigned int, getGlyphCode);
|
||||
I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing);
|
||||
I_Method0(const osg::Vec2 &, getHorizontalBearing);
|
||||
I_Method1(void, setHorizontalAdvance, IN, float, advance);
|
||||
I_Method0(float, getHorizontalAdvance);
|
||||
I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing);
|
||||
I_Method0(const osg::Vec2 &, getVerticalBearing);
|
||||
I_Method1(void, setVerticalAdvance, IN, float, advance);
|
||||
I_Method0(float, getVerticalAdvance);
|
||||
I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture);
|
||||
I_Method0(osgText::Font::GlyphTexture *, getTexture);
|
||||
I_Method0(const osgText::Font::GlyphTexture *, getTexture);
|
||||
I_Method0(osg::StateSet *, getStateSet);
|
||||
I_Method0(const osg::StateSet *, getStateSet);
|
||||
I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY);
|
||||
I_Method0(int, getTexturePositionX);
|
||||
I_Method0(int, getTexturePositionY);
|
||||
I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord);
|
||||
I_Method0(const osg::Vec2 &, getMinTexCoord);
|
||||
I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord);
|
||||
I_Method0(const osg::Vec2 &, getMaxTexCoord);
|
||||
I_Method0(void, subload);
|
||||
I_Method1(void, draw, IN, osg::State &, state);
|
||||
I_ReadOnlyProperty(unsigned int, GlyphCode);
|
||||
I_Property(float, HorizontalAdvance);
|
||||
I_Property(const osg::Vec2 &, HorizontalBearing);
|
||||
I_Property(const osg::Vec2 &, MaxTexCoord);
|
||||
I_Property(const osg::Vec2 &, MinTexCoord);
|
||||
I_ReadOnlyProperty(osg::StateSet *, StateSet);
|
||||
I_Property(osgText::Font::GlyphTexture *, Texture);
|
||||
I_ReadOnlyProperty(int, TexturePositionX);
|
||||
I_ReadOnlyProperty(int, TexturePositionY);
|
||||
I_Property(float, VerticalAdvance);
|
||||
I_Property(const osg::Vec2 &, VerticalBearing);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::GlyphTexture)
|
||||
BaseType(osg::Texture2D);
|
||||
Constructor0();
|
||||
Method0(const char *, className);
|
||||
Method1(int, compare, IN, const osg::StateAttribute &, rhs);
|
||||
Method1(void, setStateSet, IN, osg::StateSet *, stateset);
|
||||
Method0(osg::StateSet *, getStateSet);
|
||||
Method0(const osg::StateSet *, getStateSet);
|
||||
Method1(void, setGlyphImageMargin, IN, unsigned int, margin);
|
||||
Method0(unsigned int, getGlyphImageMargin);
|
||||
Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY);
|
||||
Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY);
|
||||
Method1(void, apply, IN, osg::State &, state);
|
||||
Property(unsigned int, GlyphImageMargin);
|
||||
Property(osg::StateSet *, StateSet);
|
||||
I_BaseType(osg::Texture2D);
|
||||
I_Constructor0();
|
||||
I_Method0(const char *, className);
|
||||
I_Method1(int, compare, IN, const osg::StateAttribute &, rhs);
|
||||
I_Method1(void, setStateSet, IN, osg::StateSet *, stateset);
|
||||
I_Method0(osg::StateSet *, getStateSet);
|
||||
I_Method0(const osg::StateSet *, getStateSet);
|
||||
I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin);
|
||||
I_Method0(unsigned int, getGlyphImageMargin);
|
||||
I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY);
|
||||
I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY);
|
||||
I_Method1(void, apply, IN, osg::State &, state);
|
||||
I_Property(unsigned int, GlyphImageMargin);
|
||||
I_Property(osg::StateSet *, StateSet);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgText::KerningType)
|
||||
I_EnumLabel(osgText::KERNING_DEFAULT);
|
||||
I_EnumLabel(osgText::KERNING_UNFITTED);
|
||||
I_EnumLabel(osgText::KERNING_NONE);
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
@@ -11,31 +11,39 @@
|
||||
|
||||
#include <osgText/String>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgText::String::Encoding)
|
||||
EnumLabel(osgText::String::ENCODING_UNDEFINED);
|
||||
EnumLabel(osgText::String::ENCODING_ASCII);
|
||||
EnumLabel(osgText::String::ENCODING_UTF8);
|
||||
EnumLabel(osgText::String::ENCODING_UTF16);
|
||||
EnumLabel(osgText::String::ENCODING_UTF16_BE);
|
||||
EnumLabel(osgText::String::ENCODING_UTF16_LE);
|
||||
EnumLabel(osgText::String::ENCODING_UTF32);
|
||||
EnumLabel(osgText::String::ENCODING_UTF32_BE);
|
||||
EnumLabel(osgText::String::ENCODING_UTF32_LE);
|
||||
EnumLabel(osgText::String::ENCODING_SIGNATURE);
|
||||
I_EnumLabel(osgText::String::ENCODING_UNDEFINED);
|
||||
I_EnumLabel(osgText::String::ENCODING_ASCII);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF8);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF16);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF16_BE);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF16_LE);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF32);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF32_BE);
|
||||
I_EnumLabel(osgText::String::ENCODING_UTF32_LE);
|
||||
I_EnumLabel(osgText::String::ENCODING_SIGNATURE);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgText::String)
|
||||
BaseType(osg::Referenced);
|
||||
Constructor0();
|
||||
Constructor1(IN, const osgText::String &, str);
|
||||
Constructor1(IN, const std::string &, str);
|
||||
Constructor1(IN, const wchar_t *, text);
|
||||
Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
Method1(void, set, IN, const std::string &, str);
|
||||
Method1(void, set, IN, const wchar_t *, text);
|
||||
Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
Method0(std::string, createUTF8EncodedString);
|
||||
WriteOnlyProperty(const wchar_t *, );
|
||||
BEGIN_OBJECT_REFLECTOR(osgText::String)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0();
|
||||
I_Constructor1(IN, const osgText::String &, str);
|
||||
I_Constructor1(IN, const std::string &, str);
|
||||
I_Constructor1(IN, const wchar_t *, text);
|
||||
I_Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
I_Method1(void, set, IN, const std::string &, str);
|
||||
I_Method1(void, set, IN, const wchar_t *, text);
|
||||
I_Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
I_Method0(std::string, createUTF8EncodedString);
|
||||
I_WriteOnlyProperty(const wchar_t *, );
|
||||
END_REFLECTOR
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::VectorUInt);
|
||||
|
||||
@@ -23,129 +23,137 @@
|
||||
#include <osgText/String>
|
||||
#include <osgText/Text>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osg::StateSet > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap);
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgText::Text::CharacterSizeMode)
|
||||
EnumLabel(osgText::Text::OBJECT_COORDS);
|
||||
EnumLabel(osgText::Text::SCREEN_COORDS);
|
||||
EnumLabel(osgText::Text::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT);
|
||||
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)
|
||||
EnumLabel(osgText::Text::LEFT_TOP);
|
||||
EnumLabel(osgText::Text::LEFT_CENTER);
|
||||
EnumLabel(osgText::Text::LEFT_BOTTOM);
|
||||
EnumLabel(osgText::Text::CENTER_TOP);
|
||||
EnumLabel(osgText::Text::CENTER_CENTER);
|
||||
EnumLabel(osgText::Text::CENTER_BOTTOM);
|
||||
EnumLabel(osgText::Text::RIGHT_TOP);
|
||||
EnumLabel(osgText::Text::RIGHT_CENTER);
|
||||
EnumLabel(osgText::Text::RIGHT_BOTTOM);
|
||||
EnumLabel(osgText::Text::LEFT_BASE_LINE);
|
||||
EnumLabel(osgText::Text::CENTER_BASE_LINE);
|
||||
EnumLabel(osgText::Text::RIGHT_BASE_LINE);
|
||||
EnumLabel(osgText::Text::BASE_LINE);
|
||||
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::BASE_LINE);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgText::Text::AxisAlignment)
|
||||
EnumLabel(osgText::Text::XY_PLANE);
|
||||
EnumLabel(osgText::Text::REVERSED_XY_PLANE);
|
||||
EnumLabel(osgText::Text::XZ_PLANE);
|
||||
EnumLabel(osgText::Text::REVERSED_XZ_PLANE);
|
||||
EnumLabel(osgText::Text::YZ_PLANE);
|
||||
EnumLabel(osgText::Text::REVERSED_YZ_PLANE);
|
||||
EnumLabel(osgText::Text::SCREEN);
|
||||
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);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgText::Text::Layout)
|
||||
EnumLabel(osgText::Text::LEFT_TO_RIGHT);
|
||||
EnumLabel(osgText::Text::RIGHT_TO_LEFT);
|
||||
EnumLabel(osgText::Text::VERTICAL);
|
||||
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)
|
||||
EnumLabel(osgText::Text::TEXT);
|
||||
EnumLabel(osgText::Text::BOUNDINGBOX);
|
||||
EnumLabel(osgText::Text::ALIGNMENT);
|
||||
I_EnumLabel(osgText::Text::TEXT);
|
||||
I_EnumLabel(osgText::Text::BOUNDINGBOX);
|
||||
I_EnumLabel(osgText::Text::ALIGNMENT);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgText::Text)
|
||||
BaseType(osg::Drawable);
|
||||
Constructor0();
|
||||
ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
|
||||
Method0(osg::Object *, cloneType);
|
||||
Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
|
||||
Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
|
||||
Method0(const char *, className);
|
||||
Method0(const char *, libraryName);
|
||||
MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0);
|
||||
Method1(void, setFont, IN, const std::string &, fontfile);
|
||||
Method0(const osgText::Font *, getFont);
|
||||
Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
Method0(unsigned int, getFontWidth);
|
||||
Method0(unsigned int, getFontHeight);
|
||||
Method1(void, setText, IN, const osgText::String &, text);
|
||||
Method1(void, setText, IN, const std::string &, text);
|
||||
Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
Method1(void, setText, IN, const wchar_t *, text);
|
||||
Method0(osgText::String &, getText);
|
||||
Method0(const osgText::String &, getText);
|
||||
Method0(void, update);
|
||||
MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f);
|
||||
Method0(float, getCharacterHeight);
|
||||
Method0(float, getCharacterAspectRatio);
|
||||
Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode);
|
||||
Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode);
|
||||
Method1(void, setMaximumWidth, IN, float, maximumWidth);
|
||||
Method0(float, getMaximumWidth);
|
||||
Method1(void, setMaximumHeight, IN, float, maximumHeight);
|
||||
Method0(float, getMaximumHeight);
|
||||
Method1(void, setPosition, IN, const osg::Vec3 &, pos);
|
||||
Method0(const osg::Vec3 &, getPosition);
|
||||
Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment);
|
||||
Method0(osgText::Text::AlignmentType, getAlignment);
|
||||
Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis);
|
||||
Method1(void, setRotation, IN, const osg::Quat &, quat);
|
||||
Method0(const osg::Quat &, getRotation);
|
||||
Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen);
|
||||
Method0(bool, getAutoRotateToScreen);
|
||||
Method1(void, setLayout, IN, osgText::Text::Layout, layout);
|
||||
Method0(osgText::Text::Layout, getLayout);
|
||||
Method1(void, setColor, IN, const osg::Vec4 &, color);
|
||||
Method0(const osg::Vec4 &, getColor);
|
||||
Method1(void, setDrawMode, IN, unsigned int, mode);
|
||||
Method0(unsigned int, getDrawMode);
|
||||
Method1(void, setKerningType, IN, KerningType, kerningType);
|
||||
Method0(KerningType, getKerningType);
|
||||
Method1(void, drawImplementation, IN, osg::State &, state);
|
||||
Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x);
|
||||
Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x);
|
||||
Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af);
|
||||
Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x);
|
||||
Method1(void, accept, IN, osg::PrimitiveFunctor &, pf);
|
||||
MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
|
||||
Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osg::StateSet *, stateSet);
|
||||
Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap);
|
||||
Method0(osg::BoundingBox, computeBound);
|
||||
Property(osgText::Text::AlignmentType, Alignment);
|
||||
Property(bool, AutoRotateToScreen);
|
||||
WriteOnlyProperty(osgText::Text::AxisAlignment, AxisAlignment);
|
||||
ReadOnlyProperty(float, CharacterAspectRatio);
|
||||
ReadOnlyProperty(float, CharacterHeight);
|
||||
Property(osgText::Text::CharacterSizeMode, CharacterSizeMode);
|
||||
Property(const osg::Vec4 &, Color);
|
||||
Property(unsigned int, DrawMode);
|
||||
WriteOnlyProperty(osgText::Font *, Font);
|
||||
ReadOnlyProperty(unsigned int, FontHeight);
|
||||
ReadOnlyProperty(unsigned int, FontWidth);
|
||||
Property(KerningType, KerningType);
|
||||
Property(osgText::Text::Layout, Layout);
|
||||
Property(float, MaximumHeight);
|
||||
Property(float, MaximumWidth);
|
||||
Property(const osg::Vec3 &, Position);
|
||||
Property(const osg::Quat &, Rotation);
|
||||
Property(const osgText::String &, Text);
|
||||
ReadOnlyProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap);
|
||||
I_BaseType(osg::Drawable);
|
||||
I_Constructor0();
|
||||
I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
|
||||
I_Method0(osg::Object *, cloneType);
|
||||
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
|
||||
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
|
||||
I_Method0(const char *, className);
|
||||
I_Method0(const char *, libraryName);
|
||||
I_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0);
|
||||
I_Method1(void, setFont, IN, const std::string &, fontfile);
|
||||
I_Method0(const osgText::Font *, getFont);
|
||||
I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
|
||||
I_Method0(unsigned int, getFontWidth);
|
||||
I_Method0(unsigned int, getFontHeight);
|
||||
I_Method1(void, setText, IN, const osgText::String &, text);
|
||||
I_Method1(void, setText, IN, const std::string &, text);
|
||||
I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
|
||||
I_Method1(void, setText, IN, const wchar_t *, text);
|
||||
I_Method0(osgText::String &, getText);
|
||||
I_Method0(const osgText::String &, getText);
|
||||
I_Method0(void, update);
|
||||
I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f);
|
||||
I_Method0(float, getCharacterHeight);
|
||||
I_Method0(float, getCharacterAspectRatio);
|
||||
I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode);
|
||||
I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode);
|
||||
I_Method1(void, setMaximumWidth, IN, float, maximumWidth);
|
||||
I_Method0(float, getMaximumWidth);
|
||||
I_Method1(void, setMaximumHeight, IN, float, maximumHeight);
|
||||
I_Method0(float, getMaximumHeight);
|
||||
I_Method1(void, setPosition, IN, const osg::Vec3 &, pos);
|
||||
I_Method0(const osg::Vec3 &, getPosition);
|
||||
I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment);
|
||||
I_Method0(osgText::Text::AlignmentType, getAlignment);
|
||||
I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis);
|
||||
I_Method1(void, setRotation, IN, const osg::Quat &, quat);
|
||||
I_Method0(const osg::Quat &, getRotation);
|
||||
I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen);
|
||||
I_Method0(bool, getAutoRotateToScreen);
|
||||
I_Method1(void, setLayout, IN, osgText::Text::Layout, layout);
|
||||
I_Method0(osgText::Text::Layout, getLayout);
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color);
|
||||
I_Method0(const osg::Vec4 &, getColor);
|
||||
I_Method1(void, setDrawMode, IN, unsigned int, mode);
|
||||
I_Method0(unsigned int, getDrawMode);
|
||||
I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType);
|
||||
I_Method0(osgText::KerningType, getKerningType);
|
||||
I_Method1(void, drawImplementation, IN, osg::State &, state);
|
||||
I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x);
|
||||
I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x);
|
||||
I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af);
|
||||
I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x);
|
||||
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf);
|
||||
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
|
||||
I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osg::StateSet *, stateSet);
|
||||
I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap);
|
||||
I_Method0(osg::BoundingBox, computeBound);
|
||||
I_Property(osgText::Text::AlignmentType, Alignment);
|
||||
I_Property(bool, AutoRotateToScreen);
|
||||
I_WriteOnlyProperty(osgText::Text::AxisAlignment, AxisAlignment);
|
||||
I_ReadOnlyProperty(float, CharacterAspectRatio);
|
||||
I_ReadOnlyProperty(float, CharacterHeight);
|
||||
I_Property(osgText::Text::CharacterSizeMode, CharacterSizeMode);
|
||||
I_Property(const osg::Vec4 &, Color);
|
||||
I_Property(unsigned int, DrawMode);
|
||||
I_WriteOnlyProperty(osgText::Font *, Font);
|
||||
I_ReadOnlyProperty(unsigned int, FontHeight);
|
||||
I_ReadOnlyProperty(unsigned int, FontWidth);
|
||||
I_Property(osgText::KerningType, KerningType);
|
||||
I_Property(osgText::Text::Layout, Layout);
|
||||
I_Property(float, MaximumHeight);
|
||||
I_Property(float, MaximumWidth);
|
||||
I_Property(const osg::Vec3 &, Position);
|
||||
I_Property(const osg::Quat &, Rotation);
|
||||
I_Property(const osgText::String &, Text);
|
||||
I_ReadOnlyProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap);
|
||||
END_REFLECTOR
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs);
|
||||
@@ -159,21 +167,21 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgText::Text::GlyphQuads::Coords3);
|
||||
TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::TexCoords);
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads)
|
||||
Constructor0();
|
||||
Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs);
|
||||
Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs);
|
||||
Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords);
|
||||
Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords);
|
||||
Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
|
||||
Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
|
||||
Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
|
||||
Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
|
||||
Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
|
||||
Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
|
||||
ReadOnlyProperty(osgText::Text::GlyphQuads::Coords2 &, Coords);
|
||||
ReadOnlyProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs);
|
||||
ReadOnlyProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers);
|
||||
ReadOnlyProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords);
|
||||
I_Constructor0();
|
||||
I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs);
|
||||
I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs);
|
||||
I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords);
|
||||
I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords);
|
||||
I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
|
||||
I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
|
||||
I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
|
||||
I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
|
||||
I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
|
||||
I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
|
||||
I_ReadOnlyProperty(osgText::Text::GlyphQuads::Coords2 &, Coords);
|
||||
I_ReadOnlyProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs);
|
||||
I_ReadOnlyProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers);
|
||||
I_ReadOnlyProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osg::StateSet > COMMA osgText::Text::GlyphQuads >);
|
||||
|
||||
Reference in New Issue
Block a user