osgText.TextBase

class osgText.TextBase
Represents:c++ class
Wraps:osgText::TextBase
Bases:osg.Drawable

Methods:

:setColor(osg.Vec4 color)

Parameters:color (osg.Vec4) –
:getColor()

Return type:osg.Vec4
:setFont(osgText.Font font)

Parameters:font (osgText.Font) –
:setFontFile(std.string fontfile)

Parameters:fontfile (std.string) –
:setFontResolution(unsigned width, unsigned height)

Parameters:
  • width (unsigned) –
  • height (unsigned) –
:getFontWidth()

Return type:unsigned
:getFontHeight()

Return type:unsigned
:setText(std.string text)

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

Parameters:
:getText()

Return type:osgText.String
:update()

:setCharacterSize(double height, double ratio)

Parameters:
  • height (double) –
  • ratio (double) –
:getCharacterHeight()

Return type:double
:getCharacterAspectRatio()

Return type:double
:setCharacterSizeMode(osgText.TextBase.CharacterSizeMode mode)

Parameters:mode (osgText.TextBase.CharacterSizeMode) –
:getCharacterSizeMode()

Return type:osgText.TextBase.CharacterSizeMode
:setMaximumWidth(double width)

Parameters:width (double) –
:getMaximumWidth()

Return type:double
:setMaximumHeight(double height)

Parameters:height (double) –
:getMaximumHeight()

Return type:double
:setLineSpacing(double lineSpacing)

Parameters:lineSpacing (double) –
:getLineSpacing()

Return type:double
:setPosition(osg.Vec3 pos)

Parameters:pos (osg.Vec3) –
:getPosition()

Return type:osg.Vec3
:setAlignment(osgText.TextBase.AlignmentType alignment)

Parameters:alignment (osgText.TextBase.AlignmentType) –
:getAlignment()

Return type:osgText.TextBase.AlignmentType
:setAxisAlignment(osgText.TextBase.AxisAlignment alignment)

Parameters:alignment (osgText.TextBase.AxisAlignment) –
:getAxisAlignment()

Return type:osgText.TextBase.AxisAlignment
:setRotation(osg.Quat quat)

Parameters:quat (osg.Quat) –
:getRotation()

Return type:osg.Quat
:setAutoRotateToScreen(bool autoRotateToScreen)

Parameters:autoRotateToScreen (bool) –
:getAutoRotateToScreen()

Return type:bool
:setLayout(osgText.TextBase.Layout layout)

Parameters:layout (osgText.TextBase.Layout) –
:getLayout()

Return type:osgText.TextBase.Layout
:setDrawMode(unsigned mask)

Parameters:mask (unsigned) –
:getDrawMode()

Return type:unsigned
:setBoundingBoxMargin(double margin)

Parameters:margin (double) –
:getBoundingBoxMargin()

Return type:double
:setBoundingBoxColor(osg.Vec4 color)

Parameters:color (osg.Vec4) –
:getBoundingBoxColor()

Return type:osg.Vec4
:setKerningType(osgText.KerningType type)

Parameters:type (osgText.KerningType) –
:getKerningType()

Return type:osgText.KerningType
:getLineCount()

Return type:unsigned
:getCoords()

Return type:osg.Vec3Array
:getCoord(unsigned i)

Parameters:i (unsigned) –
Return type:osg.Vec3
:getMatrix()

Return type:osg.Matrix