| 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=' startgtstoploopfalse.x3d '/> | 
| 6 | <meta name='MovingImage' content='startgtstoploopfalse-movie.mpg'/> | 
| 7 | <meta name='reference' content=' http://www.nist.gov/vrml.html '/> | 
| 8 | <meta name='reference' content=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/> | 
| 9 | <meta name='creator' content=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/> | 
| 10 | <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. '/> | 
| 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 of looop set to false, and the startTime (clicking the "Start" button) is greater than stopTime (set to 4 in this example). The chime sound should play once only, then stop.If the "Stop" button is pressed any time before the sound completes its cycle, the sound should stop instantly.'/> | 
| 18 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/startgtstoploopfalse.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: 
               
               GOFLASH,
GOMATERIAL,
GOTIMER,
HORNCOLOR,
MYSOUND,
PHONOCOLOR,
PROX_SENSOR,
SOUND_SCRIPT,
START,
START_TRANS,
STOP,
STOP_TRANS,
STOPFLASH,
STOPMATERIAL,
STOPTIMER,
TOUCHSTART,
TOUCHSTOP
               
               
                  DEF nodes index: 
               
               GOFLASH,
GOMATERIAL,
GOTIMER,
HORNCOLOR,
MYSOUND,
PHONOCOLOR,
PROX_SENSOR,
SOUND_SCRIPT,
START,
START_TRANS,
STOP,
STOP_TRANS,
STOPFLASH,
STOPMATERIAL,
STOPTIMER,
TOUCHSTART,
TOUCHSTOP
| 23 | <Scene> | 
| 24 | <WorldInfo title='startgtstoploopfalse.x3d'/> | 
| 25 | <Viewpoint description='entry viewpoint' position='0 0 5'/> | 
| 26 | 
          <!-- ROUTE information for PROX_SENSOR node: 
[from position_changed to START_TRANS.set_translation
                        ]
[from orientation_changed to START_TRANS.set_rotation
                        ]
[from position_changed to STOP_TRANS.set_translation
                        ]
[from orientation_changed to STOP_TRANS.set_rotation
                        ]
 --> <ProximitySensor DEF='PROX_SENSOR' size='1000 1000 1000'/> | 
| 27 | <Sound> | 
| 28 | 
               <!-- ROUTE information for MYSOUND node: 
[from TOUCHSTART.touchTime to set_startTime
                              ]
[from TOUCHSTOP.touchTime to set_stopTime
                              ]
[from isActive to SOUND_SCRIPT.colorPhonograph
                              ]
 --> <AudioClip DEF='MYSOUND' description='chimes' startTime='4' stopTime='1' url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/> | 
| 29 | </Sound> | 
| 30 | <Transform scale='0.5 0.5 0.5'> | 
| 31 | <Transform translation='0 -2 0'> | 
| 32 | <Shape> | 
| 33 | <Appearance> | 
| 34 | 
                              <!-- Material
                                                PHONOCOLOR is a DEF node that has 1 USE node: USE_1 --> <Material DEF='PHONOCOLOR'/> | 
| 35 | </Appearance> | 
| 36 | <Box size='3 1.5 3'/> | 
| 37 | </Shape> | 
| 38 | </Transform> | 
| 39 | <Transform rotation='1 0 0 -2.5'> | 
| 40 | <Shape> | 
| 41 | <Appearance> | 
| 42 | |
| 43 | </Appearance> | 
| 44 | <Extrusion beginCap='false' creaseAngle='1.57' crossSection='1 0 0.92388 0.382683 0.707107 0.707106 0.382684 0.923879 1.26759e-006 1 -0.382682 0.92388 -0.707105 0.707108 -0.923879 0.382685 -1 2.53518e-006 -0.923881 -0.382681 -0.707109 -0.707105 -0.382687 -0.923878 -3.80277e-006 -1 0.38268 -0.923881 0.707104 -0.70711 0.923878 -0.382688 1 0' endCap='false' orientation='0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0' scale='2.2 2.2 1.8 1.8 1.4 1.4 1.2 1.2 1 1 0.8 0.8 0.6 0.6 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.2 0.2 0.0001 0.0001' solid='false' spine='0 -1.4 0 0 -1.22137 0 0 -1.01245 0 0 -0.819601 0 0 -0.626754 0 0 -0.401765 0 0 -0.204459 0 0 -0.0164327 0 0 0.176777 0 0 0.380511 0 0 0.578542 0 0 0.819601 0 0 0.996378 0 0 1.8 0 0 1.2 0'/> | 
| 45 | </Shape> | 
| 46 | </Transform> | 
| 47 | </Transform> | 
| 48 | 
          <!-- ROUTE information for START_TRANS node: 
[from PROX_SENSOR.position_changed to set_translation
                        ]
[from PROX_SENSOR.orientation_changed to set_rotation
                        ]
 --> <Transform DEF='START_TRANS'> | 
