Component Prototype

Description

Text3D Component

 

The Text 3D Component is used to show a text on a rectangular flat area that can be positioned anywhere in 3D space. There are two general solutions to display: Stroke fonts: the characters are defined via line segments or the characters are predefined as small bitmaps and usually stored in a texture buffer.

In-slots

Name

Type

Description

visible***

boolean

The component is shown when true and hidden when false.

transformation***

matrix

This transformation matrix is applied to the component geometry when shown

Out-slots

Name

Type

Description

visible***

boolean

The in-slot is propagated to the out-slot

transformation***

matrix

This transformation matrix corresponds to the output transformation, which combines input transformation with the offset.

Properties

Name

Type

Description

iconFileName*

string

The filename of the icon shown for the component in the authoring environment.

offset***

matrix

The offset transformation matrix between the transformation given by the in-slot and the geometry model

textFileName

string

Name of the text file to be shown

fontFileName

string

Name of the font file to be used.

scaling

float

It is used to scale the text size.

autoscale

boolean

If it is true, the component adjusts the text inside the panel

showBackground

boolean

It is used to show or not the background panel.

panelWidth

float

The width of the background panel.

PanelHeight

float

The height of the background panel.

fontType

int

The type of the text font: 0 for GLUT, and 1 for TXFL.

size

double

Defines the dimension of the objet (default value, 80.0)

Figure Text 3D