<?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='SliderExample.x3d'/>
<meta name='creatorcontent='Mike Hunsberger'/>
<meta name='createdcontent='12 February 2001'/>
<meta name='modifiedcontent='11 November 2015'/>
<meta name='descriptioncontent='This example uses an external proto SliderProto to generate a slider that produces integer values.'/>
<meta name=' warning content=' needs troubleshooting. '/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definitions : ScaledSFFloat, SingleTypeConversion, Slider

Index for DEF nodes : Converter, Scaler, Slider, VALUE_TEXT

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<ExternProtoDeclare name='Slider'
  url=' "SliderPrototype.x3d#Slider" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.x3d#Slider" "SliderPrototype.wrl#Slider" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.wrl#Slider" '>
<field name='heighttype='SFFloataccessType='initializeOnly'/>
<field name='radiustype='SFFloataccessType='initializeOnly'/>
<field name='mintype='SFInt32accessType='initializeOnly'/>
<field name='maxtype='SFInt32accessType='initializeOnly'/>
<field name='valuetype='SFInt32accessType='initializeOnly'/>
<field name='set_mintype='SFInt32accessType='inputOnly'/>
<field name='set_maxtype='SFInt32accessType='inputOnly'/>
<field name='set_valuetype='SFInt32accessType='outputOnly'/>
<field name='value_changedtype='SFInt32accessType='outputOnly'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='ScaledSFFloat'
  url=' "SliderPrototype.x3d#ScaledSFFloat" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.x3d#ScaledSFFloat" "SliderPrototype.wrl#ScaledSFFloat" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.wrl#ScaledSFFloat" '>
<field name='oldMintype='SFFloataccessType='initializeOnly'/>
<field name='oldMaxtype='SFFloataccessType='initializeOnly'/>
<field name='newMintype='SFFloataccessType='initializeOnly'/>
<field name='newMaxtype='SFFloataccessType='initializeOnly'/>
<field name='set_oldMintype='SFFloataccessType='inputOnly'/>
<field name='set_oldMaxtype='SFFloataccessType='inputOnly'/>
<field name='set_newMintype='SFFloataccessType='inputOnly'/>
<field name='set_newMaxtype='SFFloataccessType='inputOnly'/>
<field name='set_valuetype='SFFloataccessType='inputOnly'/>
<field name='value_changedtype='SFFloataccessType='outputOnly'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='SingleTypeConversion'
  url=' "SliderPrototype.x3d#SingleTypeConversion" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.x3d#SingleTypeConversion" "SliderPrototype.wrl#SingleTypeConversion" "https://savage.nps.edu/Savage/Tools/ExerciseClock/SliderPrototype.wrl#SingleTypeConversion" '>
<field name='SFBoolValuetype='SFBoolaccessType='inputOnly'/>
<field name='SFFloatValuetype='SFFloataccessType='inputOnly'/>
<field name='SFInt32Valuetype='SFInt32accessType='inputOnly'/>
<field name='SFStringValuetype='SFStringaccessType='inputOnly'/>
<field name='SFBoolResulttype='SFBoolaccessType='outputOnly'/>
<field name='SFFloatResulttype='SFFloataccessType='outputOnly'/>
<field name='SFInt32Resulttype='SFInt32accessType='outputOnly'/>
<field name='SFStringResulttype='SFStringaccessType='outputOnly'/>
<field name='MFStringResulttype='MFStringaccessType='outputOnly'/>
</ExternProtoDeclare>
<Viewpoint description='Slider Example'/>
<Transform rotation='0 0 1 -1.57079'>
<!-- ROUTE information for Slider node:  [from value_changed to Converter.SFInt32Value ] -->
<ProtoInstance name='SliderDEF='Slider'>
<fieldValue name='minvalue='0'/>
<fieldValue name='maxvalue='24'/>
<fieldValue name='heightvalue='5'/>
<fieldValue name='radiusvalue='0.1'/>
<fieldValue name='valuevalue='12'/>
</ProtoInstance>
</Transform>
<Transform translation='4 2 0'>
<Shape>
<!-- ROUTE information for VALUE_TEXT node:  [from Converter.MFStringResult to set_string ] -->
<Text DEF='VALUE_TEXTstring='"Value"'/>
</Shape>
</Transform>
<!-- ROUTE information for Converter node:  [from Slider.value_changed to SFInt32Value ] [from SFFloatResult to Scaler.set_value ] [from MFStringResult to VALUE_TEXT.set_string ] -->
<ProtoInstance name='SingleTypeConversionDEF='Converter'/>
<!-- ROUTE information for Scaler node:  [from Converter.SFFloatResult to set_value ] -->
<ProtoInstance name='ScaledSFFloatDEF='Scaler'>
<fieldValue name='oldMinvalue='0'/>
<fieldValue name='oldMaxvalue='24'/>
<fieldValue name='newMinvalue='0'/>
<fieldValue name='newMaxvalue='1'/>
</ProtoInstance>
<ROUTE fromNode='SliderfromField='value_changedtoNode='ConvertertoField='SFInt32Value'/>
<ROUTE fromNode='ConverterfromField='SFFloatResulttoNode='ScalertoField='set_value'/>
<ROUTE fromNode='ConverterfromField='MFStringResulttoNode='VALUE_TEXTtoField='set_string'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definitions : ScaledSFFloat, SingleTypeConversion, Slider

Index for DEF nodes : Converter, Scaler, Slider, VALUE_TEXT

Index for Viewpoint image : Viewpoint_1
-->

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