<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='ScriptNodeEventOutControl_Java.x3d'/>
<meta name='descriptioncontent='Script node interface between VRML and Java: this conformance example tests event-based VRML-Java functionality.'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name=' warning content=' VRML97 script classes, not X3D Scene Authoring Interface (SAI) '/>
<meta name='createdcontent='30 November 1997'/>
<meta name='translatedcontent='8 July 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='Imagecontent='ScriptEventPassingVrmlJava.png'/>
<meta name='Imagecontent='ScriptFieldInvocationVrmlJava.png'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/ScriptConformance/ScriptNodeEventOutControl_Java.x3d '/>
<meta name='referencecontent='VRML 97 Specification, Annex B, Java platform scripting reference'/>
<meta name='referencecontent=' https://www.web3d.org/technicalinfo/specifications/vrml97/part1/java.html '/>
<meta name='referencecontent=' https://www.web3d.org/technicalinfo/specifications/vrml97/part1/java.html#B.5 '/>
<meta name='referencecontent='Don Brutzman, "The Virtual Reality Modeling Language and Java," Communications of the ACM, vol. 41 no. 6, June 1998, pp. 57-64.'/>
<meta name='referencecontent='VrmlJavaPaper.pdf'/>
<meta name='referencecontent='ScriptNodeEventOutControl.java'/>
<meta name='referencecontent='VRML97javadoc/index.html'/>
<meta name='referencecontent='Makefile'/>
<meta name='referencecontent='Makefile.out'/>
<meta name='referencecontent='Vrml97ScriptNodePackages.jar'/>
<meta name='referencecontent='ScriptNodeEventOutControl_JavaConsoleOutput.txt'/>
<meta name='referencecontent='ScriptNodeEventOutControl_JavaSnapshots.html'/>
<meta name='referencecontent='ScriptNodeEventOutControl_EcmaScript.x3d'/>
<meta name='subjectcontent='VRML X3D Java Script conformance'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for DEF nodes : ClickTextToTest, InterfaceScriptNode, MessageToUser, TextMaterial, TextPosition

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<WorldInfo title='ScriptNodeEventOutControl_Java.x3d'/>
<Viewpoint description='View testposition='0 0 12'/>
<Group>
<!-- ROUTE information for ClickTextToTest node:  [from touchTime to InterfaceScriptNode.startTime ] -->
<TouchSensor DEF='ClickTextToTestdescription='Click text to test'/>
<!-- ROUTE information for TextPosition node:  [from InterfaceScriptNode.changedPosition to set_translation ] -->
<Transform DEF='TextPosition'>
<!-- TextPosition translation is modified by InterfaceScriptNode. -->
<Shape>
<!-- ROUTE information for MessageToUser node:  [from InterfaceScriptNode.changedText to set_string ] -->
<Text DEF='MessageToUserstring='"Default text in VRML scene will be replaced by" "Java initialize() in Script using EventOut control." "This text appears first, if Java initialization fails." ""'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.8'/>
</Text>
<Appearance>
<!-- ROUTE information for TextMaterial node:  [from InterfaceScriptNode.changedColor to diffuseColor ] -->
<Material DEF='TextMaterialdiffuseColor='0.8 0.2 0.2shininess='0.9'/>
</Appearance>
</Shape>
<!-- Selectable Text design pattern has transparent Box and TouchSensor description as a tooltip -->
<Shape>
<Box size='15 4 .001'/>
<Appearance>
<Material transparency='0.95'/>
</Appearance>
</Shape>
</Transform>
<!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) -->
<!-- ROUTE information for InterfaceScriptNode node:  [from ClickTextToTest.touchTime to startTime ] [from changedText to MessageToUser.set_string ] [from changedPosition to TextPosition.set_translation ] [from changedColor to TextMaterial.diffuseColor ] -->
<Script DEF='InterfaceScriptNode'
  url=' "ScriptNodeEventOutControl.class" "https://www.web3d.org/x3d/content/examples/Basic/ScriptConformance/ScriptNodeEventOutControl.class" '>
<!-- No default values are allowed for eventIn or eventOut. -->
<field name='startTimetype='SFTimeaccessType='inputOnly'/>
<field name='changedTexttype='MFStringaccessType='outputOnly'/>
<field name='changedPositiontype='SFVec3faccessType='outputOnly'/>
<field name='changedColortype='SFColoraccessType='outputOnly'/>
</Script>
</Group>
<ROUTE fromNode='ClickTextToTestfromField='touchTimetoNode='InterfaceScriptNodetoField='startTime'/>
<ROUTE fromNode='InterfaceScriptNodefromField='changedTexttoNode='MessageToUsertoField='set_string'/>
<ROUTE fromNode='InterfaceScriptNodefromField='changedPositiontoNode='TextPositiontoField='set_translation'/>
<ROUTE fromNode='InterfaceScriptNodefromField='changedColortoNode='TextMaterialtoField='diffuseColor'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : ClickTextToTest, InterfaceScriptNode, MessageToUser, TextMaterial, TextPosition

Index for Viewpoint image : Viewpoint_1
-->

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

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