<?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='LoadSensorExample.x3d'/>
<meta name='descriptioncontent='Simple test of LoadSensor node'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='17 July 2008'/>
<meta name='modifiedcontent='14 June 2020'/>
<meta name='rightscontent='Copyright Don Brutzman and Leonard Daly 2008'/>
<meta name='subjectcontent='X3D LoadSensor example'/>
<meta name='identifiercontent=' https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/LoadSensorExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='LoadSensor.x3d'/>
<Viewpoint DEF='ViewAlldescription='LoadSensor testposition='0 0 12'/>
<Inline DEF='HelloWorld'
  url=' "../HelloWorld.x3d" "https://www.web3d.org/x3d/content/examples/HelloWorld.x3d" '/>

<!-- ROUTE information for InlineLoadSensor node:  [from loadTime to SignRotationClock.set_startTime ] [from isLoaded to TraceScript.eventLoaded ] [from loadTime to TraceScript.loadTimeEvent ] -->
<LoadSensor DEF='InlineLoadSensortimeOut='5'>
<Inline USE='HelloWorldcontainerField='watchList'/>
</LoadSensor>
<!-- ROUTE information for PivotTextSigns node:  [from SignRotationInterpolator.value_changed to set_rotation ] -->
<Transform DEF='PivotTextSignstranslation='0 3 0'>
<!-- First sign indicates waiting... -->
<Shape>
<Text length='0string='"LoadSensor waiting for HelloWorld scene..."'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.7style='ITALIC'/>
</Text>
<Appearance>
<Material emissiveColor='0.878431 0.262745 0'/>
</Appearance>
</Shape>
<!-- Second sign indicates completed, initially rotated 90 degrees out of view -->
<Transform rotation='0 1 0 1.57'>
<Shape>
<Text length='0string='"LoadSensor reports HelloWorld scene loading complete."'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.7style='ITALIC'/>
</Text>
<Appearance>
<Material emissiveColor='0 0.278431 0.027451'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for SignRotationInterpolator node:  [from SignRotationClock.fraction_changed to set_fraction ] [from value_changed to PivotTextSigns.set_rotation ] -->
<OrientationInterpolator DEF='SignRotationInterpolatorkey='0 1keyValue='0 1 0 0 0 1 0 -1.57'/>
<!-- ROUTE information for SignRotationClock node:  [from InlineLoadSensor.loadTime to set_startTime ] [from fraction_changed to SignRotationInterpolator.set_fraction ] -->
<TimeSensor DEF='SignRotationClockcycleInterval='0.8'/>
<ROUTE fromNode='InlineLoadSensorfromField='loadTimetoNode='SignRotationClocktoField='set_startTime'/>
<ROUTE fromNode='SignRotationClockfromField='fraction_changedtoNode='SignRotationInterpolatortoField='set_fraction'/>
<ROUTE fromNode='SignRotationInterpolatorfromField='value_changedtoNode='PivotTextSignstoField='set_rotation'/>
<!-- ROUTE information for TraceScript node:  [from InlineLoadSensor.isLoaded to eventLoaded ] [from InlineLoadSensor.loadTime to loadTimeEvent ] -->
<Script DEF='TraceScript'>
<field name='eventLoadedtype='SFBoolaccessType='inputOnly'/>
<field name='loadTimeEventtype='SFTimeaccessType='inputOnly'/>
<![CDATA[
      
ecmascript:
function eventLoaded (value)
{
	Browser.println ('InlineLoadSensor isLoaded=' + value);
}
function loadTimeEvent (value)
{
	Browser.println ('InlineLoadSensor loadTime=' + value);
}

    
]]>
</Script>
<ROUTE fromNode='InlineLoadSensorfromField='isLoadedtoNode='TraceScripttoField='eventLoaded'/>
<ROUTE fromNode='InlineLoadSensorfromField='loadTimetoNode='TraceScripttoField='loadTimeEvent'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : HelloWorld, InlineLoadSensor, PivotTextSigns, SignRotationClock, SignRotationInterpolator, TraceScript, ViewAll

Index for Viewpoint image : ViewAll
-->

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

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