| 49 | <Transform translation='-3 1.5 -5'> | 
| 50 | <Shape> | 
| 51 | <Appearance> | 
| 52 | 
                              <!-- ROUTE information for GOMATERIAL node: 
[from GOFLASH.value_changed to set_diffuseColor
                                                ]
 --> <Material DEF='GOMATERIAL' ambientIntensity='1' diffuseColor='0 1 0'/> | 
| 53 | </Appearance> | 
| 54 | <Box DEF='START' size='1 1 0.1'/> | 
| 55 | </Shape> | 
| 56 | <Transform translation='-0.35 -0.1 0.2'> | 
| 57 | <Shape> | 
| 58 | <Appearance> | 
| 59 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> | 
| 60 | </Appearance> | 
| 61 | <Text string='"Start"'> | 
| 62 | <FontStyle size='0.4'/> | 
| 63 | </Text> | 
| 64 | </Shape> | 
| 65 | </Transform> | 
| 66 | </Transform> | 
| 67 | 
               <!-- ROUTE information for TOUCHSTART node: 
[from touchTime to MYSOUND.set_startTime
                              ]
[from touchTime to GOTIMER.set_startTime
                              ]
 --> <TouchSensor DEF='TOUCHSTART' description='touch to start'/> | 
| 68 | 
               <!-- ROUTE information for GOTIMER node: 
[from TOUCHSTART.touchTime to set_startTime
                              ]
[from fraction_changed to GOFLASH.set_fraction
                              ]
 --> <TimeSensor DEF='GOTIMER'/> | 
| 69 | 
               <!-- ROUTE information for GOFLASH node: 
[from GOTIMER.fraction_changed to set_fraction
                              ]
[from value_changed to GOMATERIAL.set_diffuseColor
                              ]
 --> <ColorInterpolator DEF='GOFLASH' key='0 0.5 1' keyValue='0 1 0 1 1 1 0 1 0'/> | 
| 70 | </Transform> | 
| 71 | 
          <!-- ROUTE information for STOP_TRANS node: 
[from PROX_SENSOR.position_changed to set_translation
                        ]
[from PROX_SENSOR.orientation_changed to set_rotation
                        ]
 --> <Transform DEF='STOP_TRANS'> | 
| 72 | <Transform translation='3 1.5 -5'> | 
| 73 | <Shape> | 
| 74 | <Appearance> | 
| 75 | 
                              <!-- ROUTE information for STOPMATERIAL node: 
[from STOPFLASH.value_changed to set_diffuseColor
                                                ]
 --> <Material DEF='STOPMATERIAL' ambientIntensity='1' diffuseColor='1 0 0'/> | 
| 76 | </Appearance> | 
| 77 | <Box DEF='STOP' size='1 1 0.1'/> | 
| 78 | </Shape> | 
| 79 | <Transform translation='-0.55 -0.1 0.2'> | 
| 80 | <Shape> | 
| 81 | <Appearance> | 
| 82 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> | 
| 83 | </Appearance> | 
| 84 | <Text string='"Stop"'> | 
| 85 | <FontStyle size='0.4'/> | 
| 86 | </Text> | 
| 87 | </Shape> | 
| 88 | </Transform> | 
| 89 | </Transform> | 
| 90 | 
               <!-- ROUTE information for TOUCHSTOP node: 
[from touchTime to MYSOUND.set_stopTime
                              ]
[from touchTime to STOPTIMER.set_startTime
                              ]
 --> <TouchSensor DEF='TOUCHSTOP' description='touch to stop'/> | 
| 91 | 
               <!-- ROUTE information for STOPTIMER node: 
[from TOUCHSTOP.touchTime to set_startTime
                              ]
[from fraction_changed to STOPFLASH.set_fraction
                              ]
 --> <TimeSensor DEF='STOPTIMER'/> | 
| 92 | 
               <!-- ROUTE information for STOPFLASH node: 
[from STOPTIMER.fraction_changed to set_fraction
                              ]
[from value_changed to STOPMATERIAL.set_diffuseColor
                              ]
 --> <ColorInterpolator DEF='STOPFLASH' key='0 0.5 1' keyValue='1 0 0 1 1 1 1 0 0'/> | 
| 93 | </Transform> | 
| 94 | 
          <!-- ROUTE information for SOUND_SCRIPT node: 
[from MYSOUND.isActive to colorPhonograph
                        ]
 --> <Script DEF='SOUND_SCRIPT' directOutput='true' url=' "startgtstoploopfalse.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/startgtstoploopfalse.js" '> | 
