X3D Model Documentation: LineBoatPrototype.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='titlecontent=' LineBoatPrototype.x3d '/>
  6            <meta name='creatorcontent='James Harney'/>
  7            <meta name='createdcontent='13 December 2001'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='Simple model of line handling boat used to moor the USS COLE in Aden Harbor, Yemen in October 2000. Aligned down positive x axis as required for Savage vehicle models.'/>
 10            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatControlPanel.java '/>
 11            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatActionInterpreter.java '/>
 12            <meta name='referencecontent=' http://www.foia.navy.mil/usscole/index.html '/>
 13            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/LineBoatPrototype.x3d '/>
 14            <meta name='generatorcontent='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 15            <meta name='licensecontent='../../license.html'/>
 16       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, DeadBoat, DeadOrient, FRONT, REAR, STBD, TEXTURE, Touch

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, FRONT, REAR, STBD

Index for ProtoDeclare definition: LineBoat
-->
 17       <Scene>
 18            <WorldInfo title='LineBoatPrototype.x3d'/>
 19            <ProtoDeclare name='LineBoat'>
 20                 <ProtoInterface>
 21                      <field name='startExplosiontype='SFTimeaccessType='inputOnly'/>
 22                 </ProtoInterface>
 23                 <ProtoBody>
 24                      <Group>
 25                           <Transform>
 26                                <Viewpoint DEF='STBDdescription='Line Boat stbd Viewjump='falseorientation='1 0 0 -0.2position='5 10 35'/>
 27                                <Viewpoint DEF='REARdescription='Line Boat Rear Viewjump='falseorientation='0 1 0 -1.57position='-30 8 0'/>
 28                                <Viewpoint description='Line Boat Port Viewjump='falseorientation='0 1 0 3.14position='5 8 -30'/>
 29                                <Viewpoint DEF='FRONTdescription='Line Boat Front Viewjump='falseorientation='0 1 0 1.57position='32 8 0'/>
 30                           </Transform>
 31 
                         <!-- ROUTE information for BoatPosit node:  [from BoatPositClock.fraction_changed to set_fraction ] [from value_changed to BoatTransform.set_translation ] -->
                         <PositionInterpolator DEF='BoatPositkey='0.325 0.9 1keyValue='0 0 0 0 -15 0 0 -.5 0'/>
 32 
                         <!-- ROUTE information for BoatPositClock node:  [from fraction_changed to BoatPosit.set_fraction ] [from startTime to DeadBoat.set_startTime ] -->
                         <TimeSensor DEF='BoatPositClockcycleInterval='3.6'>
 33                                <IS>
 34                                     <connect nodeField='startTimeprotoField='startExplosion'/>
 35                                </IS>
 36                           </TimeSensor>
 37 
                         <!-- ROUTE information for DeadBoat node:  [from BoatPositClock.startTime to set_startTime ] [from fraction_changed to DeadOrient.set_fraction ] -->
                         <TimeSensor DEF='DeadBoatcycleInterval='5'/>
 38 
                         <!-- ROUTE information for DeadOrient node:  [from DeadBoat.fraction_changed to set_fraction ] [from value_changed to BoatTransform.set_rotation ] -->
                         <OrientationInterpolator DEF='DeadOrientkey='0.4 0.9 1keyValue='1 0 0 0.00 1 0 0 3.14 1 0 0 3.14'/>
 39 
                         <!-- ROUTE information for BoatTransform node:  [from BoatPosit.value_changed to set_translation ] [from DeadOrient.value_changed to set_rotation ] -->
                         <Transform DEF='BoatTransform'>
 40                                <Transform scale='1.2 1.2 1.2'>
 41                                     <Shape>
 42                                          <Extrusion creaseAngle='1.57crossSection='0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00orientation='0 1 0 0 0 1 0 0 0 0 1 -0.5scale='1 1 1 1 1 .1solid='falsespine='0 0 0 7.8842 0 0 10.7 0.25 0'/>
 43                                          <Appearance>
 44                                               <Material diffuseColor='.9 .9 .9shininess='.1'/>
 45 
                                             <!-- ImageTexture TEXTURE is a DEF node that has 1 USE node: USE_1 -->
                                             <ImageTexture DEF='TEXTURE'   url=' "../../Scenarios/UssColeTerroristAttack/BoatTexture.jpg " "BoatTexture.jpg " "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/BoatTexture.jpg " '/>
 46                                          </Appearance>
 47                                     </Shape>
 48                                     <Shape>
 49                                          <Extrusion creaseAngle='1.57crossSection='0.10 0.96 0.10 -0.96scale='1 1 1 1 1 .1solid='falsespine='.1 0 0 7.8842 0 0 10.6 0.25 0'/>
 50                                          <Appearance>
 51                                               <Material diffuseColor='1 1 1'/>
 52                                               <ImageTexture USE='TEXTURE'/>
 53                                          </Appearance>
 54                                     </Shape>
 55                                </Transform>
 56                                <Transform translation='0 -.2 0'>
 57                                     <Shape>
 58                                          <IndexedFaceSet solid='falsecoordIndex='0 2 6 4 0 -1 1 3 7 5 1 -1 0 1 5 4 0 -1 2 3 7 6 2 -1 4 6 7 5 4 -1'>
 59                                               <Coordinate point='2 0 .5 3 0 .5 2 0 -.5 3 0 -.5 2 1 .5 3 1.5 .5 2 1 -.5 3 1.5 -.5'/>
 60                                          </IndexedFaceSet>
 61                                          <Appearance>
 62                                               <Material diffuseColor='.9 .9 .9'/>
 63                                          </Appearance>
 64                                     </Shape>
 65                                </Transform>
 66                           </Transform>
 67                           < ROUTE  fromNode='BoatPositClock' fromField='fraction_changed' toNode='BoatPosit' toField='set_fraction'/>
 68                           < ROUTE  fromNode='BoatPosit' fromField='value_changed' toNode='BoatTransform' toField='set_translation'/>
 69                           < ROUTE  fromNode='BoatPositClock' fromField='startTime' toNode='DeadBoat' toField='set_startTime'/>
 70                           < ROUTE  fromNode='DeadBoat' fromField='fraction_changed' toNode='DeadOrient' toField='set_fraction'/>
 71                           < ROUTE  fromNode='DeadOrient' fromField='value_changed' toNode='BoatTransform' toField='set_rotation'/>
 72                      </Group>
 73                 </ProtoBody>
 74            </ProtoDeclare>
 75            <NavigationInfo speed='10type='"EXAMINE" "FLY" "ANY"visibilityLimit='7000'/>
 76            <Background groundAngle='1.309 1.570796groundColor='0.1 0.1 0 0.4 0.25 0.2 0.6 0.6 0.6skyAngle='1.309 1.571skyColor='0 0.2 0.7 0 0.5 1 1 1 1'/>
 77 
          <!-- ROUTE information for Boat node:  [from Touch.touchTime to startExplosion ] -->
          <ProtoInstance name='LineBoatDEF='Boat'/>
 78            <Viewpoint description='Line Boat Viewjump='falseorientation='1 0 0 -0.2position='0 10 35'/>
 79 
          <!-- ROUTE information for Touch node:  [from touchTime to Boat.startExplosion ] -->
          <TouchSensor DEF='Touchdescription='Flips boat over on touch'/>
 80            < ROUTE  fromNode='Touch' fromField='touchTime' toNode='Boat' toField='startExplosion'/>
 81       </Scene>
 82  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, DeadBoat, DeadOrient, FRONT, REAR, STBD, TEXTURE, Touch

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, FRONT, REAR, STBD

Index for ProtoDeclare definition: LineBoat
-->
X3D Tooltips element index: Appearance, Background, connect, Coordinate, Extrusion, field, Group, head, ImageTexture, IndexedFaceSet, IS, Material, meta, NavigationInfo, OrientationInterpolator, PositionInterpolator, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, Shape, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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

Touch
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Boat
ProtoInstance
startExplosion
SFTime

BoatPositClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
BoatPosit
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
BoatPosit
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(2)
BoatTransform
Transform
set_translation
SFVec3f
BoatPositClock
TimeSensor
startTime
SFTime

ROUTE
event to
(1)
DeadBoat
TimeSensor
set_startTime
SFTime
then
 
 
 
DeadBoat
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
DeadOrient
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
DeadOrient
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
BoatTransform
Transform
set_rotation
SFRotation

      Boat
ProtoInstance
LineBoat
No direct ROUTE connection found for events to/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://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/LineBoatPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/LineBoatPrototype.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->