<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='ViewpointSequencerExample.x3d'/>
<meta name='descriptioncontent='Animate through a set of Viewpoints and repeat'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='11 December 2002'/>
<meta name='modifiedcontent='14 November 2014'/>
<meta name='subjectcontent='Viewpoint Tour'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Tools/Animation/ViewpointSequencerExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition : ViewpointSequencer

Index for DEF nodes : BackdropBox, CoordinateAxes, View0, View1, View2, View3, View4, Viewpoints

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, View0, View1, View2, View3, View4
-->
<Scene>
<ExternProtoDeclare name='ViewpointSequencerappinfo='Sequentially binds each Viewpoint in a set of Viewpoint USE nodes, creating an automatic tour for a scene'
  url=' "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "https://savage.nps.edu/Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" "https://savage.nps.edu/Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" '>
<field name='viewpointstype='MFNodeaccessType='initializeOnly'
 appinfo='Viewpoint USE nodes that are sequentially bound'/>

<field name='intervaltype='SFTimeaccessType='inputOutput'
 appinfo='number of seconds between viewpoint shifts'/>

<field name='enabledtype='SFBoolaccessType='inputOutput'
 appinfo='whether ViewpointSequencer is enabled or not'/>

<field name='set_enabledtype='SFBoolaccessType='inputOnly'
 appinfo='whether ViewpointSequencer is enabled or not'/>

<field name='previoustype='SFBoolaccessType='inputOnly'
 appinfo='bind previous Viewpoint in list'/>

<field name='nexttype='SFBoolaccessType='inputOnly'
 appinfo='bind next Viewpoint in list'/>

<field name='toggleMessagetype='MFStringaccessType='inputOutput'
 appinfo='Select message to toggle ViewpointSequencer'/>

<field name='toggleMessageFontSizetype='SFFloataccessType='initializeOnly'
 appinfo='Font size for toggleMessage text'/>

<field name='toggleMessageColortype='SFColoraccessType='inputOutput'
 appinfo='Color for toggleMessage text'/>

<field name='traceEnabledtype='SFBoolaccessType='inputOutput'
 appinfo='enable console output'/>
</ExternProtoDeclare>
<!-- ===============Example============== -->
<Group DEF='Viewpoints'>
<Viewpoint DEF='View0description='View zero (+Y axis)orientation='1 0 0 -1.57position='0 10 0'/>
<Viewpoint DEF='View1description='View one (+Z axis)'/>
<Viewpoint DEF='View2description='View two (+X axis)orientation='0 1 0 1.57position='10 0 0'/>
<Viewpoint DEF='View3description='View three (-Z axis)orientation='0 1 0 3.14position='0 0 -10'/>
<Viewpoint DEF='View4description='View four (-X axis)orientation='0 1 0 -1.57position='-10 0 0'/>
</Group>
<Transform translation='0 -2 0'>
<ProtoInstance name='ViewpointSequencer'>
<fieldValue name='viewpoints'>
<Viewpoint USE='View0'/>
<Viewpoint USE='View1'/>
<Viewpoint USE='View2'/>
<Viewpoint USE='View3'/>
<Viewpoint USE='View4'/>
</fieldValue>
<fieldValue name='intervalvalue='2'/>
<!-- initially enabled is off, scene provides selectable text to activate -->
<fieldValue name='enabledvalue='false'/>
<fieldValue name='traceEnabledvalue='true'/>
</ProtoInstance>
</Transform>
<Shape>
<Box DEF='BackdropBoxsize='0.2 0.4 0.6'/>
<Appearance>
<Material diffuseColor='1 0.4 0.2'/>
</Appearance>
</Shape>
<Inline DEF='CoordinateAxes'
  url=' "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../Tools/Authoring/CoordinateAxes.x3d" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "../../Tools/Authoring/CoordinateAxes.wrl" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.wrl" '/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : ViewpointSequencer

Index for DEF nodes : BackdropBox, CoordinateAxes, View0, View1, View2, View3, View4, Viewpoints

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, View0, View1, View2, View3, View4
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->