<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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 ' >
<head>
<meta name='titlecontent=' DolphinSwitcher.x3d '/>
<meta name='descriptioncontent='Switch animation among three different dolphin poses in a freeze-frame style.'/>
<meta name='creatorcontent='Chris Lang'/>
<meta name='createdcontent='1 August 2007'/>
<meta name='modifiedcontent='1 April 2020'/>
<meta name='referencecontent=' DolphinMorpher.x3d '/>
<meta name='referencecontent=' DolphinPose01.x3d '/>
<meta name='referencecontent=' DolphinPose02.x3d '/>
<meta name='referencecontent=' DolphinPose03.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinSwitcher.x3d '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcher.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CurvedDownwardPose, CurvedUpwardPose, NeutralPose, Sequencer, Switch, Time

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo title='DolphinSwitcher.x3d'/>
<Background groundColor='1 1 1skyColor='1 1 1'/>
<Viewpoint description='Dolphin switcher, 2m awayposition='0 0 2'/>
<!-- Modify the whichChoice value in this Switch to 0, 1 or 2 to see the various versions of the model. Select whichChoice= -1 to show nothing. -->
<!-- ROUTE information for Switch node:  [from Sequencer.value_changed to whichChoice ] -->
<Switch DEF='SwitchwhichChoice='2'>
<!-- whichChoice values are 0, 1, 2 for these three children -->
<Group DEF='CurvedUpwardPose'> </Group>
<Group DEF='NeutralPose'> </Group>
<Group DEF='CurvedDownwardPose'> </Group>
</Switch>
<!-- ROUTE information for Sequencer node:  [from Time.fraction_changed to set_fraction ] [from value_changed to Switch.whichChoice ] -->
<IntegerSequencer DEF='Sequencerkey='0 0.25 0.5 0.75 1keyValue='0 1 2 1 0'/>

<!-- ROUTE information for Time node:  [from fraction_changed to Sequencer.set_fraction ] -->
<TimeSensor DEF='TimecycleInterval='4loop='true'/>

< ROUTE  fromNode=' Sequencer' fromField='value_changed' toNode=' Switch' toField='whichChoice'/>
< ROUTE  fromNode=' Time' fromField='fraction_changed' toNode=' Sequencer' toField='set_fraction'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CurvedDownwardPose, CurvedUpwardPose, NeutralPose, Sequencer, Switch, Time

Index for Viewpoint node: Viewpoint_1
-->

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

Time
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Sequencer
IntegerSequencer
set_fraction
SFFloat

 
 
then
Sequencer
IntegerSequencer
value_changed
SFInt32

ROUTE
event to
(2)
Switch
Switch
whichChoice
SFInt32


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcherIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcher.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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->