| 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='title' content='BuoyPrototype.x3d'/> |
| 6 | <meta name='description' content='Buoy prototype, allows selection of Red, Green, and Mooring'/> |
| 7 | <meta name='creator' content='Patrick Sullivan'/> |
| 8 | <meta name='created' content='27 July 2006'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='subject' content='Buoys, Mooring Buoy'/> |
| 11 | <meta name='identifier' content='https://savage.nps.edu/Savage/HarborEquipment/Buoys/BuoyPrototype.x3d'/> |
| 12 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
| 13 | <meta name='license' content='../../license.html'/> |
| 14 | </head> |
| 15 | <Scene> |
| 16 | <WorldInfo title='BuoyPrototype.x3d'/> |
| 17 | <Viewpoint description='Buoy sequence' orientation='1 0 0 -0.3218' position='0 5 15'/> |
| 18 | <Inline DEF='GridXZ_20x20Fixed' url=' "GridXZ_20x20Fixed.x3d" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "GridXZ_20x20Fixed.wrl" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" '/> |
| 19 | <ProtoDeclare name='Buoy' appinfo='One of several selectable buoys (red green marking mooring MooringBuoy-HighDetail)'> |
| 20 | <ProtoInterface> |
| 21 |
<field name='BuoyType' type='SFInt32' value='-1' accessType='inputOutput'
appinfo='[0-2] (0=Red 1=Green 2=Mooring)'/> |
| 22 | </ProtoInterface> |
| 23 | <ProtoBody> |
| 24 | <Transform scale='3 3 3'> |
| 25 | <Switch DEF='BuoySelections' whichChoice='-1'> |
| 26 | <IS> |
| 27 | <connect nodeField='whichChoice' protoField='BuoyType'/> |
| 28 | </IS> |
| 29 | <Inline DEF='RedBuoy' url=' "../../../Savage/HarborEquipment/Buoys/RedBuoy.x3d" "https://savage.nps.edu/Savage/HarborEquipment/Buoys/RedBuoy.x3d" '/> |
| 30 | <Inline DEF='GreenBuoy' url=' "../../../Savage/HarborEquipment/Buoys/GreenBuoy.x3d" "https://savage.nps.edu/Savage/HarborEquipment/Buoys/GreenBuoy.x3d" '/> |
| 31 | <Inline DEF='MarkerBuoy.x3d' url=' "../../../Savage/HarborEquipment/Buoys/MarkerBuoy.x3d" "https://savage.nps.edu/Savage/HarborEquipment/Buoys/MarkerBuoy.x3d" '/> |
| 32 | <Inline DEF='MooringBuoy' url=' "../../../Savage/HarborEquipment/Buoys/MooringBuoy.x3d" "https://savage.nps.edu/Savage/HarborEquipment/Buoys/MooringBuoy.x3d" '/> |
| 33 | <Inline DEF='MooringBuoy-HighDetail' url=' "../../../Savage/HarborEquipment/Buoys/MooringBuoyHighDetail.x3d" "https://savage.nps.edu/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='Buoy' DEF='BuoyPrototype'> |
| 39 | <fieldValue name='BuoyType' value='0'/> |
| 40 | </ProtoInstance> |
| 41 |
<!-- ROUTE information for Clock node:
[from fraction_changed to Counter.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='9' loop='true'/> |
| 42 |
<!-- ROUTE information for Counter node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to BuoyPrototype.BuoyType
]
-->
<IntegerSequencer DEF='Counter' key='0 0.2 0.4 0.6 0.8 1' keyValue='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 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 |
Counter
IntegerSequencer set_fraction SFFloat |
then
|
Counter
IntegerSequencer value_changed SFInt32 |
BuoyPrototype
ProtoInstance BuoyType SFInt32 |
|
BuoyPrototype
ProtoInstance Buoy |
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. |
<!--
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>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->