| 95 | <field name='phonoColor' type='SFNode' accessType='initializeOnly'> | 
| 96 | <Material USE='PHONOCOLOR'/> | 
| 97 | </field> | 
| 98 | <field name='hornColor' type='SFNode' accessType='initializeOnly'> | 
| 99 | <Material USE='HORNCOLOR'/> | 
| 100 | </field> | 
| 101 | <field name='yellow' type='SFColor' value='0.75 0.75 0.00' accessType='initializeOnly'/> | 
| 102 | <field name='white' type='SFColor' value='0.80 0.80 0.80' accessType='initializeOnly'/> | 
| 103 | <field name='colorPhonograph' type='SFBool' accessType='inputOnly'/> | 
| 104 | </Script> | 
| 105 | < ROUTE fromNode='TOUCHSTART' fromField='touchTime' toNode='MYSOUND' toField='set_startTime'/> | 
| 106 | < ROUTE fromNode='TOUCHSTOP' fromField='touchTime' toNode='MYSOUND' toField='set_stopTime'/> | 
| 107 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='START_TRANS' toField='set_translation'/> | 
| 108 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='START_TRANS' toField='set_rotation'/> | 
| 109 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='STOP_TRANS' toField='set_translation'/> | 
| 110 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='STOP_TRANS' toField='set_rotation'/> | 
| 111 | < ROUTE fromNode='MYSOUND' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph'/> | 
| 112 | < ROUTE fromNode='TOUCHSTART' fromField='touchTime' toNode='GOTIMER' toField='set_startTime'/> | 
| 113 | < ROUTE fromNode='GOTIMER' fromField='fraction_changed' toNode='GOFLASH' toField='set_fraction'/> | 
| 114 | < ROUTE fromNode='GOFLASH' fromField='value_changed' toNode='GOMATERIAL' toField='set_diffuseColor'/> | 
| 115 | < ROUTE fromNode='TOUCHSTOP' fromField='touchTime' toNode='STOPTIMER' toField='set_startTime'/> | 
| 116 | < ROUTE fromNode='STOPTIMER' fromField='fraction_changed' toNode='STOPFLASH' toField='set_fraction'/> | 
| 117 | < ROUTE fromNode='STOPFLASH' fromField='value_changed' toNode='STOPMATERIAL' toField='set_diffuseColor'/> | 
| 118 | </Scene> | 
| 119 | </X3D> | 
 DEF nodes index: 
         
         GOFLASH,
GOMATERIAL,
GOTIMER,
HORNCOLOR,
MYSOUND,
PHONOCOLOR,
PROX_SENSOR,
SOUND_SCRIPT,
START,
START_TRANS,
STOP,
STOP_TRANS,
STOPFLASH,
STOPMATERIAL,
STOPTIMER,
TOUCHSTART,
TOUCHSTOP
         
         
            DEF nodes index: 
         
         GOFLASH,
GOMATERIAL,
GOTIMER,
HORNCOLOR,
MYSOUND,
PHONOCOLOR,
PROX_SENSOR,
SOUND_SCRIPT,
START,
START_TRANS,
STOP,
STOP_TRANS,
STOPFLASH,
STOPMATERIAL,
STOPTIMER,
TOUCHSTART,
TOUCHSTOP
Event Graph ROUTE Table entries with 13 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.
| TOUCHSTART TouchSensor touchTime SFTime | MYSOUND AudioClip set_startTime SFTime | then | MYSOUND AudioClip isActive SFBool | SOUND_SCRIPT Script colorPhonograph SFBool | ||||||
| TOUCHSTART TouchSensor touchTime SFTime | GOTIMER TimeSensor set_startTime SFTime | then | GOTIMER TimeSensor fraction_changed SFFloat | GOFLASH ColorInterpolator set_fraction SFFloat | then | GOFLASH ColorInterpolator value_changed SFColor | GOMATERIAL Material set_diffuseColor SFColor | 
| TOUCHSTOP TouchSensor touchTime SFTime | MYSOUND AudioClip set_stopTime SFTime | then | MYSOUND AudioClip isActive SFBool | SOUND_SCRIPT Script colorPhonograph SFBool | ||||||
| TOUCHSTOP TouchSensor touchTime SFTime | STOPTIMER TimeSensor set_startTime SFTime | then | STOPTIMER TimeSensor fraction_changed SFFloat | STOPFLASH ColorInterpolator set_fraction SFFloat | then | STOPFLASH ColorInterpolator value_changed SFColor | STOPMATERIAL Material set_diffuseColor SFColor | 
| PROX_SENSOR ProximitySensor position_changed SFVec3f | START_TRANS Transform set_translation SFVec3f | |
| PROX_SENSOR ProximitySensor orientation_changed SFRotation | START_TRANS Transform set_rotation SFRotation | |
| PROX_SENSOR ProximitySensor position_changed SFVec3f | STOP_TRANS Transform set_translation SFVec3f | |
| PROX_SENSOR ProximitySensor orientation_changed SFRotation | STOP_TRANS Transform set_rotation SFRotation | 
         <!--
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.
-->