X3D Model Documentation: default_binding_proto.x3d

  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='titlecontent='default_binding_proto.x3d'/>
  6            <meta name='referencecontent='http://www.nist.gov/vrml.html'/>
  7            <meta name='referencecontent='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/>
  8            <meta name='creatorcontent='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/>
  9            <meta name='disclaimercontent='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='referencecontent='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/>
 11            <meta name='referencecontent='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='infocontent='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='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
 14            <meta name='translatedcontent='21 January 2001'/>
 15            <meta name='modifiedcontent='28 August 2023'/>
 16            <meta name='descriptioncontent='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='identifiercontent='https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_proto.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../../license.html'/>
 20       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BOX1, NAV1, NavInfo, NAVTYPE, TYPESTRING1, TYPESTRING2, TYPESTRING3, TYPESTRING4

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2

Index for ProtoDeclare definition: NavProto
-->
 21       <Scene>
 22            <WorldInfo title='default_binding_proto.x3d'/>
 23            <ProtoDeclare name='NavProto'>
 24                 <ProtoInterface>
 25                      <field name='isBoundtype='SFBoolaccessType='outputOnly'/>
 26                      <field name='typetype='MFStringvalue='"EXAMINE" "ANY"accessType='inputOutput'/>
 27                 </ProtoInterface>
 28                 <ProtoBody>
 29                      <NavigationInfo DEF='NavInfo'>
 30                           <IS>
 31                                <connect nodeField='typeprotoField='type'/>
 32                                <connect nodeField='isBoundprotoField='isBound'/>
 33                           </IS>
 34                      </NavigationInfo>
 35                 </ProtoBody>
 36            </ProtoDeclare>
 37            <Viewpoint description='Close View'/>
 38            <Viewpoint description='Distant Viewposition='0 0 50'/>
 39            <Background groundAngle='1.57groundColor='0 0.5 0 0 0.5 0skyColor='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='NavProtoDEF='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='TYPESTRING1string='"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='TYPESTRING2string='"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='TYPESTRING3string='"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='TYPESTRING4string='"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='NAVTYPEdirectOutput='true'   url=' "default_binding_proto.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_proto.js" '>
 92                 <field name='printType1type='SFBoolaccessType='inputOnly'/>
 93                 <field name='typestring1type='SFNodeaccessType='initializeOnly'>
 94                      <Text USE='TYPESTRING1'/>
 95                 </field>
 96                 <field name='typestring2type='SFNodeaccessType='initializeOnly'>
 97                      <Text USE='TYPESTRING2'/>
 98                 </field>
 99                 <field name='typestring3type='SFNodeaccessType='initializeOnly'>
100                      <Text USE='TYPESTRING3'/>
101                 </field>
102                 <field name='typestring4type='SFNodeaccessType='initializeOnly'>
103                      <Text USE='TYPESTRING4'/>
104                 </field>
105                 <field name='nav1type='SFNodeaccessType='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 shows event connections.
-->

<!-- to top Index for DEF nodes: BOX1, NAV1, NavInfo, NAVTYPE, TYPESTRING1, TYPESTRING2, TYPESTRING3, TYPESTRING4

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2

Index for ProtoDeclare definition: NavProto
-->
X3D Tooltips element index: Appearance, Background, Billboard, Box, connect, field, FontStyle, head, IS, Material, meta, NavigationInfo, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, Script, Shape, Text, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

ROUTE
event to
(1)
NAVTYPE
Script
printType1
SFBool
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_protoIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/default_binding_proto.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> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->