<?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=' Rotor.x3d '/>
<meta name='creatorcontent='X3D working group'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='24 May 2000'/>
<meta name='modifiedcontent='28 October 2019'/>
<meta name='descriptioncontent='VRML 97 specification example: spinning rotor (with replacable children) Prototype for Example D 16 Chopper.'/>
<meta name='specificationSectioncontent=' VRML 97, ISO/IEC 14772-1, Part 1: Functional specification and UTF-8 encoding, D.16 Chopper'/>
<meta name='specificationUrlcontent=' https://www.web3d.org/documents/specifications/14772/V2.0/part1/examples.html#D.16 '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Rotor.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: F, I, T, TouchTextForExample

Index for ProtoDeclare definition: Rotor
-->
<Scene>
<WorldInfo title='Rotor.x3d'/>
<ProtoDeclare name='Rotorappinfo='Rotor prototype to spin children geometry' >
<ProtoInterface>
<field name='ratetype='SFTimevalue='1accessType='initializeOnly'
 appinfo='rotation rate' />

<field name='childrentype='MFNodeaccessType='initializeOnly'
 appinfo='children geometry to spin' />

<field name='startTimetype='SFTimevalue='0accessType='inputOutput'
 appinfo='exposed TimeSensor field for animation' />

<field name='stopTimetype='SFTimevalue='0accessType='inputOutput'
 appinfo='exposed TimeSensor field for animation' />
</ProtoInterface>
<ProtoBody>
<!-- ROUTE information for F node:  [from I.value_changed to set_rotation ] -->
<Transform DEF='F'>
<IS>
<connect nodeField='childrenprotoField='children'/>
</IS>
</Transform>
<!-- ROUTE information for T node:  [from fraction_changed to I.set_fraction ] -->
<TimeSensor DEF='Tloop='true'>
<IS>
<connect nodeField='cycleIntervalprotoField='rate'/>
<connect nodeField='startTimeprotoField='startTime'/>
<connect nodeField='stopTimeprotoField='stopTime'/>
</IS>
</TimeSensor>
<!-- ROUTE information for I node:  [from T.fraction_changed to set_fraction ] [from value_changed to F.set_rotation ] -->
<OrientationInterpolator DEF='Ikey='0 0.25 0.5 0.75 1keyValue='0 1 0 0 0 1 0 1.57 0 1 0 3.14 0 1 0 4.71 0 1 0 0'/>

< ROUTE  fromNode=' T' fromField='fraction_changed' toNode=' I' toField='set_fraction'/>
< ROUTE  fromNode=' I' fromField='value_changed' toNode=' F' toField='set_rotation'/>
</ProtoBody>
</ProtoDeclare>
<!-- ==================== -->
<ProtoInstance name='Rotor'>
<fieldValue name='children'>
<Shape>
<Box size='4 0.2 0.1'/>
<Appearance>
<Material/>
</Appearance>
</Shape>
</fieldValue>
</ProtoInstance>
<Anchor DEF='TouchTextForExampledescription='Touch Text For Exampleparameter='"target=_blank"'
  url=' Example16.x3d"https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example16.x3d" "Example16.wrl" "https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example16.wrl" ' >
<Shape>
<Appearance>
<Material diffuseColor='0.1 0.4 0.8'/>
</Appearance>
<Text string='"Rotor is a" "Prototype (PROTO) declaration." "" "To see an example scene using this new node," "click text and view Example 16"'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.65'/>
</Text>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: F, I, T, TouchTextForExample

Index for ProtoDeclare definition: Rotor
-->

Event Graph ROUTE Table entries 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.

T
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
I
OrientationInterpolator
set_fraction
SFFloat

 
 
then
I
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
F
Transform
set_rotation
SFRotation



ProtoInstance
Rotor
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/RotorIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Rotor.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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