titles

titles

The titles module provides a means to place text in the non-transformable 2D overlay of the viewer. The text is not transformed by viewer transformations and is positioned using sliders in the titles user interface.

The title text supports an expression editor with variables that can be connected via ports. Text formatting can be performed with a limited subset of Markdown and HTML syntax, including bold, italic, headings, lists, monospaced text, horizontal rules, colored text, font size, and font changes.

Ports

DirectionNameTypeDescription
InputInput StringStringText containing the string used to create the title.
InputNumber 1NumberA value to use as a variable.
InputNumber 2NumberA value to use as a variable.
InputString 1StringA string to use as a variable.
OutputOutput ObjectRenderableA renderable object displaying the title.

Properties

PropertyTypeDescription
TitleExpressionThe Title is the text to use for the Title. Supports variables {N1}, {N2}, and {S1}.

Text Settings

PropertyTypeDescription
Title SizeDoubleThe Title Size determines how large the title text will be.
Title ColorColorThe Title Color is the color to use for the Title.
Title FontFontTitle Font allows the user to alter the basic look of the font.
Title AlignmentHorizontal AlignmentThe horizontal alignment for the title text.

Positioning

PropertyTypeDescription
Anchor SideChoice: Top, BottomThe Anchor Side determines whether the title text is positioned off the top or bottom edge of the viewer.
Anchor MarginDoubleThe Anchor Margin determines how far from the anchor side the near edge of the text will be.
Left MarginDoubleThe Left Margin determines how close to the left edge of the viewer the text is allowed to be.
Right MarginDoubleThe Right Margin determines how close to the right edge of the viewer the text is allowed to be.
RotationDoubleThe Rotation allows you to spin the title text around the center point.
OverlayChoice: Behind Scene, In front of sceneThe Overlay control allows the user to put the title behind the model or in front of it.

Variables

PropertyTypeDescription
N1DoubleThe N1 field is a double value that can be used as the variable {N1} in the expression.
N2DoubleThe N2 field is a double value that can be used as the variable {N2} in the expression.
S1StringThe S1 field is a string value that can be used as the variable {S1} in the expression.