<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<![CDATA[
ecmascript: function initialize() { Browser.println ('[Script ClockReporter] initialize()'); } function clockStart1 (eventValue) { // input eventValue received for inputOutput field clockStart1 = eventValue; Browser.println ('[Script ClockReporter] clockStart1(' + eventValue + ')'); } function clockStart2 (eventValue) { // input eventValue received for inputOutput field clockStart2 = eventValue; Browser.println ('[Script ClockReporter] clockStart2(' + eventValue + ')'); } function clockStart3 (eventValue) { // input eventValue received for inputOutput field clockStart3 = eventValue; loopCounter++; // send single-line MFString output event to Text node's string field loopCounterString = new MFString('loop ' + loopCounter); Browser.println ('[Script ClockReporter] clockStart3(' + eventValue + ') received event to start text spinning'); }
]]>
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.
ClockReporter
Script loopCounterString MFString |
LoopCounterText
Text string MFString |
<!--
Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/EventGraphLoopTestIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/EventGraphLoopTest.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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->