1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <meta name='title' content='TextStringPrototype.x3d'/> |
6 | <meta name='description' content='Simple Prototype for the display of text strings, combining functionality of Text and FontStyle nodes.'/> |
7 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
8 | <meta name='created' content='16 July 2006'/> |
9 | <meta name='modified' content='22 February 2022'/> |
10 | <meta name='reference' content='https://X3dGraphics.com'/> |
11 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
12 | <meta name='rights' content='Copyright 2006, Daly Realism and Don Brutzman'/> |
13 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
14 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d'/> |
15 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
16 | <meta name='license' content='../license.html'/> |
17 | </head> |
18 | <Scene> |
19 | <WorldInfo title='TextStringPrototype.x3d'/> |
20 | <ProtoDeclare name='TextString'> |
21 | <ProtoInterface> |
22 | <field name='offset' type='SFVec3f' value='0 0 0' accessType='inputOutput'/> |
23 | <field name='string' type='MFString' accessType='inputOutput'/> |
24 | <field name='size' type='SFFloat' value='1.0' accessType='initializeOnly'/> |
25 | <field name='color' type='SFColor' value='0.2 0.6 1' accessType='inputOutput'/> |
26 | <field name='justify' type='MFString' value='"MIDDLE" "MIDDLE"' accessType='initializeOnly'/> |
27 | <field name='style' type='SFString' value='PLAIN' accessType='initializeOnly'/> |
28 | <field name='family' type='MFString' value='"SANS" "SERIF"' accessType='initializeOnly'/> |
29 | </ProtoInterface> |
30 | <ProtoBody> |
31 | <Transform> |
32 | <IS> |
33 | <connect nodeField='translation' protoField='offset'/> |
34 | </IS> |
35 | <Shape> |
36 | <Appearance> |
37 | <Material> |
38 | <IS> |
39 | <connect nodeField='diffuseColor' protoField='color'/> |
40 | </IS> |
41 | </Material> |
42 | </Appearance> |
43 | <Text> |
44 | <IS> |
45 | <connect nodeField='string' protoField='string'/> |
46 | </IS> |
47 | <FontStyle> |
48 | <IS> |
49 | <connect nodeField='family' protoField='family'/> |
50 | <connect nodeField='justify' protoField='justify'/> |
51 | <connect nodeField='size' protoField='size'/> |
52 | <connect nodeField='style' protoField='style'/> |
53 | </IS> |
54 | </FontStyle> |
55 | </Text> |
56 | </Shape> |
57 | </Transform> |
58 | </ProtoBody> |
59 | </ProtoDeclare> |
60 | <ProtoInstance name='TextString' DEF='MyTextStringInstance'> |
61 | <fieldValue name='color' value='0.3 0.7 1'/> |
62 | <fieldValue name='string' value='"This example TextString node" "creates a prototype instance" "that combines functionality" "of Text and FontStyle nodes"'/> |
63 | <fieldValue name='size' value='0.8'/> |
64 | <fieldValue name='style' value='BOLD'/> |
65 | </ProtoInstance> |
66 | </Scene> |
67 | </X3D> |
Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
MyTextStringInstance
ProtoInstance TextString |
No ROUTE connection found for output events from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
<ProtoInstance
name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->