| 1 | <?xml version="1.0" encoding="UTF-8"?> | 
| 2 | <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd"> | 
| 3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> | 
| 4 | <head> | 
| 5 | <meta name='title' content=' set_lefturlpng.x3d '/> | 
| 6 | <meta name='reference' content=' http://www.nist.gov/vrml.html '/> | 
| 7 | <meta name='reference' content=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/> | 
| 8 | <meta name='creator' content=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/> | 
| 9 | <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 (NIST). 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. '/> | 
| 10 | <meta name='reference' content='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/> | 
| 11 | <meta name='reference' content='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml'/> | 
| 12 | <meta name='info' content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/> | 
| 13 | <meta name='creator' content='Michael Kass NIST'/> | 
| 14 | <meta name='translator' content='Don Brutzman'/> | 
| 15 | <meta name='translated' content='21 January 2001'/> | 
| 16 | <meta name='modified' content='28 August 2023'/> | 
| 17 | <meta name='description' content='Test browser to switch between different backgrounds where each one contains a different lefturl PNG image associated with it. The left image may be changed by clicking on the appropriate text as indicated. The test should generate a different PNG image each time the appropriate text is clicked. All images are on PNG format and are from the from mountains of the High Sierra. A viewpoint node is set so that the image will be rotated 1.57 radians along the Y axis the make it possible to see and toggle the images.'/> | 
| 18 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set_lefturlpng.x3d '/> | 
| 19 | <meta name='generator' content=' Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html '/> | 
| 20 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> | 
| 21 | <meta name='license' content='../../license.html'/> | 
| 22 | </head> | 
 DEF nodes index: 
               
               back1,
back2,
back3,
back4,
big-trans,
image-back1,
image-back2,
image-back3,
image-back4,
the-appearance,
the-style,
the-touch1,
the-touch2,
the-touch3,
the-touch4,
the-view1
               
               
                  DEF nodes index: 
               
               back1,
back2,
back3,
back4,
big-trans,
image-back1,
image-back2,
image-back3,
image-back4,
the-appearance,
the-style,
the-touch1,
the-touch2,
the-touch3,
the-touch4,
the-view1
| 23 | <Scene> | 
| 24 | <WorldInfo title='set_lefturlpng.x3d'/> | 
| 25 | <NavigationInfo type='"EXAMINE" "WALK" "FLY" "ANY"'/> | 
| 26 | <Group> | 
| 27 | <Viewpoint DEF='the-view1' description='Left View' orientation='0 1 0 1.57' position='-10 0 20'/> | 
| 28 | </Group> | 
| 29 | <Group> | 
| 30 | 
               <!-- ROUTE information for back1 node: 
[from image-back1.value_out to set_bind
                              ]
 --> <Background DEF='back1' groundColor='0 0 0' backUrl=' "mt-humphreys.jpg  "  "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-humphreys.jpg  " '/> | 
| 31 | 
               <!-- ROUTE information for back2 node: 
[from image-back2.value_out to set_bind
                              ]
 --> <Background DEF='back2' groundColor='0 0 0' backUrl=' "lostlakes.jpg  "  "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/lostlakes.jpg  " '/> | 
| 32 | 
               <!-- ROUTE information for back3 node: 
[from image-back3.value_out to set_bind
                              ]
 --> <Background DEF='back3' groundColor='0 0 0' backUrl=' "mt-huxley.jpg  "  "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-huxley.jpg  " '/> | 
| 33 | 
               <!-- ROUTE information for back4 node: 
[from image-back4.value_out to set_bind
                              ]
 --> <Background DEF='back4' groundColor='0 0 0' backUrl=' "mt-whitney.jpg  "  "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-whitney.jpg  " '/> | 
| 34 | </Group> | 
| 35 | <Transform DEF='big-trans' rotation='0 1 0 1.57' translation='-20 0 20'> | 
| 36 | <Transform scale='0.02 0.02 0.02' translation='-5.4 -2 0'> | 
| 37 | <Shape> | 
| 38 | <Appearance> | 
| 39 | <Material ambientIntensity='1' diffuseColor='0 1 0' emissiveColor='0 1 0'/> | 
| 40 | </Appearance> | 
| 41 | <Text string='"CLICK TO SELECT LEFT URL IMAGE"'> | 
| 42 | |
| 43 | </Text> | 
| 44 | </Shape> | 
| 45 | </Transform> | 
| 46 | <Transform scale='0.02 0.02 0.02' translation='-5.4 -2.7 0'> | 
| 47 | <Shape> | 
| 48 | 
                         <!-- Appearance
                                          the-appearance is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <Appearance DEF='the-appearance'> | 
| 49 | <Material ambientIntensity='1' diffuseColor='0 0 1' emissiveColor='0 0 1'/> | 
| 50 | </Appearance> | 
| 51 | <Text string='"Mt. Humphreys"'> | 
| 52 | <FontStyle USE='the-style'/> | 
| 53 | </Text> | 
| 54 | </Shape> | 
| 55 | 
                    <!-- ROUTE information for the-touch1 node: 
[from isActive to image-back1.value_in
                                    ]
 --> <TouchSensor DEF='the-touch1' description='touch to activate'/> | 
| 56 | </Transform> | 
| 57 | <Transform scale='0.02 0.02 0.02' translation='-5.4 -3.4 0'> | 
| 58 | <Shape> | 
| 59 | <Appearance USE='the-appearance'/> | 
| 60 | <Text string='"Lost Lakes"'> | 
| 61 | <FontStyle USE='the-style'/> | 
| 62 | </Text> | 
| 63 | </Shape> | 
| 64 | 
                    <!-- ROUTE information for the-touch2 node: 
