| 1 | <?xml version="1.0" encoding="UTF-8"?> | 
| 2 | <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd"> | 
| 3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> | 
| 4 | <head> | 
| 5 | <meta name='title' content=' MetadataExamples.x3d '/> | 
| 6 | <meta name='description' content='Examples showing use of new X3D Metadata nodes in Core component (MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString). Also provided: external prototype definitions for backwards compatibility with VRML 97.'/> | 
| 7 | <meta name='hint' content='Metadata nodes may be repositioned by a few lines if VRML97 parent node does not support the children field.'/> | 
| 8 | <meta name='creator' content='Don Brutzman'/> | 
| 9 | <meta name='created' content='17 November 2003'/> | 
| 10 | <meta name='modified' content='20 January 2020'/> | 
| 11 | <meta name=' warning ' content=' The external prototype declarations in this file are only intended for use with browsers that do not already support the Metadata nodes. '/> | 
| 12 | <meta name='reference' content=' MetadataPrototypes.x3d '/> | 
| 13 | <meta name='subject' content='Metadata nodes, X3D Core component (MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString)'/> | 
| 14 | <meta name='reference' content='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#Metadata'/> | 
| 15 | <meta name='reference' content='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#X3DMetadataObject'/> | 
| 16 | <meta name='reference' content='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#Nodereference'/> | 
| 17 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/development/MetadataExamples.x3d '/> | 
| 18 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> | 
| 19 | <meta name='license' content='../license.html'/> | 
| 20 | </head> | 
 DEF nodes index: 
               
               LinkToExamples,
MetadataBooleanInstance,
MetadataDoubleInstance,
TestMetadataChild
               
               
                  DEF nodes index: 
               
               LinkToExamples,
MetadataBooleanInstance,
MetadataDoubleInstance,
TestMetadataChild
| 21 | <Scene> | 
| 22 | <!-- ==================== --> | 
| 23 | <!-- Do not copy these ExternProtoDeclare statements, they are only included for preparation of X3dToVrml97.xslt stylesheet mappings for backwards compatibility. --> | 
| 24 | <!-- ==================== --> | 
| 25 | <ExternProtoDeclare name='MetadataBoolean' appinfo='MetadataBoolean contains a list of booleans in the value field.' url=' "MetadataPrototypes.x3d#MetadataBoolean" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataBoolean" "MetadataPrototypes.wrl#MetadataBoolean" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataBoolean" '> | 
| 26 | <field name='name' type='SFString' accessType='inputOutput' appinfo='default value'/> | 
| 27 | <field name='value' type='MFBool' accessType='inputOutput' appinfo='default value'/> | 
| 28 | <field name='reference' type='SFString' accessType='inputOutput' appinfo='default value'/> | 
| 29 | <field name='metadata' type='SFNode' accessType='inputOutput' appinfo='Metadata node only'/> | 
| 30 | </ExternProtoDeclare> | 
| 31 | <ExternProtoDeclare name='MetadataDouble' appinfo='MetadataDouble contains a list of double-precision floating-point numbers in the value field.' url=' "MetadataPrototypes.x3d#MetadataDouble" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataDouble" "MetadataPrototypes.wrl#MetadataDouble" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataDouble" '> | 
| 32 | <field name='name' type='SFString' accessType='inputOutput'/> | 
| 33 | <field name='value' type='MFDouble' accessType='inputOutput'/> | 
| 34 | <field name='reference' type='SFString' accessType='inputOutput'/> | 
| 35 | <field name='metadata' type='SFNode' accessType='inputOutput'/> | 
| 36 | </ExternProtoDeclare> | 
| 37 | <ExternProtoDeclare name='MetadataFloat' appinfo='MetadataFloat contains a list of floating-point numbers in the value field.' url=' "MetadataPrototypes.x3d#MetadataFloat" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataFloat" "MetadataPrototypes.wrl#MetadataFloat" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataFloat" '> | 
| 38 | <field name='name' type='SFString' accessType='inputOutput'/> | 
| 39 | <field name='value' type='MFFloat' accessType='inputOutput'/> | 
| 40 | <field name='reference' type='SFString' accessType='inputOutput'/> | 
| 41 | <field name='metadata' type='SFNode' accessType='inputOutput'/> | 
| 42 | </ExternProtoDeclare> | 
| 43 | <ExternProtoDeclare name='MetadataInteger' appinfo='MetadataInteger contains a list of 32-bit integer numbers in the value field.' url=' "MetadataPrototypes.x3d#MetadataInteger" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataInteger" "MetadataPrototypes.wrl#MetadataInteger" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataInteger" '> | 
| 44 | <field name='name' type='SFString' accessType='inputOutput'/> | 
| 45 | <field name='value' type='MFInt32' accessType='initializeOnly'/> | 
| 46 | <field name='set_value' type='MFInt32' accessType='inputOnly'/> | 
| 47 | <field name='reference' type='SFString' accessType='inputOutput'/> | 
| 48 | <field name='metadata' type='SFNode' accessType='inputOutput'/> | 
| 49 | </ExternProtoDeclare> | 
| 50 | <ExternProtoDeclare name='MetadataSet' appinfo='MetadataSet contains a list of nodes in the value field.' url=' "MetadataPrototypes.x3d#MetadataSet" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataSet" "MetadataPrototypes.wrl#MetadataSet" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataSet" '> | 
| 51 | <field name='name' type='SFString' accessType='inputOutput'/> | 
| 52 | <field name='value' type='MFNode' accessType='inputOutput'/> | 
| 53 | <field name='reference' type='SFString' accessType='inputOutput'/> | 
| 54 | <field name='metadata' type='SFNode' accessType='inputOutput'/> | 
| 55 | </ExternProtoDeclare> | 
| 56 | <ExternProtoDeclare name='MetadataString' appinfo='MetadataString contains a set of strings in the value field.' url=' "MetadataPrototypes.x3d#MetadataString" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataString" "MetadataPrototypes.wrl#MetadataString" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataString" '> | 
| 57 | <field name='name' type='SFString' accessType='inputOutput'/> | 
| 58 | <field name='value' type='MFString' accessType='inputOutput'/> | 
| 59 | <field name='reference' type='SFString' accessType='inputOutput'/> | 
| 60 | <field name='metadata' type='SFNode' accessType='inputOutput'/> | 
| 61 | </ExternProtoDeclare> | 
| 62 | <!-- =========================== --> | 
| 63 | <!-- Example Metadata node usage --> | 
| 64 | <!-- =========================== --> | 
| 65 | <Group> | 
| 66 | <MetadataBoolean DEF='MetadataBooleanInstance' name='sample boolean data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataBoolean' value='true false true'/> | 
| 67 | <Transform> | 
| 68 | 
                    <!-- MetadataDouble
                                    MetadataDoubleInstance is a DEF node that has 1 USE node: USE_1 --> <MetadataDouble DEF='MetadataDoubleInstance' name='sample double data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataDouble' value='1.0 2.0 3.0'/> | 
