<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://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 =' http://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='10 January 2014'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://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=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ProtoDeclare definition : TextString

Index for DEF node : MyTextStringInstance
-->
<Scene>
<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='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>
<!--

Index for ProtoDeclare definition : TextString

Index for DEF node : MyTextStringInstance
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->