[from isActive to image-back2.value_in
                                    ]
 --> <TouchSensor DEF='the-touch2' description='touch to activate'/> | 
| 65 | </Transform> | 
| 66 | <Transform scale='0.02 0.02 0.02' translation='1 -2.7 0'> | 
| 67 | <Shape> | 
| 68 | <Appearance USE='the-appearance'/> | 
| 69 | <Text string='"Mt. Huxley"'> | 
| 70 | <FontStyle USE='the-style'/> | 
| 71 | </Text> | 
| 72 | </Shape> | 
| 73 | 
                    <!-- ROUTE information for the-touch3 node: 
[from isActive to image-back3.value_in
                                    ]
 --> <TouchSensor DEF='the-touch3' description='touch to activate'/> | 
| 74 | </Transform> | 
| 75 | <Transform scale='0.02 0.02 0.02' translation='1 -3.4 0'> | 
| 76 | <Shape> | 
| 77 | <Appearance USE='the-appearance'/> | 
| 78 | <Text string='"Mt. Whitney"'> | 
| 79 | <FontStyle USE='the-style'/> | 
| 80 | </Text> | 
| 81 | </Shape> | 
| 82 | 
                    <!-- ROUTE information for the-touch4 node: 
[from isActive to image-back4.value_in
                                    ]
 --> <TouchSensor DEF='the-touch4' description='touch to activate'/> | 
| 83 | </Transform> | 
| 84 | </Transform> | 
| 85 | 
          <!-- ROUTE information for image-back1 node: 
[from the-touch1.isActive to value_in
                        ]
[from value_out to back1.set_bind
                        ]
 --> <Script DEF='image-back1'> | 
| 86 | <field name='value_in' type='SFBool' accessType='inputOnly'/> | 
| 87 | <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;}
}
    
                                 ]]>
                               | |
| 89 | </Script> | 
| 90 | 
          <!-- ROUTE information for image-back2 node: 
[from the-touch2.isActive to value_in
                        ]
[from value_out to back2.set_bind
                        ]
 --> <Script DEF='image-back2'> | 
| 91 | <field name='value_in' type='SFBool' accessType='inputOnly'/> | 
| 92 | <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;
	}
}
    
                                 ]]>
                               | |
| 94 | </Script> | 
| 95 | 
          <!-- ROUTE information for image-back3 node: 
[from the-touch3.isActive to value_in
                        ]
[from value_out to back3.set_bind
                        ]
 --> <Script DEF='image-back3'> | 
| 96 | <field name='value_in' type='SFBool' accessType='inputOnly'/> | 
| 97 | <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;
	}
}
    
                                 ]]>
                               | |
| 99 | </Script> | 
| 100 | 
          <!-- ROUTE information for image-back4 node: 
[from the-touch4.isActive to value_in
                        ]
[from value_out to back4.set_bind
                        ]
 --> <Script DEF='image-back4'> | 
| 101 | <field name='value_in' type='SFBool' accessType='inputOnly'/> | 
| 102 | <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;
	}
}
    
                                 ]]>
                               | |
| 104 | </Script> | 
| 105 | < ROUTE fromNode='the-touch1' fromField='isActive' toNode='image-back1' toField='value_in'/> | 
| 106 | < ROUTE fromNode='the-touch2' fromField='isActive' toNode='image-back2' toField='value_in'/> | 
| 107 | < ROUTE fromNode='the-touch3' fromField='isActive' toNode='image-back3' toField='value_in'/> | 
| 108 | < ROUTE fromNode='the-touch4' fromField='isActive' toNode='image-back4' toField='value_in'/> | 
| 109 | < ROUTE fromNode='image-back1' fromField='value_out' toNode='back1' toField='set_bind'/> | 
| 110 | < ROUTE fromNode='image-back2' fromField='value_out' toNode='back2' toField='set_bind'/> | 
| 111 | < ROUTE fromNode='image-back3' fromField='value_out' toNode='back3' toField='set_bind'/> | 
| 112 | < ROUTE fromNode='image-back4' fromField='value_out' toNode='back4' toField='set_bind'/> | 
| 113 | </Scene> | 
| 114 | </X3D> | 
 DEF nodes index: 
         
         back1,
back2,
back3,
back4,
big-trans,
image-back1,
image-back2,
image-back3,
image-back4,
the-appearance,
the-style,
the-touch1,
the-touch2,
the-touch3,
the-touch4,
the-view1
         
         
            DEF nodes index: 
         
         back1,
back2,
back3,
back4,
big-trans,
image-back1,
image-back2,
image-back3,
image-back4,
the-appearance,
the-style,
the-touch1,
the-touch2,
the-touch3,
the-touch4,
the-view1
Event Graph ROUTE Table entries with 8 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
| the-touch1 TouchSensor isActive SFBool | image-back1 Script value_in SFBool | then | image-back1 Script value_out SFBool | back1 Background set_bind SFBool | 
| the-touch2 TouchSensor isActive SFBool | image-back2 Script value_in SFBool | then | image-back2 Script value_out SFBool | back2 Background set_bind SFBool | 
| the-touch3 TouchSensor isActive SFBool | image-back3 Script value_in SFBool | then | image-back3 Script value_out SFBool | back3 Background set_bind SFBool | 
| the-touch4 TouchSensor isActive SFBool | image-back4 Script value_in SFBool | then | image-back4 Script value_out SFBool | back4 Background set_bind SFBool | 
         <!--
Color-coding legend: X3D terminology 
<X3dNode
          DEF='idName' field='value'/> 
 matches XML terminology 
<XmlElement
          DEF='idName' attribute='value'/> 
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
          -->
      
         
             <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->
         
         <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->