| 69 | </Transform> | 
| 70 | <Transform> | 
| 71 | <MetadataFloat name='sample float data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataFloat' value='1.0 2.0 3.0'> | 
| 72 | <MetadataDouble USE='MetadataDoubleInstance'/> | 
| 73 | <!-- metadata child of metadata node (also note nested PROTO here, when translated) --> | 
| 74 | </MetadataFloat> | 
| 75 | </Transform> | 
| 76 | <Transform> | 
| 77 | <MetadataInteger name='sample integer data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataInteger' value='1 2 3'/> | 
| 78 | </Transform> | 
| 79 | <Transform> | 
| 80 | <MetadataSet name='sample data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataSet'> | 
| 81 | <MetadataString name='containerFieldDefaultTest' value='"This initial node is containerField=metadata on the MetadataSet, not part of the containerField=value set"'/> | 
| 82 | <!-- be sure to set containerField='value' for all members of the contained set! --> | 
| 83 | <MetadataBoolean containerField='value' name='MetadataSetValue1' value='true false true'/> | 
| 84 | <MetadataDouble containerField='value' name='MetadataSetValue2' value='0 1 2'/> | 
| 85 | <MetadataFloat containerField='value' name='MetadataSetValue3' value='3 4 5'/> | 
| 86 | <MetadataInteger containerField='value' name='MetadataSetValue4' value='6 7 8'/> | 
| 87 | <MetadataString containerField='value' name='MetadataSetValue5' value='"string1" "string2"'/> | 
| 88 | </MetadataSet> | 
| 89 | </Transform> | 
| 90 | <Transform> | 
| 91 | <MetadataString name='sample string data' reference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataString' value='"one two three" "four five six"'/> | 
| 92 | </Transform> | 
| 93 | <Group> | 
| 94 | <WorldInfo DEF='TestMetadataChild'> | 
| 95 | <MetadataString name='Backwards compatibility note' value='"Metadata nodes are converted into comments when children [ ] field is not available in parent node"'/> | 
| 96 | </WorldInfo> | 
| 97 | </Group> | 
| 98 | </Group> | 
| 99 | <!-- ==================== --> | 
| 100 | <Anchor DEF='LinkToExamples' description='link to examples' parameter='"target=_blank"' url=' "MetadataExamples.html" "https://www.web3d.org/x3d/content/examples/Basic/development/MetadataExamplesIndex.html" '> | 
| 101 | <Shape> | 
| 102 | <Appearance> | 
| 103 | <Material diffuseColor='0.8 0.6 0.2'/> | 
| 104 | </Appearance> | 
| 105 | <Text string='"MetadataExamples is a developmental file to define" "EXTERNPROTO signatures in VRML 97 syntax" "Example usage of Metadata nodes also included." "" "Click text to view source"'> | 
| 106 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> | 
| 107 | </Text> | 
| 108 | </Shape> | 
| 109 | </Anchor> | 
| 110 | </Scene> | 
| 111 | </X3D> | 
 DEF nodes index: 
         
         LinkToExamples,
MetadataBooleanInstance,
MetadataDoubleInstance,
TestMetadataChild
         
         
            DEF nodes index: 
         
         LinkToExamples,
MetadataBooleanInstance,
MetadataDoubleInstance,
TestMetadataChild
Event Graph ROUTE Table with 0 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.
| LinkToExamples Anchor | description='link to examples' User-interaction hint for this node. | 
         <!--
Color-coding 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)
   
<ProtoDeclare name='ProtoName'>
	<field
         name='fieldName'/> </ProtoDeclare>
 -->
      
         
             <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->
         
         <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->