<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<![CDATA[
ecmascript: function evaluate (inputValue, timeStamp) { if (inputValue) // Boolean { currentFrameRate = Browser.getCurrentFrameRate (); currentSpeed = Browser.getCurrentSpeed (); version = Browser.getVersion (); name = Browser.getName (); worldUrl = Browser.getWorldURL (); Browser.println ('currentFrameRate = ' + currentFrameRate); Browser.println ('currentSpeed = ' + currentSpeed); Browser.println ('version = ' + version); Browser.println ('name = ' + name); Browser.println ('worldUrl = ' + worldUrl); } } function createVrmlFromString (inputValue, timeStamp) { // note VRML 97 method name didn't follow capitalization convention createdVrmlNodes = Browser.createVrmlFromString (inputValue); } function createVrmlFromUrl (inputValue, timeStamp) { // note VRML 97 method name didn't follow capitalization convention createdVrmlNodes = Browser.createVrmlFromURL (inputValue); } function description (inputValue, timeStamp) { Browser.println ('description = ' + inputValue); Browser.setDescription (inputValue); } function replaceWorld (inputValue, timeStamp) { Browser.replaceWorld (inputValue); } function addRoute (inputValue, timeStamp) { if (inputValue) // Boolean { Browser.addRoute (fromNode, fromEventOut, toNode, toEventIn); } } function deleteRoute (inputValue, timeStamp) { if (inputValue) // Boolean { Browser.deleteRoute (fromNode, fromEventOut, toNode, toEventIn); } } function loadURL (inputValue, timeStamp) { Browser.println ('loadURL = ' + inputValue); Browser.println ('loadUrlParameter = ' + loadUrlParameter); Browser.loadURL (inputValue, loadUrlParameter); } function createVrmlFromURL (SFStringValue, timestamp) { } function loadUrl (SFStringValue, timestamp) { } function loadUrlParameter (SFStringValue, timestamp) { } function fromNode (SFNodeValue, timestamp) { } function fromEventOut (SFStringValue, timestamp) { } function toNode (SFNodeValue, timestamp) { } function toEventIn (SFStringValue, timestamp) { }
]]>
<![CDATA[
ecmascript: function initialize () { evaluatedResult = new MFString ( 'Click for partial Scene node test:', ' ', ' ', ' ', ' ', ' ', ' ', ' '); } function currentFrameRate (inputValue, timeStamp) { evaluatedResult [2] = 'currentFrameRate=' + inputValue; } function currentSpeed (inputValue, timeStamp) { evaluatedResult [3] = 'currentSpeed=' + inputValue; } function version (inputValue, timeStamp) { evaluatedResult [4] = 'version=' + inputValue; } function name (inputValue, timeStamp) { evaluatedResult [5] = 'name=' + inputValue; } function worldUrl (inputValue, timeStamp) { evaluatedResult [6] = 'worldUrl='; evaluatedResult [7] = inputValue; }
]]>
Event Graph ROUTE Table entries with 7 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.
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
SceneNode
ProtoInstance currentFrameRate SFFloat |
AssembleBrowserOutputText
Script currentFrameRate SFFloat |
then |
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
||
SceneNode
ProtoInstance currentSpeed SFFloat |
AssembleBrowserOutputText
Script currentSpeed SFFloat |
then |
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
||
SceneNode
ProtoInstance version SFString |
AssembleBrowserOutputText
Script version SFString |
then |
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
||
SceneNode
ProtoInstance name SFString |
AssembleBrowserOutputText
Script name SFString |
then |
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
||
SceneNode
ProtoInstance worldUrl SFString |
AssembleBrowserOutputText
Script worldUrl SFString |
then |
AssembleBrowserOutputText
Script evaluatedResult MFString |
Output3dText
Text string MFString |
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/development/SceneNodePrototypeIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/SceneNodePrototype.x3d
-->
<!--
Color 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)
<ProtoInstance
name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->