Text Module
Text Module
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]
height
scalar
font
string
"variable"
direction
vector
[1 0 0]
up
vector
perpendicular to
baseline
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
specifies in world units the placement of the displayed text. It is used only when
string is not a field.
height
file://C:\Program Files\OpenDX\html\pages\refgu156.htm
7.11.2011
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
file://C:\Program Files\OpenDX\html\pages\refgu156.htm
7.11.2011