<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<component level='1name='Geospatial'/>
<component level='2name='NURBS'/>
<component level='2name='Core'/>
<component level='1name='Navigation'/>
<component level='1name='Text'/>
<meta name='titlecontent='X3dHeaderPrototypeSyntaxExamples.x3d'/>
<meta name='descriptioncontent='X3D scene header and prototype syntax examples. This example header indicates that the content is XML encoded, follows the Interactive Profile and explicitly lists additional necessary components. The X3D header may also contain additional semantic information. Used for specification EXAMPLE excerpts in 19776:1 XML Encoding.'/>
<meta name='createdcontent='14 October 2002'/>
<meta name='modifiedcontent='28 October 2019'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='specificationSectioncontent=' X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, 4.3 XML file syntax'/>
<meta name='specificationUrlcontent=' https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#XMLFileSyntax '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition : ViewPositionOrientation

Index for ProtoDeclare definitions : EmissiveMaterial, NewWorldInfoNode, ShiftGroupUp2m

Index for DEF nodes : Clock, DefaultNodeValue, ExampleChildElement, ExamplePrototypeBody, ExampleSingleElement, someInline, Spinner, StayInPlace, TransformExampleUSE

Index for Viewpoint image : ExampleSingleElement
-->
<Scene>
<ExternProtoDeclare name='ViewPositionOrientation'
  url=' "../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" '>
<field name='enabledtype='SFBoolaccessType='inputOutput'/>
<field name='traceEnabledtype='SFBoolaccessType='initializeOnly'/>
<field name='set_traceEnabledtype='SFBoolaccessType='inputOnly'/>
<field name='position_changedtype='SFVec3faccessType='outputOnly'/>
<field name='orientation_changedtype='SFRotationaccessType='outputOnly'/>
<field name='outputViewpointStringtype='MFStringaccessType='outputOnly'/>
</ExternProtoDeclare>
<ProtoDeclare name='NewWorldInfoNode'>
<ProtoBody>
<WorldInfo DEF='ExamplePrototypeBody'/>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='NewWorldInfoNode'/>
<ProtoDeclare name='EmissiveMaterial'>
<ProtoInterface>
<field name='onlyColortype='SFColorvalue='1 0 0accessType='inputOutput'/>
</ProtoInterface>
<ProtoBody>
<!-- Override default diffuseColor value 0.8 0.8 0.8 -->
<Material diffuseColor='0 0 0'>
<!-- Connect emissiveColor field of current node to onlyColor field of parent ProtoDeclare. -->
<IS>
<connect nodeField='emissiveColorprotoField='onlyColor'/>
</IS>
</Material>
</ProtoBody>
</ProtoDeclare>
<ProtoDeclare name='ShiftGroupUp2m'>
<ProtoInterface>
<field name='childrentype='MFNodeaccessType='inputOutput'>
<Group DEF='DefaultNodeValuebboxSize='2 2 2'>
<!-- Authors need to override this node when creating the ProtoInstance fieldValue name="children" -->
</Group>
</field>
</ProtoInterface>
<ProtoBody>
<Transform translation='0 2 0'>
<Group>
<IS>
<connect nodeField='childrenprotoField='children'/>
</IS>
</Group>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='ShiftGroupUp2m'/>
<!-- ==================== -->
<Viewpoint DEF='ExampleSingleElementdescription='Hello syntax'/>
<Group DEF='ExampleChildElement'>
<Shape>
<Box/>
<Appearance>
<Material diffuseColor='0.6 0.4 0.2'/>
</Appearance>
</Shape>
</Group>
<!-- ROUTE information for TransformExampleUSE node:  [from Spinner.value_changed to rotation ] -->
<Transform DEF='TransformExampleUSErotation='0 1 0 0.78translation='0 2.5 0'>
<Group USE='ExampleChildElement'/>
</Transform>
<Collision>
<Shape containerField='proxy'>
<!-- note that Collision proxy Shape is not rendered -->
<Sphere/>
<Appearance>
<Material/>
</Appearance>
</Shape>
<Group USE='ExampleChildElement'/>
</Collision>
<Transform translation='0 -2.5 0'>
<Shape>
<Appearance>
<ProtoInstance name='EmissiveMaterialcontainerField='material'>
<fieldValue name='onlyColorvalue='0.2 0.6 0.6'/>
</ProtoInstance>
</Appearance>
<Text string='"X3D Header Prototype syntax examples" "(view console for EXTERNPROTO output)"'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.6'/>
</Text>
</Shape>
</Transform>
<ProtoInstance name='ViewPositionOrientation'>
<fieldValue name='enabledvalue='true'/>
</ProtoInstance>
<!-- ROUTE information for Clock node:  [from fraction_changed to Spinner.set_fraction ] [from fraction_changed to StayInPlace.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='4loop='true'/>
<!-- ROUTE information for Spinner node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to TransformExampleUSE.rotation ] -->
<OrientationInterpolator DEF='Spinnerkey='0 0.5 1keyValue='0 1 0 0 0 1 0 3.14159 0 1 0 6.28318'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='SpinnertoField='set_fraction'/>
<ROUTE fromNode='SpinnerfromField='value_changedtoNode='TransformExampleUSEtoField='rotation'/>
<Inline DEF='someInline'
  url=' "someUrl.x3d" "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/someUrl.x3d" '/>

<IMPORT inlineDEF='someInlineimportedDEF='someNameAS='someInlineRoot'/>
<!-- ROUTE information for StayInPlace node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to someInlineRoot.set_translation ] -->
<PositionInterpolator DEF='StayInPlacekey='0 1keyValue='0 0 0 0 0 0'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='StayInPlacetoField='set_fraction'/>
<ROUTE fromNode='StayInPlacefromField='value_changedtoNode='someInlineRoottoField='set_translation'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : ViewPositionOrientation

Index for ProtoDeclare definitions : EmissiveMaterial, NewWorldInfoNode, ShiftGroupUp2m

Index for DEF nodes : Clock, DefaultNodeValue, ExampleChildElement, ExamplePrototypeBody, ExampleSingleElement, someInline, Spinner, StayInPlace, TransformExampleUSE

Index for Viewpoint image : ExampleSingleElement
-->

<!-- 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 -->