<?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='SliderFloatExample.x3d'/>
<meta name='descriptioncontent='This is an example of the SliderFloatPrototype, showing a slider bar starting at 12 and ranging from 0 to 24.'/>
<meta name='creatorcontent='Jane Wu'/>
<meta name='createdcontent='17 October 2001'/>
<meta name='modifiedcontent='14 January 2014'/>
<meta name='TODOcontent='slow it down, change to positive control by user selection'/>
<meta name='subjectcontent='float slider example'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Tools/Animation/SliderFloatExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definitions : SingleTypeConversion, SliderFloat

Index for DEF nodes : FloatConverter, FontOutputText, ResultString, SliderExample

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<ExternProtoDeclare name='SliderFloatappinfo='Slider user-interface widget that produces floating-point output values'
  url=' "SliderFloatPrototype.x3d#SliderFloat" "../../../Savage/Tools/Animation/SliderFloatPrototype.x3d#SliderFloat" "https://savage.nps.edu/Savage/Tools/Animation/SliderFloatPrototype.x3d#SliderFloat" "SliderFloatPrototype.wrl#SliderFloat" "../../../Savage/Tools/Animation/SliderFloatPrototype.wrl#SliderFloat" "https://savage.nps.edu/Savage/Tools/Animation/SliderFloatPrototype.wrl#SliderFloat" '>
<field name='layoutDirectiontype='SFStringaccessType='initializeOnly'
 appinfo='Allowed values: vertical, horizontal'/>

<field name='heighttype='SFFloataccessType='initializeOnly'
 appinfo='default value 1.0'/>

<field name='radiustype='SFFloataccessType='initializeOnly'
 appinfo='default value 0.1'/>

<field name='barRadiustype='SFFloataccessType='initializeOnly'
 appinfo='default value 0.02'/>

<field name='sliderBarColortype='SFColoraccessType='initializeOnly'
 appinfo='default value .8 .4 .8'/>

<field name='sliderBallColortype='SFColoraccessType='initializeOnly'
 appinfo='default value .3 .4 .8'/>

<field name='sliderEndColortype='SFColoraccessType='initializeOnly'
 appinfo='default value .2 .3 .9'/>

<field name='mintype='SFFloataccessType='initializeOnly'
 appinfo='default value 0.0'/>

<field name='maxtype='SFFloataccessType='initializeOnly'
 appinfo='default value 10.0'/>

<field name='valuetype='SFFloataccessType='initializeOnly'
 appinfo='default value 0.0'/>

<field name='setMintype='SFFloataccessType='inputOnly'
 appinfo='set minimum value for slider bar'/>

<field name='setMaxtype='SFFloataccessType='inputOnly'
 appinfo='set maximum value for slider bar'/>

<field name='setValuetype='SFFloataccessType='inputOnly'
 appinfo='set value for slider bar'/>

<field name='valueChangedtype='SFFloataccessType='outputOnly'
 appinfo='output value for slider bar'/>

<field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
 appinfo='enable/disable console output for troubleshooting'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='SingleTypeConversionappinfo='SingleTypeConversion converts from a single typed value to various other types of values'
  url=' "../../../Savage/Tools/Authoring/SingleTypeConversionPrototype.x3d#SingleTypeConversion" "https://savage.nps.edu/Savage/Tools/Authoring/SingleTypeConversionPrototype.x3d#SingleTypeConversion" "../../../Savage/Tools/Authoring/SingleTypeConversionPrototype.wrl#SingleTypeConversion" "https://savage.nps.edu/Savage/Tools/Authoring/SingleTypeConversionPrototype.wrl#SingleTypeConversion" '>
<field name='decimalPlacestype='SFInt32accessType='initializeOnly'
 appinfo='decimalPlaces is the number of significant digits after the decimal point, use -1 to indicate no round off'/>

<field name='setDecimalPlacestype='SFInt32accessType='inputOnly'/>
<field name='BooleanValuetype='SFBoolaccessType='inputOnly'/>
<field name='FloatValuetype='SFFloataccessType='inputOnly'/>
<field name='IntegerValuetype='SFInt32accessType='inputOnly'/>
<field name='BooleanResulttype='SFBoolaccessType='outputOnly'/>
<field name='FloatResulttype='SFFloataccessType='outputOnly'/>
<field name='IntegerResulttype='SFInt32accessType='outputOnly'/>
<field name='StringResulttype='SFStringaccessType='outputOnly'/>
<field name='StringsResulttype='MFStringaccessType='outputOnly'/>
<field name='TimeResulttype='SFTimeaccessType='outputOnly'/>
<field name='TimeValuetype='SFTimeaccessType='inputOnly'/>
</ExternProtoDeclare>
<!-- Scene graph begins here -->
<Viewpoint description='Drag slider ball to change valuesposition='0 1 9'/>
<Billboard axisOfRotation='0 0 0'>
<Transform translation='0 2.5 0'>
<Shape>
<Appearance>
<Material diffuseColor='0 1 1'/>
</Appearance>
<Text string=' "Drag slider ball"
"to change values,"
"select end stops to"
"increment/decrement"
'>
<FontStyle DEF='FontOutputTextjustify='"MIDDLE" "MIDDLE"size='0.9'/>
</Text>
</Shape>
</Transform>
<Transform translation='-0.8 -0.7 0'>
<Shape>
<Appearance>
<Material/>
</Appearance>
<!-- ROUTE information for ResultString node:  [from FloatConverter.StringsResult to set_string ] -->
<Text DEF='ResultString'>
<FontStyle USE='FontOutputText'/>
</Text>
</Shape>
</Transform>
<Transform translation='0 -2 0'>
<!-- ROUTE information for SliderExample node:  [from valueChanged to FloatConverter.FloatValue ] -->
<ProtoInstance name='SliderFloatDEF='SliderExample'>
<fieldValue name='layoutDirectionvalue='horizontal'/>
<fieldValue name='heightvalue='5'/>
<fieldValue name='radiusvalue='0.1'/>
<fieldValue name='barRadiusvalue='0.04'/>
<fieldValue name='sliderBarColorvalue='0.75 0.75 0.75'/>
<fieldValue name='minvalue='0.0'/>
<fieldValue name='maxvalue='24.0'/>
<fieldValue name='valuevalue='12.0'/>
<fieldValue name='traceEnabledvalue='true'/>
</ProtoInstance>
</Transform>
</Billboard>
<!-- ROUTE information for FloatConverter node:  [from SliderExample.valueChanged to FloatValue ] [from StringsResult to ResultString.set_string ] -->
<ProtoInstance name='SingleTypeConversionDEF='FloatConverter'>
<fieldValue name='decimalPlacesvalue='2'/>
</ProtoInstance>
<ROUTE fromNode='SliderExamplefromField='valueChangedtoNode='FloatConvertertoField='FloatValue'/>
<ROUTE fromNode='FloatConverterfromField='StringsResulttoNode='ResultStringtoField='set_string'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definitions : SingleTypeConversion, SliderFloat

Index for DEF nodes : FloatConverter, FontOutputText, ResultString, SliderExample

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