<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
<![CDATA[
ecmascript: function initialize () { computePointArray (); hide (); tracePrint ('initialization() successful'); } function computePointArray () { if ((imagePixelHeight <= 0) || (imagePixelWidth <= 0)) { tracePrint ('cannot compute new scale, imagePixelHeight=' + imagePixelHeight.toString() + ', imagePixelWidth=' + imagePixelWidth.toString()); return; } else if (imagePixelHeight < imagePixelWidth) { height = imagePixelHeight/imagePixelWidth; width = 1.0; } else if (imagePixelHeight > imagePixelWidth) { height = 1.0; width = imagePixelWidth/imagePixelHeight; } else // same { height = 1.0; width = 1.0; } p0 = new SFVec3f (0.0, 0.0, 0.0); p1 = new SFVec3f (0.0, height, 0.0); p2 = new SFVec3f (width, height, 0.0); p3 = new SFVec3f (width, 0.0, 0.0); pointArray = new MFVec3f (p0, p1, p2, p3); tracePrint ('computed new ImageCoordinate.point=' + pointArray.toString()); if (hidden) { hideSwitchChoice = -1; } } function set_imagePixelHeight (eventValue) { computePointArray (); } function set_imagePixelWidth (eventValue) { computePointArray (); } function set_name (eventValue) { // input eventValue received for inputOutput field name = eventValue; } function hide () { // input eventValue received for inputOutput field tracePrint ("set_hidden: hidden=" + hidden); if (hidden) { hideSwitchChoice = -1; displayViewpointGroup = false; } else { hideSwitchChoice = 0; displayViewpointGroup = true; } } function set_hidden (eventValue) { hidden = eventValue; hide (); } // ================== Trace output functions ================== function tracePrint (outputString) { // if traceEnabled is true, print outputString on X3D browser console if (traceEnabled) Browser.println ('[TimelineElementScript ' + name.toString() + ': ' + outputString.toString() + ']'); } function alwaysPrint (outputString) { // always print outputString on X3D browser console Browser.println ('[TimelineElementScript ' + name.toString() + ': ' + outputString.toString() + ']'); } function set_traceEnabled (eventValue) { // input eventValue received for inputOutput field traceEnabled = eventValue; } // ===========================================================
]]>
Event Graph ROUTE Table entries with 12 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.
TouchToView
TouchSensor isActive SFBool |
TouchViewpointSelectBooleanFilter
BooleanFilter set_boolean SFBool |
then |
TouchViewpointSelectBooleanFilter
BooleanFilter inputTrue SFBool |
TimelineElementViewpoint
Viewpoint set_bind SFBool |
Web3dLogoClock
TimeSensor fraction_changed SFFloat |
Web3dLogoSpinner
OrientationInterpolator set_fraction SFFloat |
then |
Web3dLogoSpinner
OrientationInterpolator value_changed SFRotation |
Web3dLogoTransform
Transform set_rotation SFRotation |
TimelineElementScript
Script pointArray MFVec3f |
ImageCoordinate
Coordinate point MFVec3f |
|
TimelineElementScript
Script hideSwitchChoice SFInt32 |
TimelineElementSwitch
Switch whichChoice SFInt32 |
|
TimelineElementScript
Script displayViewpointGroup SFBool |
TimelineElementViewpointGroup
ViewpointGroup displayed SFBool |
proximity
ProximitySensor isActive SFBool |
it0
IntegerTrigger set_boolean SFBool |
then |
it0
IntegerTrigger triggerValue SFInt32 |
TimelineElementSwitch
Switch whichChoice SFInt32 |
||||||
proximity
ProximitySensor exitTime SFTime |
bt
BooleanTrigger set_triggerTime SFTime |
then |
bt
BooleanTrigger triggerTrue SFBool |
it1
IntegerTrigger set_boolean SFBool |
then |
it1
IntegerTrigger triggerValue SFInt32 |
TimelineElementSwitch
Switch whichChoice SFInt32 |
Slide1_VRML1.0
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide10_X3dVersion3.1
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide11_X3dForWebAuthors
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide12_X3dCompressedBinaryEncoding
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide13_X3dEarth
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide14_X3dVersion3.2
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide15_DICOM
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide16_X3DOM
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide17_X3dAugmentedReality
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide18_Declarative3D
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide19_WWW2012
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide2_VRML2.0
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide3_VRML97
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide4_MPEG-4
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide5_X3dDesign
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide6_X3dEncoding
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide7_Web3DConsortium
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide8_X3dStandard
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Slide9_SceneAcessInterface
ProtoInstance TimelineElement |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/Web3dOutreach/Web3dTimelineIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Web3dOutreach/Web3dTimeline.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. -->