<head>
<meta name='title' content='set-fronturl.x3d'/>
<meta name='reference' content='
http://www.nist.gov/vrml.html
'/>
<meta name='reference' content='
http://www.itl.nist.gov/div897/ctg/vrml/vrml.html
'/>
<meta name='creator' content='
http://www.itl.nist.gov/div897/ctg/vrml/members.html
'/>
<meta name='disclaimer' content='
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='info' content='
Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, http://www.web3d.org/working-groups/x3d
'/>
<meta name='translator' content='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translated' content='21 January 2001'/>
<meta name='modified' content='13 February 2011'/>
<meta name='description' content='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='identifier' content='
http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set-fronturl.x3d
'/>
<meta name='generator' content='Vrml97ToX3dNist,
http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generator' content='X3D-Edit 3.3,
https://savage.nps.edu/X3D-Edit'/>
<meta name='license' content='
../../license.html'/>
</head>
<!--
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
-->
<Scene>
<NavigationInfo headlight='false' type='"EXAMINE" "WALK" "FLY" "ANY"'/>
<Group>
<Viewpoint DEF='the-view' description='Front View' position='0 0 20'/>
</Group>
<Group>
</Group>
<Transform translation='0 0 10'>
<Transform scale='0.02 0.02 0.02' translation='-5.4 -2 0'>
<Shape>
<Appearance>
<Material ambientIntensity='1' diffuseColor='0 1 0' emissiveColor='0 1 0'/>
</Appearance>
<Text string='"CLICK TO SELECT FRONT URL IMAGE"'>
<FontStyle DEF='the-style' justify='"FIRST" "FIRST"' size='28' style='BOLD'/>
</Text>
</Shape>
</Transform>
<Transform scale='0.02 0.02 0.02' translation='-5.4 -2.7 0'>
<Shape>
<Appearance DEF='the-appearance'>
<Material ambientIntensity='1' diffuseColor='0 0 1' emissiveColor='0 0 1'/>
</Appearance>
<Text string='"Mt. Humphreys"'>
</Text>
</Shape>
<!--
the-touch1 ROUTE:
[
from isActive to image-back1.value_in
]
-->
<TouchSensor DEF='the-touch1' description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02' translation='-5.4 -3.4 0'>
</Transform>
<Transform scale='0.02 0.02 0.02' translation='1 -2.7 0'>
</Transform>
<Transform scale='0.02 0.02 0.02' translation='1 -3.4 0'>
</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_in' type='SFBool' accessType='inputOnly'/>
<field name='value_out' type='SFBool' accessType='outputOnly'/>
<![CDATA[
ecmascript:
function value_in (the_value) {
if (the_value == true) { value_out = true; }
else { value_out = true;}
}
]]>
<![CDATA[
ecmascript:
function value_in (the_value)
{
if (the_value == true)
{
value_out = true;
}
else
{
value_out = true;
}
}
]]>
<![CDATA[
ecmascript:
function value_in (the_value)
{
if (the_value == true)
{
value_out = true;
}
else
{
value_out = true;
}
}
]]>
<![CDATA[
ecmascript:
function value_in (the_value)
{
if (the_value == true)
{
value_out = true;
}
else
{
value_out = true;
}
}
]]>
</Scene>