<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN"   "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersiveversion='3.1xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.1.xsd '>
<head>
<meta name='titlecontent='StringSensor.x3d'/>
<meta name='descriptioncontent='A StringSensor example that displays typed text in the world.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='7 June 2006'/>
<meta name='modifiedcontent='8 October 2007'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/help.html '/>
<meta name='rightscontent='Copyright (c) 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/Chapter08-UserInteractivity/StringSensor.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition: WhereAmI
Index for DEF nodes: Converter, DisplayText, GenText
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<ExternProtoDeclare name='WhereAmI'
  url=' "../Chapter14-Prototypes/WhereAmI.x3d#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.x3d#WhereAmI" "../Chapter14-Prototypes/WhereAmI.wrl#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.wrl#WhereAmI" '/>
<ProtoInstance name='WhereAmIcontainerField='children'/>
<Background skyColor='1 1 1'/>
<Viewpoint description='Book Viewposition='-0.02 0.01 6.85'/>
<!-- GenText ROUTE:  [from enteredText to Converter.SFString2MFString ] -->
<StringSensor DEF='GenTextdeletionAllowed='trueenabled='true'/>
<Transform>
<Transform translation='0 0 -.1'>
<Shape>
<Appearance>
<Material diffuseColor='1 1 .6'/>
</Appearance>
<Box size='8 1.5 .01'/>
</Shape>
</Transform>
<Transform translation='-3.9 .7 0'>
<Shape>
<Appearance>
<Material diffuseColor='0 0 1'/>
</Appearance>
<!-- DisplayText ROUTE:  [from Converter.MFString_out to string ] -->
<Text DEF='DisplayTextsolid='true'>
<FontStyle size='.75'/>
</Text>
</Shape>
</Transform>
<!-- Converter ROUTEs:  [from GenText.enteredText to SFString2MFString ] [from MFString_out to DisplayText.string ] -->
<Script DEF='Converter'
  url=' "converter.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter08-UserInteractivity/converter.js" '>
<field name='SFString2MFStringtype='SFStringaccessType='inputOnly'/>
<field name='MFString_outtype='MFStringaccessType='outputOnly'/>
</Script>
<ROUTE fromNode='GenTextfromField='enteredTexttoNode='ConvertertoField='SFString2MFString'/>
<ROUTE fromNode='ConverterfromField='MFString_outtoNode='DisplayTexttoField='string'/>
</Transform>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition: WhereAmI
Index for DEF nodes: Converter, DisplayText, GenText
Index for Viewpoint image: Viewpoint_1
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->