<?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 set_float () { var today = new Date(); var date = today.toLocaleString(); string_changed[0]= date; }
]]>
<![CDATA[
ecmascript: function initialize(){ } function set_second () { var today = new Date(); var seconds = today.getSeconds(); var minutes = -(Math.PI/30)*today.getMinutes(); var hours = -(Math.PI/6)*today.getHours(); second_changed[3] = -(Math.PI/30)*seconds ; minute_changed[3]= minutes -(Math.PI/30)*seconds/60; hour_changed[3]= hours -(Math.PI/6)*today.getMinutes()/60; }
]]>
<![CDATA[
ecmascript: function set_milli () { var today = new Date(); var milli = today.getTime(); var milli_changed= (milli/1000) - Math.floor(milli/1000); Browser.println (milli_changed); if (milli_changed>0 && milli_changed<0.1) {start=true;} }
]]>
Event Graph ROUTE Table entries with 32 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.
refresh
TimeSensor cycleTime SFTime |
cm_enabled
Script set_milli SFTime |
then |
cm_enabled
Script start SFBool |
cm
TimeSensor set_enabled SFBool |
||
refresh
TimeSensor cycleTime SFTime |
more_time
Script set_second SFTime |
then |
more_time
Script hour_changed SFRotation |
small
Transform set_rotation SFRotation |
||
then |
more_time
Script minute_changed SFRotation |
medium
Transform set_rotation SFRotation |
||||
then |
more_time
Script second_changed SFRotation |
tall
Transform set_rotation SFRotation |
||||
refresh
TimeSensor cycleTime SFTime |
writing
Script set_float SFTime |
then |
writing
Script string_changed MFString |
text
Text set_string MFString |
more_time
Script second_changed SFRotation |
tall
Transform set_rotation SFRotation |
|
more_time
Script minute_changed SFRotation |
medium
Transform set_rotation SFRotation |
|
more_time
Script hour_changed SFRotation |
small
Transform set_rotation SFRotation |
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallClockIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallClock.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. -->