X3D Model Documentation: Rotor.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <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'>
  4       <head>
  5            <meta name='titlecontent='Rotor.x3d'/>
  6            <meta name='descriptioncontent='X3D specification example showing a spinning helicopter rotor that is used by the Chopper model.'/>
  7            <meta name='creatorcontent='Don Brutzman and Joe Williams'/>
  8            <meta name='createdcontent='1 June 2002'/>
  9            <meta name='modifiedcontent='28 October 2019'/>
 10            <meta name='specificationSectioncontent='X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.16 Chopper'/>
 11            <meta name='specificationUrlcontent='https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/examples.html#Chopper'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/Rotor.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: F, I, T

Index for ProtoDeclare definition: Rotor
-->
 16       <Scene>
 17            <WorldInfo title='Rotor.x3d'/>
 18            <ProtoDeclare name='Rotor'>
 19                 <ProtoInterface>
 20                      <field name='ratetype='SFTimevalue='1accessType='initializeOnly'/>
 21                      <field name='childrentype='MFNodeaccessType='initializeOnly'>
 22                           <!-- initial value is empty node array -->
 23                      </field>
 24                      <field name='startTimetype='SFTimevalue='0accessType='inputOutput'/>
 25                      <field name='stopTimetype='SFTimevalue='0accessType='inputOutput'/>
 26                 </ProtoInterface>
 27                 <ProtoBody>
 28 
                    <!-- ROUTE information for F node:  [from I.value_changed to set_rotation ] -->
                    <Transform DEF='F'>
 29                           <IS>
 30                                <connect nodeField='childrenprotoField='children'/>
 31                           </IS>
 32                      </Transform>
 33                      <!-- after first node in ProtoDeclare, remainder of nodes do not render -->
 34 
                    <!-- ROUTE information for T node:  [from fraction_changed to I.set_fraction ] -->
                    <TimeSensor DEF='Tloop='true'>
 35                           <IS>
 36                                <connect nodeField='cycleIntervalprotoField='rate'/>
 37                                <connect nodeField='startTimeprotoField='startTime'/>
 38                                <connect nodeField='stopTimeprotoField='stopTime'/>
 39                           </IS>
 40                      </TimeSensor>
 41 
                    <!-- 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'/>
 42                      < ROUTE  fromNode='T' fromField='fraction_changed' toNode='I' toField='set_fraction'/>
 43                      < ROUTE  fromNode='I' fromField='value_changed' toNode='F' toField='set_rotation'/>
 44                 </ProtoBody>
 45            </ProtoDeclare>
 46            <ProtoInstance name='Rotor'>
 47                 <fieldValue name='children'>
 48                      <Shape>
 49                           <Box size='4 0.2 0.1'/>
 50                           <Appearance>
 51                                <Material/>
 52                           </Appearance>
 53                      </Shape>
 54                 </fieldValue>
 55            </ProtoInstance>
 56       </Scene>
 57  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: F, I, T

Index for ProtoDeclare definition: Rotor
-->
X3D Tooltips element index: Appearance, Box, connect, field, fieldValue, head, IS, Material, meta, OrientationInterpolator, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, Shape, TimeSensor, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

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 events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/RotorIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/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. -->