<?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='titlecontent=' LoadSensorExample.x3d '/>
<meta name='descriptioncontent='LoadSensor test: default initial view means no functionality, active view means load in progress, final view means LoadSensor (and loading) success.'/>
<meta name='createdcontent='16 August 2002'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='creatorcontent='Don Brutzman, Alan Hudson'/>
<meta name=' warning content=' LoadSensor only supported by X3D-compliant browsers. LoadSensor is not implemented in VRML 97. '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/development/LoadSensorExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: ActiveView, EarthImage, Font, JavaBoardImage, LoadedView, Loader, NotLoadedView

Index for Viewpoint nodes: ActiveView, LoadedView, NotLoadedView Index for ExternProtoDeclare definition: LoadSensor
-->
<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='LoadSensorappinfo='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='enabledtype='SFBoolaccessType='inputOutput'/>
<field name='timeOuttype='SFTimeaccessType='inputOutput'/>
<field name='watchListtype='MFNodeaccessType='initializeOnly'/>
<field name='set_watchListtype='MFNodeaccessType='inputOnly'/>
<field name='isActivetype='SFBoolaccessType='outputOnly'/>
<field name='isLoadedtype='SFBoolaccessType='outputOnly'/>
<field name='loadTimetype='SFTimeaccessType='outputOnly'/>
<field name='progresstype='SFFloataccessType='outputOnly'/>
<field name='metadatatype='SFNodeaccessType='initializeOnly'/>
</ExternProtoDeclare>
<Group>
<Viewpoint DEF='NotLoadedViewdescription='Not loaded textureposition='0 0 6'/>
<!-- ROUTE information for ActiveView node:  [from Loader.isActive to set_bind ] -->
<Viewpoint DEF='ActiveViewdescription='Loading textures'/>

<!-- ROUTE information for LoadedView node:  [from Loader.isLoaded to set_bind ] -->
<Viewpoint DEF='LoadedViewdescription='Texture loading completeorientation='0 1 0 3.14159position='0 0 -10'/>

<Group>
<Transform translation='-1 0 0'> </Transform>
<Transform translation='1 0 0'>
<Shape> </Shape>
</Transform>
</Group>
<!-- ROUTE information for Loader node:  [from isActive to ActiveView.set_bind ] [from isLoaded to LoadedView.set_bind ] -->
<LoadSensor DEF='LoadertimeOut='4'>
<ImageTexture USE=' EarthImagecontainerField='watchList'/>
<ImageTexture USE=' JavaBoardImagecontainerField='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='Fontjustify='"MIDDLE" "MIDDLE"size='0.5'/>
</Text>
<Appearance>
<Material diffuseColor='0.8 0.5 0.1'/>
</Appearance>
</Shape>
</Transform>
<Transform rotation='0 1 0 3.14159translation='0 0 -7'>
<Shape>
<Text string='"LoadSensor success"'>
<FontStyle USE=' Font'/>
</Text>
<Appearance>
<Material diffuseColor='0.1 0.5 0.1'/>
</Appearance>
</Shape>
</Transform>
</Group>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: ActiveView, EarthImage, Font, JavaBoardImage, LoadedView, Loader, NotLoadedView

Index for Viewpoint nodes: ActiveView, LoadedView, NotLoadedView Index for ExternProtoDeclare definition: LoadSensor
-->

Event Graph ROUTE Table with 2 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

Loader
LoadSensor
isActive
SFBool

ROUTE
event to
(1)
ActiveView
Viewpoint
set_bind
SFBool
Loader
LoadSensor
isLoaded
SFBool

ROUTE
event to
(1)
LoadedView
Viewpoint
set_bind
SFBool


-->

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

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