<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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 ' >
<head>
<meta name='titlecontent=' TextStringPrototype.x3d '/>
<meta name='descriptioncontent='Simple Prototype for the display of text strings, combining functionality of Text and FontStyle nodes.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='16 July 2006'/>
<meta name='modifiedcontent='22 February 2022'/>
<meta name='referencecontent=' https://X3dGraphics.com '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright 2006, Daly Realism and Don Brutzman'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Index for DEF node: MyTextStringInstance

Index for ProtoDeclare definition: TextString
-->
<Scene>
<WorldInfo title='TextStringPrototype.x3d'/>
<ProtoDeclare name='TextString'>
<ProtoInterface>
<field name='offsettype='SFVec3fvalue='0 0 0accessType='inputOutput'/>
<field name='stringtype='MFStringaccessType='inputOutput'/>
<field name='sizetype='SFFloatvalue='1.0accessType='initializeOnly'/>
<field name='colortype='SFColorvalue='0.2 0.6 1accessType='inputOutput'/>
<field name='justifytype='MFStringvalue='"MIDDLE" "MIDDLE"accessType='initializeOnly'/>
<field name='styletype='SFStringvalue='PLAINaccessType='initializeOnly'/>
<field name='familytype='MFStringvalue='"SANS" "SERIF"accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform>
<IS>
<connect nodeField='translationprotoField='offset'/>
</IS>
<Shape>
<Appearance>
<Material>
<IS>
<connect nodeField='diffuseColorprotoField='color'/>
</IS>
</Material>
</Appearance>
<Text>
<IS>
<connect nodeField='stringprotoField='string'/>
</IS>
<FontStyle>
<IS>
<connect nodeField='familyprotoField='family'/>
<connect nodeField='justifyprotoField='justify'/>
<connect nodeField='sizeprotoField='size'/>
<connect nodeField='styleprotoField='style'/>
</IS>
</FontStyle>
</Text>
</Shape>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='TextStringDEF='MyTextStringInstance'>
<fieldValue name='colorvalue='0.3 0.7 1'/>
<fieldValue name='stringvalue='"This example TextString node" "creates a prototype instance" "that combines functionality" "of Text and FontStyle nodes"'/>
<fieldValue name='sizevalue='0.8'/>
<fieldValue name='stylevalue='BOLD'/>
</ProtoInstance>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF node: MyTextStringInstance

Index for ProtoDeclare definition: TextString
-->

Event Graph ROUTE Table with 0 ROUTE 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 from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d -->

<!-- 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> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->