0% found this document useful (0 votes)
55 views

Text Module

This document provides documentation on the Text module in OpenDX, which displays text in 3D space. The Text module takes string, position, height, font, direction, and up inputs to render the text. It outputs a color field containing the rendered text. Key inputs include the string to display, its position in 3D space, orientation vectors to control text direction and font strokes, and options for height and font. The Text module creates new position, connection, and color field components to render the text graphics.

Uploaded by

Matija Šoban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Text Module

This document provides documentation on the Text module in OpenDX, which displays text in 3D space. The Text module takes string, position, height, font, direction, and up inputs to render the text. It outputs a color field containing the rendered text. Key inputs include the string to display, its position in 3D space, orientation vectors to control text direction and font strokes, and options for height and font. The Text module creates new position, connection, and color field components to render the text graphics.

Uploaded by

Matija Šoban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

User's Reference - Text

Page 1 of 2

Text
Category
Annotation
Function
Displays text.
Syntax
text = Text(string, position, height, font, direction, up);

Inputs
Name
string

Type
string or field

Default
none

Description
text to be displayed

position

vector

[0 0 0]

placement of displayed text

height

scalar

font

string

"variable"

height of the text (in world


coordinates)
text font

direction

vector

[1 0 0]

orientation of the baseline

up

vector

perpendicular to
baseline

orientation of vertical strokes of text


font

Outputs
Name
text

Type
Description
color field renderable string object

Functional Details
This module produces text that is displayed in space.
string
specifies the text to be displayed. If the parameter value is a string, that string is
displayed. If the parameter value is a field, its "data" component must be
TYPE_STRING. The data may be position or connection dependent:

position dependent: each string in the "data" component is displayed at its


corresponding position.
connection dependent: each string is displayed at the center of its corresponding
connection element.

position

specifies in world units the placement of the displayed text. It is used only when
string is not a field.

height

specifies the height of the text, in world units.

file://C:\Program Files\OpenDX\html\pages\refgu156.htm

7.11.2011

User's Reference - Text

font

Page 2 of 2

specifies the font used for displayed text. You can specify any of the defined fonts
supplied with Data Explorer. These include a variable-width font ("variable," the
default) and a fixed-width font ("fixed"):
area
cyril_d
fixed
gothiceng_t
gothicger_t

gothicit_t
greek_d
greek_s
italic_d
italic_t

pitman
roman_d
roman_dser
roman_s
roman_tser

roman_ext
script_d
script_s
variable

For more information, see Appendix E. "Data Explorer Fonts" in IBM Visualization
Data Explorer User's Guide.
direction specifies the orientation of the baseline (see Note in next description). For example, a

value of 10 for this parameter specifies that the text is aligned with the x-axis.
up

specifies the orientation of the vertical strokes of the font used for the displayed text.
Note: For string data in a field, the orientation of baseline and text can specified by
using "tangents" and "binormals" components. In that way, each string can be oriented
individually. These components should have the same dependency as "data" The
"tangents" component corresponds to direction and "binormals" to up.
The parameter specifications will override those of the field components.

Components
Creates new "positions," "connections," and "colors" components.
Example Visual Program
UsingTextAndTextGlyphs.net

See Also
Caption, Color, Format

[ OpenDX Home at IBM | OpenDX.org ]

file://C:\Program Files\OpenDX\html\pages\refgu156.htm

7.11.2011

You might also like