<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN"   "http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile='Immersiveversion='3.2xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.2.xsd '>
<head>
<meta name='titlecontent='LoadSensor.x3d'/>
<meta name='descriptioncontent='Simple test of LoadSensor node'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='17 July 2008'/>
<meta name='modifiedcontent='17 July 2008'/>
<meta name='rightscontent='Copyright Don Brutzman and Leonard Daly 2008'/>
<meta name='subjectcontent='X3D LoadSensor example'/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12-EnvironmentSensorSound/LoadSensor.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../../license.html'/>
</head>
<!--

Index for DEF nodes: HelloWorld, InlineLoadSensor, PivotTextSigns, SignRotationClock, SignRotationInterpolator, TraceScript, ViewAll
Index for Viewpoint image: ViewAll
-->
<Scene>
<Viewpoint DEF='ViewAllposition='0 0 12retainUserOffsets='false'/>
<Inline DEF='HelloWorld'
  url=' "../HelloWorld.x3d" "http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" '/>
<!-- InlineLoadSensor ROUTEs:  [from loadTime to SignRotationClock.startTime ] [from isLoaded to TraceScript.isLoadedEvent ] -->
<LoadSensor DEF='InlineLoadSensortimeOut='5'>
<Inline USE='HelloWorldcontainerField='watchList'/>
</LoadSensor>
<!-- PivotTextSigns ROUTE:  [from SignRotationInterpolator.value_changed to rotation ] -->
<Transform DEF='PivotTextSignstranslation='0 3 0'>
<!-- First sign indicates waiting... -->
<Shape>
<Text string='LoadSensor waiting for HelloWorld scene...solid='true'>
<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 string='LoadSensor reports HelloWorld scene loading complete.solid='true'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.7style='ITALIC'/>
</Text>
<Appearance>
<Material emissiveColor='0 0.278431 0.027451'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<!-- SignRotationInterpolator ROUTEs:  [from SignRotationClock.fraction_changed to set_fraction ] [from value_changed to PivotTextSigns.rotation ] -->
<OrientationInterpolator DEF='SignRotationInterpolatorkey='0 1keyValue='0 1 0 0 0 1 0 -1.57'/>
<!-- SignRotationClock ROUTEs:  [from InlineLoadSensor.loadTime to startTime ] [from fraction_changed to SignRotationInterpolator.set_fraction ] -->
<TimeSensor DEF='SignRotationClockcycleInterval='0.8'/>
<ROUTE fromNode='InlineLoadSensorfromField='loadTimetoNode='SignRotationClocktoField='startTime'/>
<ROUTE fromNode='SignRotationClockfromField='fraction_changedtoNode='SignRotationInterpolatortoField='set_fraction'/>
<ROUTE fromNode='SignRotationInterpolatorfromField='value_changedtoNode='PivotTextSignstoField='rotation'/>
<!-- TraceScript ROUTE:  [from InlineLoadSensor.isLoaded to isLoadedEvent ] -->
<Script DEF='TraceScript'>
<field name='isLoadedEventtype='SFBoolaccessType='inputOnly'/>
<![CDATA[
      
ecmascript:
function isLoadedEvent (value)
{
	Browser.println ('InlineLoadSensor isLoaded=' + value);
}

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

Index for DEF nodes: HelloWorld, InlineLoadSensor, PivotTextSigns, SignRotationClock, SignRotationInterpolator, TraceScript, ViewAll
Index for Viewpoint image: ViewAll
-->

<!-- Tag color codes (X3D, XML terminology): <Node DEF='idName' field='value'/> <Element DEF='idName' attribute='value'/> -->