<?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='set-fronturl.x3d'/>
<meta name='referencecontent=' http://www.nist.gov/vrml.html '/>
<meta name='referencecontent=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='infocontent=' Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, http://www.web3d.org/working-groups/x3d '/>
<meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='13 February 2011'/>
<meta name='descriptioncontent='Test browser to switch between different backgrounds where each one contains a different fronturl JPEG image associated with it. The front image may be changed by clicking on the appropriate text as indicated. The test should generate a different JPEG image each time the appropriate text is clicked. All images are on JPEG format and are from the from mountains of the High Sierra. The viewpoint is set so that the viewer will face the front of the cube (along the +Z axis)'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set-fronturl.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<NavigationInfo headlight='falsetype='"EXAMINE" "WALK" "FLY" "ANY"'/>
<Group>
<Viewpoint DEF='the-viewdescription='Front Viewposition='0 0 20'/>
</Group>
<Group> </Group>
<Transform translation='0 0 10'>
<Transform scale='0.02 0.02 0.02translation='-5.4 -2 0'>
<Shape>
<Appearance>
<Material ambientIntensity='1diffuseColor='0 1 0emissiveColor='0 1 0'/>
</Appearance>
<Text string='"CLICK TO SELECT FRONT URL IMAGE"'>
<FontStyle DEF='the-stylejustify='"FIRST" "FIRST"size='28style='BOLD'/>
</Text>
</Shape>
</Transform>
<Transform scale='0.02 0.02 0.02translation='-5.4 -2.7 0'>
<Shape>
<Appearance DEF='the-appearance'>
<Material ambientIntensity='1diffuseColor='0 0 1emissiveColor='0 0 1'/>
</Appearance>
<Text string='"Mt. Humphreys"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- the-touch1 ROUTE:  [from isActive to image-back1.value_in ] -->
<TouchSensor DEF='the-touch1description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='-5.4 -3.4 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Lost Lakes"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- the-touch2 ROUTE:  [from isActive to image-back2.value_in ] -->
<TouchSensor DEF='the-touch2description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='1 -2.7 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Mt. Huxley"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- the-touch3 ROUTE:  [from isActive to image-back3.value_in ] -->
<TouchSensor DEF='the-touch3description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='1 -3.4 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Mt. Whitney"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- the-touch4 ROUTE:  [from isActive to image-back4.value_in ] -->
<TouchSensor DEF='the-touch4description='touch to activate'/>
</Transform>
</Transform>
<!-- image-back1 ROUTEs:  [from the-touch1.isActive to value_in ] [from value_out to back1.set_bind ] -->
<Script DEF='image-back1'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      ecmascript:
function value_in (the_value) {
	if (the_value == true) { value_out = true; }
	else { value_out = true;}
}
    
]]>
</Script>
<!-- image-back2 ROUTEs:  [from the-touch2.isActive to value_in ] [from value_out to back2.set_bind ] -->
<Script DEF='image-back2'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      ecmascript:

function value_in (the_value) 
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}
    
]]>
</Script>
<!-- image-back3 ROUTEs:  [from the-touch3.isActive to value_in ] [from value_out to back3.set_bind ] -->
<Script DEF='image-back3'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      ecmascript:

function value_in (the_value) 
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}
    
]]>
</Script>
<!-- image-back4 ROUTEs:  [from the-touch4.isActive to value_in ] [from value_out to back4.set_bind ] -->
<Script DEF='image-back4'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      ecmascript:

function value_in (the_value) 
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}
    
]]>
</Script>
<ROUTE fromNode='the-touch1fromField='isActivetoNode='image-back1toField='value_in'/>
<ROUTE fromNode='the-touch2fromField='isActivetoNode='image-back2toField='value_in'/>
<ROUTE fromNode='the-touch3fromField='isActivetoNode='image-back3toField='value_in'/>
<ROUTE fromNode='the-touch4fromField='isActivetoNode='image-back4toField='value_in'/>
<ROUTE fromNode='image-back1fromField='value_outtoNode='back1toField='set_bind'/>
<ROUTE fromNode='image-back2fromField='value_outtoNode='back2toField='set_bind'/>
<ROUTE fromNode='image-back3fromField='value_outtoNode='back3toField='set_bind'/>
<ROUTE fromNode='image-back4fromField='value_outtoNode='back4toField='set_bind'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : back1, back2, back3, back4, image-back1, image-back2, image-back3, image-back4, the-appearance, the-style, the-touch1, the-touch2, the-touch3, the-touch4, the-view

Index for Viewpoint image : the-view
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/> -->

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