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='default_binding_proto.x3d'/> |
6 | <meta name='reference' content='http://www.nist.gov/vrml.html'/> |
7 | <meta name='reference' content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/> |
8 | <meta name='creator' content='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/> |
9 | <meta name='disclaimer' content='This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/> |
10 | <meta name='reference' content='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/> |
11 | <meta name='reference' content='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml'/> |
12 | <meta name='info' content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/> |
13 | <meta name='translator' content='Michael Kass NIST, Don Brutzman NPS'/> |
14 | <meta name='translated' content='21 January 2001'/> |
15 | <meta name='modified' content='28 August 2023'/> |
16 | <meta name='description' content='Test a NavigationInfo PROTO. A NavigationInfo node with a type of EXAMINE is defined inside a PROTO definition in this world. That PROTO is then instantiated in the world. The result should be: navigation in this world should be of type EXAMINE (the entire world should appear as a single geometry, with the viewer allowed to view it from any angle or distance), and a message should appear stating that this PROTO NavigationInfo node is bound to the stack, and that the isBound field of the node is set to true.'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_proto.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='default_binding_proto.x3d'/> |
23 | <ProtoDeclare name='NavProto'> |
24 | <ProtoInterface> |
25 | <field name='isBound' type='SFBool' accessType='outputOnly'/> |
26 | <field name='type' type='MFString' value='"EXAMINE" "ANY"' accessType='inputOutput'/> |
27 | </ProtoInterface> |
28 | <ProtoBody> |
29 | <NavigationInfo DEF='NavInfo'> |
30 | <IS> |
31 | <connect nodeField='type' protoField='type'/> |
32 | <connect nodeField='isBound' protoField='isBound'/> |
33 | </IS> |
34 | </NavigationInfo> |
35 | </ProtoBody> |
36 | </ProtoDeclare> |
37 | <Viewpoint description='Close View'/> |
38 | <Viewpoint description='Distant View' position='0 0 50'/> |
39 | <Background groundAngle='1.57' groundColor='0 0.5 0 0 0.5 0' skyColor='0 0 1'/> |
40 |
<!-- ProtoInstance
NAV1 is a DEF node that has 1 USE node: USE_1
<!-- ROUTE information for NAV1 node: [from isBound to NAVTYPE.printType1 ] --> <ProtoInstance name='NavProto' DEF='NAV1'/> |
41 | <Billboard axisOfRotation='0 0 0'> |
42 | <Transform translation='-6 6 -8'> |
43 | <Shape> |
44 | <Appearance> |
45 | <Material diffuseColor='1 1 1'/> |
46 | </Appearance> |
47 |
<!-- Text
TYPESTRING1 is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='TYPESTRING1' string='"message from Script is inserted here"'> |
48 | <FontStyle style='BOLD'/> |
49 | </Text> |
50 | </Shape> |
51 | </Transform> |
52 | <Transform translation='-3.5 5 -8'> |
53 | <Shape> |
54 | <Appearance> |
55 | <Material diffuseColor='1 1 1'/> |
56 | </Appearance> |
57 |
<!-- Text
TYPESTRING2 is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='TYPESTRING2' string='"message from Script is inserted here"'> |
58 | <FontStyle style='BOLD'/> |
59 | </Text> |
60 | </Shape> |
61 | </Transform> |
62 | <Transform translation='-3.5 4 -8'> |
63 | <Shape> |
64 | <Appearance> |
65 | <Material diffuseColor='1 1 1'/> |
66 | </Appearance> |
67 |
<!-- Text
TYPESTRING3 is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='TYPESTRING3' string='"message from Script is inserted here"'> |
68 | <FontStyle style='BOLD'/> |
69 | </Text> |
70 | </Shape> |
71 | </Transform> |
72 | <Transform translation='-0.5 4 -8'> |
73 | <Shape> |
74 | <Appearance> |
75 | <Material diffuseColor='1 1 1'/> |
76 | </Appearance> |
77 |
<!-- Text
TYPESTRING4 is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='TYPESTRING4' string='"message from Script is inserted here"'> |
78 | <FontStyle style='BOLD'/> |
79 | </Text> |
80 | </Shape> |
81 | </Transform> |
82 | </Billboard> |
83 | <Transform> |
84 | <Shape> |
85 | <Appearance> |
86 | <Material DEF='BOX1'/> |
87 | </Appearance> |
88 | <Box/> |
89 | </Shape> |
90 | </Transform> |
91 |
<!-- ROUTE information for NAVTYPE node:
[from NAV1.isBound to printType1
]
-->
<Script DEF='NAVTYPE' directOutput='true' url=' "default_binding_proto.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_proto.js" '> |
92 | <field name='printType1' type='SFBool' accessType='inputOnly'/> |
93 | <field name='typestring1' type='SFNode' accessType='initializeOnly'> |
94 | <Text USE='TYPESTRING1'/> |
95 | </field> |
96 | <field name='typestring2' type='SFNode' accessType='initializeOnly'> |
97 | <Text USE='TYPESTRING2'/> |
98 | </field> |
99 | <field name='typestring3' type='SFNode' accessType='initializeOnly'> |
100 | <Text USE='TYPESTRING3'/> |
101 | </field> |
102 | <field name='typestring4' type='SFNode' accessType='initializeOnly'> |
103 | <Text USE='TYPESTRING4'/> |
104 | </field> |
105 | <field name='nav1' type='SFNode' accessType='initializeOnly'> |
106 | <ProtoInstance USE='NAV1'/> |
107 | </field> |
108 | </Script> |
109 | < ROUTE fromNode='NAV1' fromField='isBound' toNode='NAVTYPE' toField='printType1'/> |
110 | </Scene> |
111 | </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.
NAV1
ProtoInstance isBound SFBool |
NAVTYPE
Script printType1 SFBool |
<!--
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. -->