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='Interactive' 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='TestCycleTimeStart.x3d'/> |
6 | <meta name='creator' content='Andreas'/> |
7 | <meta name='creator' content='Joe D. Williams'/> |
8 | <meta name='description' content='Test design patterns for animation control.'/> |
9 | <meta name='created' content='10 September 2023'/> |
10 | <meta name='modified' content='19 September 2023'/> |
11 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycletimeIndex.html'/> |
12 | <meta name='reference' content='https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/originals/cycleTimeStart.x3d'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/TestCycleTimeStart.x3d'/> |
14 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <WorldInfo title='TestCycleTimeStart.x3d'/> |
19 | <Viewpoint description='hello in there'/> |
20 |
<!-- ROUTE information for REDTIME1 node:
[from stopTime to GREENTIME2.set_startTime
]
[from fraction_changed to REDINTERP1.set_fraction
]
[self-route from cycleTime to set_stopTime
]
-->
<TimeSensor DEF='REDTIME1' loop='true'/> |
21 |
<!-- ROUTE information for GREENTIME2 node:
[from REDTIME1.stopTime to set_startTime
]
[from isActive to GREENFILTER.set_boolean
]
[from fraction_changed to GREENINTERP2.set_fraction
]
-->
<TimeSensor DEF='GREENTIME2' cycleInterval='5'/> |
22 |
<!-- ROUTE information for BLUETIME3 node:
[from BLUETRIGGER.triggerTime to set_startTime
]
[from fraction_changed to BLUEINTERP3.set_fraction
]
-->
<TimeSensor DEF='BLUETIME3' cycleInterval='10'/> |
23 |
<!-- ROUTE information for GREENFILTER node:
[from GREENTIME2.isActive to set_boolean
]
[from inputFalse to BLUETRIGGER.set_boolean
]
-->
<BooleanFilter DEF='GREENFILTER'/> |
24 |
<!-- ROUTE information for BLUETRIGGER node:
[from GREENFILTER.inputFalse to set_boolean
]
[from triggerTime to BLUETIME3.set_startTime
]
-->
<TimeTrigger DEF='BLUETRIGGER'/> |
25 | < ROUTE fromNode='REDTIME1' fromField='cycleTime' toNode='REDTIME1' toField='set_stopTime'/> |
26 | < ROUTE fromNode='REDTIME1' fromField='stopTime' toNode='GREENTIME2' toField='set_startTime'/> |
27 | < ROUTE fromNode='GREENTIME2' fromField='isActive' toNode='GREENFILTER' toField='set_boolean'/> |
28 | < ROUTE fromNode='GREENFILTER' fromField='inputFalse' toNode='BLUETRIGGER' toField='set_boolean'/> |
29 | < ROUTE fromNode='BLUETRIGGER' fromField='triggerTime' toNode='BLUETIME3' toField='set_startTime'/> |
30 |
<!-- ROUTE information for REDBALL node:
[from REDINTERP1.value_changed to set_translation
]
-->
<Transform DEF='REDBALL'> |
31 | <Shape> |
32 | <Appearance> |
33 | <Material diffuseColor='1 0 0'/> |
34 | </Appearance> |
35 | <Sphere/> |
36 | </Shape> |
37 | </Transform> |
38 |
<!-- ROUTE information for GREENBALL node:
[from GREENINTERP2.value_changed to set_translation
]
-->
<Transform DEF='GREENBALL'> |
39 | <Shape> |
40 | <Appearance> |
41 | <Material diffuseColor='0 1 0'/> |
42 | </Appearance> |
43 | <Sphere/> |
44 | </Shape> |
45 | </Transform> |
46 |
<!-- ROUTE information for BLUEBALL node:
[from BLUEINTERP3.value_changed to set_translation
]
-->
<Transform DEF='BLUEBALL'> |
47 | <Shape> |
48 | <Appearance> |
49 | <Material diffuseColor='0 0 1'/> |
50 | </Appearance> |
51 | <Sphere/> |
52 | </Shape> |
53 | </Transform> |
54 |
<!-- ROUTE information for REDINTERP1 node:
[from REDTIME1.fraction_changed to set_fraction
]
[from value_changed to REDBALL.set_translation
]
-->
<PositionInterpolator DEF='REDINTERP1' key='0 0.25 0.5 0.75 1' keyValue='0 0 0 2 0 0 0 0 0 -2 0 0 0 0 0'/> |
55 |
<!-- ROUTE information for GREENINTERP2 node:
[from GREENTIME2.fraction_changed to set_fraction
]
[from value_changed to GREENBALL.set_translation
]
-->
<PositionInterpolator DEF='GREENINTERP2' key='0 0.25 0.5 0.75 1' keyValue='0 0 0 0 2 0 0 0 0 0 -2 0 0 0 0'/> |
56 |
<!-- ROUTE information for BLUEINTERP3 node:
[from BLUETIME3.fraction_changed to set_fraction
]
[from value_changed to BLUEBALL.set_translation
]
-->
<PositionInterpolator DEF='BLUEINTERP3' key='0 0.25 0.5 0.75 1' keyValue='0 0 0 0 -2 0 0 0 0 0 2 0 0 0 0'/> |
57 | < ROUTE fromNode='REDTIME1' fromField='fraction_changed' toNode='REDINTERP1' toField='set_fraction'/> |
58 | < ROUTE fromNode='REDINTERP1' fromField='value_changed' toNode='REDBALL' toField='set_translation'/> |
59 | < ROUTE fromNode='GREENTIME2' fromField='fraction_changed' toNode='GREENINTERP2' toField='set_fraction'/> |
60 | < ROUTE fromNode='GREENINTERP2' fromField='value_changed' toNode='GREENBALL' toField='set_translation'/> |
61 | < ROUTE fromNode='BLUETIME3' fromField='fraction_changed' toNode='BLUEINTERP3' toField='set_fraction'/> |
62 | < ROUTE fromNode='BLUEINTERP3' fromField='value_changed' toNode='BLUEBALL' toField='set_translation'/> |
63 | </Scene> |
64 | </X3D> |
Event Graph ROUTE Table entries with 11 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.
REDTIME1
TimeSensor stopTime SFTime |
GREENTIME2
TimeSensor set_startTime SFTime |
then
|
GREENTIME2
TimeSensor fraction_changed SFFloat |
GREENINTERP2
PositionInterpolator set_fraction SFFloat |
then
|
GREENINTERP2
PositionInterpolator value_changed SFVec3f |
GREENBALL
Transform set_translation SFVec3f |
|||||||||||||||
then
|
GREENTIME2
TimeSensor isActive SFBool |
GREENFILTER
BooleanFilter set_boolean SFBool |
then
|
GREENFILTER
BooleanFilter inputFalse SFBool |
BLUETRIGGER
TimeTrigger set_boolean SFBool |
then
|
BLUETRIGGER
TimeTrigger triggerTime SFTime |
BLUETIME3
TimeSensor set_startTime SFTime |
then
|
BLUETIME3
TimeSensor fraction_changed SFFloat |
BLUEINTERP3
PositionInterpolator set_fraction SFFloat |
then
|
BLUEINTERP3
PositionInterpolator value_changed SFVec3f |
BLUEBALL
Transform set_translation SFVec3f |
||||||||
REDTIME1
TimeSensor fraction_changed SFFloat |
REDINTERP1
PositionInterpolator set_fraction SFFloat |
then
|
REDINTERP1
PositionInterpolator value_changed SFVec3f |
REDBALL
Transform set_translation SFVec3f |
<!--
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. -->