<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://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
='
https://www.web3d.org/specifications/x3d-3.0.xsd
'
>
<head>
<meta name='title' content='
LoadSensorExample.x3d
'/>
<meta name='description' content='LoadSensor test: default initial view means no functionality, active view means load in progress, final view means LoadSensor (and loading) success.'/>
<meta name='created' content='16 August 2002'/>
<meta name='modified' content='20 October 2019'/>
<meta name='creator' content='Don Brutzman, Alan Hudson'/>
<meta name=' warning ' content=' LoadSensor only supported by X3D-compliant browsers. LoadSensor is not implemented in VRML 97. '/>
<meta name='identifier' content='
https://www.web3d.org/x3d/content/examples/Basic/development/LoadSensorExample.x3d
'/>
<meta name='generator' content='X3D-Edit 3.3,
https://savage.nps.edu/X3D-Edit'/>
<meta name='license' content='
../license.html'/>
</head>
<!--
-->
<Scene>
<!-- Do not copy this ExternProtoDeclare, it is used for providing automatic support in X3dToVrml97.xslt and X3D-Edit -->
<WorldInfo title='LoadSensorExample.x3d'/>
<ExternProtoDeclare name='LoadSensor' appinfo='LoadSensor monitors the progress and success of downloading URL elements over a network. Only nodes that contain a valid URL field (i.e. descendants of X3DUrlObject) may be specified as watchList children. Multiple nodes may be watched with a single LoadSensor.'
documentation='
https://www.web3d.org/specifications/ISO-IEC-19775/Part01/components/networking.html#LoadSensor
'
url='
"LoadSensorPrototype.wrl#LoadSensor" "https://www.web3d.org/x3d/content/examples/Basic/development/LoadSensorPrototype.wrl#LoadSensor" "LoadSensorPrototype.x3d#LoadSensor" "https://www.web3d.org/x3d/content/examples/Basic/development/LoadSensorPrototype.x3d#LoadSensor" '
>
<field name='enabled' type='SFBool' accessType='inputOutput'/>
<field name='timeOut' type='SFTime' accessType='inputOutput'/>
<field name='watchList' type='MFNode' accessType='initializeOnly'/>
<field name='set_watchList' type='MFNode' accessType='inputOnly'/>
<field name='isActive' type='SFBool' accessType='outputOnly'/>
<field name='isLoaded' type='SFBool' accessType='outputOnly'/>
<field name='loadTime' type='SFTime' accessType='outputOnly'/>
<field name='progress' type='SFFloat' accessType='outputOnly'/>
<field name='metadata' type='SFNode' accessType='initializeOnly'/>
</ExternProtoDeclare>
<Group>
<Viewpoint DEF='NotLoadedView' description='Not loaded texture' position='0 0 6'/>
<Group>
<Transform translation='-1 0 0'>
<Shape>
<Sphere/>
<Appearance>
</Appearance>
</Shape>
</Transform>
<Transform translation='1 0 0'>
<Shape>
<Box/>
<Appearance>
</Appearance>
</Shape>
</Transform>
</Group>
<ImageTexture USE='
EarthImage' containerField='watchList'/>
<ImageTexture USE='
JavaBoardImage' containerField='watchList'/>
</LoadSensor>
<
ROUTE
fromNode='
Loader' fromField='isActive' toNode='
ActiveView' toField='set_bind'/>
<
ROUTE
fromNode='
Loader' fromField='isLoaded' toNode='
LoadedView' toField='set_bind'/>
<Transform translation='0 0 7'>
<Shape>
<Text string='"LoadSensor active"'>
<FontStyle DEF='Font' justify='"MIDDLE" "MIDDLE"' size='0.5'/>
</Text>
<Appearance>
<Material diffuseColor='0.8 0.5 0.1'/>
</Appearance>
</Shape>
</Transform>
<Transform rotation='0 1 0 3.14159' translation='0 0 -7'>
<Shape>
<Text string='"LoadSensor success"'>
</Text>
<Appearance>
<Material diffuseColor='0.1 0.5 0.1'/>
</Appearance>
</Shape>
</Transform>
</Group>
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/development/LoadSensorExampleIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/LoadSensorExample.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
<ProtoDeclare
name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->