public class SoAsciiText extends SoShape
SoText2
, 3D text can be rotated, scaled, lighted, and textured, just like all other 3D shapes. In contrast with SoText3
, this 3D Ascii text cannot be extruded.
The text origin is at (0,0,0) after applying the current transformation. The scale of the text is affected by the size field of the current SoFont
as well as the current transformation.
SoAsciiText
uses the current material when rendering. Textures are applied to ascii text as follows. On the front face of the text, the texture origin is at the base point of the first string; the base point is at the lower left for justification LEFT, at the lower right for RIGHT, and at the lower center for CENTER. The texture is scaled equally in both S and T dimensions, with the font height representing 1 unit. S increases to the right on the front face.
Shape Antialiasing type is SoShape.TEXT
.
File format/default:
AsciiText {
string | "" |
spacing | 1 |
justification | LEFT |
width | 0 |
Action behavior:
SoGLRenderAction
Draws text based on the current font, transformation, drawing style, material, texture, complexity, and so on.
SoRayPickAction
Performs a pick on the text. The string index and character position are available from the SoTextDetail
.
SoGetBoundingBoxAction
Computes the bounding box that encloses the text.
SoCallbackAction
If any triangle callbacks are registered with the action, they will be invoked for each successive triangle used to approximate the text geometry.
See also:
SoFont
, SoFontStyle
, SoText2
, SoText3
, SoTextDetail
, SoFullSceneAntialiasing
Modifier and Type | Class and Description |
---|---|
static class |
SoAsciiText.Justifications |
SoShape.ShapeTypes
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoAsciiText.Justifications> |
justification
Indicates placement and alignment of strings.
|
SoSFFloat |
spacing
Defines the distance (in the negative y direction) between the base points of successive strings, measured with respect to the current font height.
|
SoMFString |
string
The text string(s) to display.
|
SoMFFloat |
width
Defines the width of each text string.
|
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoAsciiText()
Creates an ascii text node with default settings.
|
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailable
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoMFString string
public final SoSFFloat spacing
public final SoSFEnum<SoAsciiText.Justifications> justification
public final SoMFFloat width
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com