ScreenTextOverlay
Textual foreground, that just displays all strings according to a simple style.
Inheritance
Code
XML encoding
<ScreenTextOverlay text='' color='1,1,1,1' bgColor='0,0,0,0' shadowColor='0,0,0,1' shadowOffset='1,-1' borderColor='-1,-1,-1,0' borderOffset='4,4' pointSize='12.0' family='' horizontalAlign='LEFT' verticalAlign='TOP' textMargin='0,0' enabled='TRUE' exclusive='FALSE' logFeature='' />
Classic encoding
ScreenTextOverlay { text [""] color 1,1,1,1 bgColor 0,0,0,0 shadowColor 0,0,0,1 shadowOffset 1,-1 borderColor -1,-1,-1,0 borderOffset 4,4 pointSize 12.0 family "" horizontalAlign "LEFT" verticalAlign "TOP" textMargin 0,0 enabled TRUE exclusive FALSE logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
text | MFString | inputOutput | The text, each string corresponds to one line. | |||
color | SFColorRGBA | inputOutput | 1,1,1,1 | Color of the text. | ||
bgColor | SFColorRGBA | inputOutput | 0,0,0,0 | Color of the background. | ||
shadowColor | SFColorRGBA | inputOutput | 0,0,0,1 | Color of the text shadows. | ||
shadowOffset | SFVec2f | inputOutput | 1,-1 | Offset of the text shadows, in pixels. | ||
borderColor | SFColorRGBA | inputOutput | -1,-1,-1,0 | Color of the border, ignored if negative. | ||
borderOffset | SFVec2f | inputOutput | 4,4 | Offset of the border in pixels. | ||
pointSize | SFFloat | initializeOnly | 12.0 | Height of a single line (only used if family not empty). | ||
family | SFString | initializeOnly | The font family to be used, e.g. "SANS", default if unset. | |||
horizontalAlign | SFString | inputOutput | LEFT | [LEFT, MIDDLE, RIGHT] | Simple form of layout management, default is left. | |
verticalAlign | SFString | inputOutput | TOP | [TOP, CENTER, BOTTOM] | Simple form of layout management, default is top. | |
textMargin | SFVec2f | inputOutput | 0,0 | Text margin in pixels. | ||
enabled | SFBool | inputOutput | TRUE | flag to enable/disable the overlay | ||
exclusive | SFBool | inputOutput | FALSE | defines if the overlay should be exclusive visible or not | ||
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |