📄 textbase.cpp
字号:
// ***************************************************************************//// 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#endifBEGIN_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_REFLECTORBEGIN_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_REFLECTORBEGIN_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_REFLECTORBEGIN_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_REFLECTORBEGIN_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_REFLECTORBEGIN_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,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -