X3D Model Documentation: BuoyPrototype.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
  3  <X3D profile='Immersive' version='3.1 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'>
  4       <head>
  5            <meta name='titlecontent=' BuoyPrototype.x3d '/>
  6            <meta name='descriptioncontent='Buoy prototype, allows selection of Red, Green, and Mooring'/>
  7            <meta name='creatorcontent='Patrick Sullivan'/>
  8            <meta name='createdcontent='27 July 2006'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='subjectcontent='Buoys, Mooring Buoy'/>
 11            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/BuoyPrototype.x3d '/>
 12            <meta name='generatorcontent='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 13            <meta name='licensecontent='../../license.html'/>
 14       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BuoyPrototype, BuoySelections, Clock, Counter, GreenBuoy, GridXZ_20x20Fixed, MarkerBuoy.x3d, MooringBuoy, MooringBuoy-HighDetail, RedBuoy

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: Buoy
-->
 15       <Scene>
 16            <WorldInfo title='BuoyPrototype.x3d'/>
 17            <Viewpoint description='Buoy sequenceorientation='1 0 0 -0.3218position='0 5 15'/>
 18            <Inline DEF='GridXZ_20x20Fixed'   url=' "GridXZ_20x20Fixed.x3d" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "GridXZ_20x20Fixed.wrl" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" '/>
 19            <ProtoDeclare name='Buoyappinfo='One of several selectable buoys (red green marking mooring MooringBuoy-HighDetail)'>
 20                 <ProtoInterface>
 21                      <field name='BuoyTypetype='SFInt32value='-1accessType='inputOutput'
                     appinfo='[0-2] (0=Red 1=Green 2=Mooring)'/>
 22                 </ProtoInterface>
 23                 <ProtoBody>
 24                      <Transform scale='3 3 3'>
 25                           <Switch DEF='BuoySelectionswhichChoice='-1'>
 26                                <IS>
 27                                     <connect nodeField='whichChoiceprotoField='BuoyType'/>
 28                                </IS>
 29                                <Inline DEF='RedBuoy'   url=' "../../../Savage/HarborEquipment/Buoys/RedBuoy.x3d" "https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/RedBuoy.x3d" '/>
 30                                <Inline DEF='GreenBuoy'   url=' "../../../Savage/HarborEquipment/Buoys/GreenBuoy.x3d" "https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/GreenBuoy.x3d" '/>
 31                                <Inline DEF='MarkerBuoy.x3d'   url=' "../../../Savage/HarborEquipment/Buoys/MarkerBuoy.x3d" "https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/MarkerBuoy.x3d" '/>
 32                                <Inline DEF='MooringBuoy'   url=' "../../../Savage/HarborEquipment/Buoys/MooringBuoy.x3d" "https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/MooringBuoy.x3d" '/>
 33                                <Inline DEF='MooringBuoy-HighDetail'   url=' "../../../Savage/HarborEquipment/Buoys/MooringBuoyHighDetail.x3d" "https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/MooringBuoyHighDetail.x3d" '/>
 34                           </Switch>
 35                      </Transform>
 36                 </ProtoBody>
 37            </ProtoDeclare>
 38 
          <!-- ROUTE information for BuoyPrototype node:  [from Counter.value_changed to BuoyType ] -->
          <ProtoInstance name='BuoyDEF='BuoyPrototype'>
 39                 <fieldValue name='BuoyTypevalue='0'/>
 40            </ProtoInstance>
 41 
          <!-- ROUTE information for Clock node:  [from fraction_changed to Counter.set_fraction ] -->
          <TimeSensor DEF='ClockcycleInterval='9loop='true'/>
 42 
          <!-- ROUTE information for Counter node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to BuoyPrototype.BuoyType ] -->
          <IntegerSequencer DEF='Counterkey='0 0.2 0.4 0.6 0.8 1keyValue='0 1 2 3 4 0'/>
 43            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='Counter' toField='set_fraction'/>
 44            < ROUTE  fromNode='Counter' fromField='value_changed' toNode='BuoyPrototype' toField='BuoyType'/>
 45       </Scene>
 46  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BuoyPrototype, BuoySelections, Clock, Counter, GreenBuoy, GridXZ_20x20Fixed, MarkerBuoy.x3d, MooringBuoy, MooringBuoy-HighDetail, RedBuoy

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: Buoy
-->
X3D Tooltips element index: connect, field, fieldValue, head, Inline, IntegerSequencer, IS, meta, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, Switch, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and 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.

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Counter
IntegerSequencer
set_fraction
SFFloat
then
 
 
 
Counter
IntegerSequencer
value_changed
SFInt32

ROUTE
event to
(2)
BuoyPrototype
ProtoInstance
BuoyType
SFInt32

      BuoyPrototype
ProtoInstance
Buoy
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/HarborEquipment/Buoys/BuoyPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Buoys/BuoyPrototype.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. -->