osgText.TextBase

class osgText.TextBase
Represents

c++ class

Wraps

osgText::TextBase

Bases

osg.Drawable

Methods:

:setColor(osg.Vec4 color)

Параметры

color (osg.Vec4) –

:getColor()

Тип результата

osg.Vec4

:setFont(osgText.Font font)

Параметры

font (osgText.Font) –

:setFontFile(std.string fontfile)

Параметры

fontfile (std.string) –

:setFontResolution(unsigned width, unsigned height)

Параметры
  • width (unsigned) –

  • height (unsigned) –

:getFontWidth()

Тип результата

unsigned

:getFontHeight()

Тип результата

unsigned

:setText(std.string text)

Параметры

text (std.string) –

:setText(std.string text, osgText.String.Encoding encoding)

Параметры
:update()

:setCharacterSize(double height, double ratio)

Параметры
  • height (double) –

  • ratio (double) –

:getCharacterHeight()

Тип результата

double

:getCharacterAspectRatio()

Тип результата

double

:setCharacterSizeMode(osgText.TextBase.CharacterSizeMode mode)

Параметры

mode (osgText.TextBase.CharacterSizeMode) –

:getCharacterSizeMode()

Тип результата

osgText.TextBase.CharacterSizeMode

:setMaximumWidth(double width)

Параметры

width (double) –

:getMaximumWidth()

Тип результата

double

:setMaximumHeight(double height)

Параметры

height (double) –

:getMaximumHeight()

Тип результата

double

:setLineSpacing(double lineSpacing)

Параметры

lineSpacing (double) –

:getLineSpacing()

Тип результата

double

:setPosition(osg.Vec3 pos)

Параметры

pos (osg.Vec3) –

:getPosition()

Тип результата

osg.Vec3

:setAlignment(osgText.TextBase.AlignmentType alignment)

Параметры

alignment (osgText.TextBase.AlignmentType) –

:getAlignment()

Тип результата

osgText.TextBase.AlignmentType

:setAxisAlignment(osgText.TextBase.AxisAlignment alignment)

Параметры

alignment (osgText.TextBase.AxisAlignment) –

:getAxisAlignment()

Тип результата

osgText.TextBase.AxisAlignment

:setRotation(osg.Quat quat)

Параметры

quat (osg.Quat) –

:getRotation()

Тип результата

osg.Quat

:setAutoRotateToScreen(bool autoRotateToScreen)

Параметры

autoRotateToScreen (bool) –

:getAutoRotateToScreen()

Тип результата

bool

:setLayout(osgText.TextBase.Layout layout)

Параметры

layout (osgText.TextBase.Layout) –

:getLayout()

Тип результата

osgText.TextBase.Layout

:setDrawMode(unsigned mask)

Параметры

mask (unsigned) –

:getDrawMode()

Тип результата

unsigned

:setBoundingBoxMargin(double margin)

Параметры

margin (double) –

:getBoundingBoxMargin()

Тип результата

double

:setBoundingBoxColor(osg.Vec4 color)

Параметры

color (osg.Vec4) –

:getBoundingBoxColor()

Тип результата

osg.Vec4

:setKerningType(osgText.KerningType type)

Параметры

type (osgText.KerningType) –

:getKerningType()

Тип результата

osgText.KerningType

:getLineCount()

Тип результата

unsigned