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='Immersive' 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='ScriptNodeFieldControl-Java.x3d'/> |
6 | <meta name='description' content='Script node interface between VRML and Java: this conformance example tests field-based VRML-Java functionality.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='30 November 1997'/> |
9 | <meta name='translated' content='8 July 2001'/> |
10 | <meta name='modified' content='28 August 2023'/> |
11 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/ScriptConformance/ScriptNodeFieldControl-Java.x3d'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/Script/ScriptNodeFieldControl-Java.x3d'/> |
13 | <meta name='reference' content='VRML 97 Specification, Annex B, Java platform scripting reference'/> |
14 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/java.html'/> |
15 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/java.html#B.5'/> |
16 | <meta name='reference' content='Don Brutzman, "The Virtual Reality Modeling Language and Java," Communications of the ACM, vol. 41 no. 6, June 1998, pp. 57-64.'/> |
17 | <meta name='reference' content='VrmlJavaPaper.pdf'/> |
18 | <meta name='reference' content='ScriptNodeFieldControl.java'/> |
19 | <meta name='reference' content='javadoc/index.html'/> |
20 | <meta name='reference' content='Makefile'/> |
21 | <meta name='reference' content='Makefile.out'/> |
22 | <meta name='reference' content='Vrml97ScriptNodePackages.jar'/> |
23 | <meta name='reference' content='ScriptNodeFieldControl-JavaConsoleOutput.txt'/> |
24 | <meta name='reference' content='ScriptNodeFieldControl-JavaSnapshots.html'/> |
25 | <meta name='reference' content='ScriptNodeFieldControl-EcmaScript.x3d'/> |
26 | <meta name='subject' content='VRML X3D Java Script conformance'/> |
27 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
28 | <meta name='license' content='../../license.html'/> |
29 | </head> |
30 | <Scene> |
31 | <WorldInfo title='ScriptNodeFieldControl-Java.x3d'/> |
32 | <Viewpoint description='View test' position='0 0 12'/> |
33 | <Group> |
34 |
<!-- ROUTE information for ClickTextToTest node:
[from touchTime to InterfaceScriptNode.startTime
]
-->
<TouchSensor DEF='ClickTextToTest' description='Click text to test'/> |
35 |
<!-- Transform
TextPosition is a DEF node that has 1 USE node: USE_1 -->
<Transform DEF='TextPosition'> |
36 | <!-- TextPosition translation is modified by InterfaceScriptNode. --> |
37 | <Shape> |
38 |
<!-- Text
MessageToUser is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='MessageToUser'> |
39 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.8'/> |
40 | </Text> |
41 | <Appearance> |
42 |
<!-- Material
TextMaterial is a DEF node that has 1 USE node: USE_1 --> <Material DEF='TextMaterial' diffuseColor='0.8 0.2 0.2' shininess='0.9'/> |
43 | </Appearance> |
44 | </Shape> |
45 | </Transform> |
46 | <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) --> |
47 |
<!-- ROUTE information for InterfaceScriptNode node:
[from ClickTextToTest.touchTime to startTime
]
-->
<Script DEF='InterfaceScriptNode' directOutput='true' url=' "ScriptNodeFieldControl.class" "https://www.web3d.org/x3d/content/examples/ScriptConformance/ScriptNodeFieldControl.class" '> |
48 | <!-- No default values are allowed for eventIn or eventOut. --> |
49 | <field name='startTime' type='SFTime' accessType='inputOnly'/> |
50 | <field name='sceneText' type='SFNode' accessType='initializeOnly'> |
51 | <Text USE='MessageToUser'/> |
52 | </field> |
53 | <field name='sceneTransform' type='SFNode' accessType='initializeOnly'> |
54 | <Transform USE='TextPosition'/> |
55 | </field> |
56 | <field name='sceneMaterial' type='SFNode' accessType='initializeOnly'> |
57 | <Material USE='TextMaterial'/> |
58 | </field> |
59 | </Script> |
60 | </Group> |
61 | < ROUTE fromNode='ClickTextToTest' fromField='touchTime' toNode='InterfaceScriptNode' toField='startTime'/> |
62 | </Scene> |
63 | </X3D> |
Event Graph ROUTE Table with 1 ROUTE connection 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.
ClickTextToTest
TouchSensor touchTime SFTime |
InterfaceScriptNode
Script startTime SFTime |
<!--
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. -->