X3D Model Documentation: ExampleGreyCobra.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <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'>
  4       <head>
  5            <meta name='title' content='ExampleGreyCobra.x3d'/>
  6            <meta name='description' content="Instantiates an example of the Super Cobra AH-1Z Helicopter's prototype in Grey Color."/>
  7            <meta name='creator' content='Jane Wu'/>
  8            <meta name='created' content='16 January 2001'/>
  9            <meta name='modified' content='1 December 2024'/>
 10            <meta name='identifier' content='https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/ExampleGreyCobra.x3d'/>
 11            <meta name='reference' content='https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/SuperCobraPrototype.x3d'/>
 12            <meta name='reference' content='https://www.fas.org/man/dod-101/sys/ac/ah-1.htm'/>
 13            <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='license' content='../../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: ExampleHelicopter, Sensor

Index for ExternProtoDeclare definition: SuperCobra
-->
 16       <Scene>
 17            <WorldInfo title='ExampleGreyCobra.x3d'/>
 18            <ExternProtoDeclare name='SuperCobra'   url=' "../../AircraftHelicopters/AH1SuperCobraUnitedStates/SuperCobraPrototype.x3d#SuperCobra" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/SuperCobraPrototype.x3d#SuperCobra" "../../AircraftHelicopters/AH1SuperCobraUnitedStates/SuperCobraPrototype.wrl#SuperCobra" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/SuperCobraPrototype.wrl#SuperCobra" '>
 19                 <field name='tailBoomColor' type='SFNode' accessType='initializeOnly'/>
 20                 <field name='tailRotorDriveShaftColor' type='SFNode' accessType='initializeOnly'/>
 21                 <field name='horizontalStabilizerColor' type='SFNode' accessType='initializeOnly'/>
 22                 <field name='fuselageColor' type='SFNode' accessType='initializeOnly'/>
 23                 <field name='cockpitColor' type='SFNode' accessType='initializeOnly'/>
 24                 <field name='cowlingColor' type='SFNode' accessType='initializeOnly'/>
 25                 <field name='helicopterName' type='SFString' accessType='initializeOnly'/>
 26                 <field name='inFlight' type='SFBool' accessType='inputOnly'/>
 27            </ExternProtoDeclare>
 28            <Transform>
 29 
               <!-- ROUTE information for Sensor node:  [from isOver to ExampleHelicopter.inFlight ] -->
               <TouchSensor DEF='Sensor' description='start flight mode'/>
 30 
               <!-- ROUTE information for ExampleHelicopter node:  [from Sensor.isOver to inFlight ] -->
               <ProtoInstance name='SuperCobra' DEF='ExampleHelicopter'>
 31                      <fieldValue name='tailBoomColor'>
 32                           <Appearance>
 33                                <Material diffuseColor='0.5 0.5 0.5'/>
 34                           </Appearance>
 35                      </fieldValue>
 36                      <fieldValue name='tailRotorDriveShaftColor'>
 37                           <Appearance>
 38                                <Material diffuseColor='0.5 0.5 0.5'/>
 39                           </Appearance>
 40                      </fieldValue>
 41                      <fieldValue name='horizontalStabilizerColor'>
 42                           <Appearance>
 43                                <Material diffuseColor='0.5 0.5 0.5'/>
 44                           </Appearance>
 45                      </fieldValue>
 46                      <fieldValue name='fuselageColor'>
 47                           <Appearance>
 48                                <Material diffuseColor='0.6 0.6 0.6'/>
 49                           </Appearance>
 50                      </fieldValue>
 51                      <fieldValue name='cockpitColor'>
 52                           <Appearance>
 53                                <Material diffuseColor='0.6 0.6 0.6'/>
 54                           </Appearance>
 55                      </fieldValue>
 56                      <fieldValue name='cowlingColor'>
 57                           <Appearance>
 58                                <Material diffuseColor='0.5 0.5 0.5'/>
 59                           </Appearance>
 60                      </fieldValue>
 61                      <fieldValue name='helicopterName' value='Grey Cobra'/>
 62                 </ProtoInstance>
 63            </Transform>
 64            < ROUTE  fromNode='Sensor' fromField='isOver' toNode='ExampleHelicopter' toField='inFlight'/>
 65       </Scene>
 66  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: ExampleHelicopter, Sensor

Index for ExternProtoDeclare definition: SuperCobra
-->
X3D Tooltips element index: Appearance, ExternProtoDeclare, field, fieldValue, head, Material, meta, ProtoInstance, ROUTE, Scene, TouchSensor, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 1 ROUTE connection 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.

Sensor
TouchSensor
isOver
SFBool
→
ROUTE
event to
(1)
ExampleHelicopter
ProtoInstance
inFlight
SFBool

      ExampleHelicopter
ProtoInstance
SuperCobra
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations 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://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/ExampleGreyCobraIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/ExampleGreyCobra.x3d -->

<!-- Color-coding 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. -->