X3D Model Documentation: MetadataExamples.x3d

  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='titlecontent='MetadataExamples.x3d'/>
  6            <meta name='descriptioncontent='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='hintcontent='Metadata nodes may be repositioned by a few lines if VRML97 parent node does not support the children field.'/>
  8            <meta name='creatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='17 November 2003'/>
 10            <meta name='modifiedcontent='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='referencecontent='MetadataPrototypes.x3d'/>
 13            <meta name='subjectcontent='Metadata nodes, X3D Core component (MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString)'/>
 14            <meta name='referencecontent='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#Metadata'/>
 15            <meta name='referencecontent='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#X3DMetadataObject'/>
 16            <meta name='referencecontent='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#Nodereference'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/development/MetadataExamples.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, 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: LinkToExamples, MetadataBooleanInstance, MetadataDoubleInstance, TestMetadataChild

Index for ExternProtoDeclare definitions: MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString
-->
 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='MetadataBooleanappinfo='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='nametype='SFStringaccessType='inputOutput'
                appinfo='default value'/>
 27                 <field name='valuetype='MFBoolaccessType='inputOutput'
                appinfo='default value'/>
 28                 <field name='referencetype='SFStringaccessType='inputOutput'
                appinfo='default value'/>
 29                 <field name='metadatatype='SFNodeaccessType='inputOutput'
                appinfo='Metadata node only'/>
 30            </ExternProtoDeclare>
 31            <ExternProtoDeclare name='MetadataDoubleappinfo='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='nametype='SFStringaccessType='inputOutput'/>
 33                 <field name='valuetype='MFDoubleaccessType='inputOutput'/>
 34                 <field name='referencetype='SFStringaccessType='inputOutput'/>
 35                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 36            </ExternProtoDeclare>
 37            <ExternProtoDeclare name='MetadataFloatappinfo='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='nametype='SFStringaccessType='inputOutput'/>
 39                 <field name='valuetype='MFFloataccessType='inputOutput'/>
 40                 <field name='referencetype='SFStringaccessType='inputOutput'/>
 41                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 42            </ExternProtoDeclare>
 43            <ExternProtoDeclare name='MetadataIntegerappinfo='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='nametype='SFStringaccessType='inputOutput'/>
 45                 <field name='valuetype='MFInt32accessType='initializeOnly'/>
 46                 <field name='set_valuetype='MFInt32accessType='inputOnly'/>
 47                 <field name='referencetype='SFStringaccessType='inputOutput'/>
 48                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 49            </ExternProtoDeclare>
 50            <ExternProtoDeclare name='MetadataSetappinfo='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='nametype='SFStringaccessType='inputOutput'/>
 52                 <field name='valuetype='MFNodeaccessType='inputOutput'/>
 53                 <field name='referencetype='SFStringaccessType='inputOutput'/>
 54                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 55            </ExternProtoDeclare>
 56            <ExternProtoDeclare name='MetadataStringappinfo='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='nametype='SFStringaccessType='inputOutput'/>
 58                 <field name='valuetype='MFStringaccessType='inputOutput'/>
 59                 <field name='referencetype='SFStringaccessType='inputOutput'/>
 60                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 61            </ExternProtoDeclare>
 62            <!-- =========================== -->
 63            <!-- Example Metadata node usage -->
 64            <!-- =========================== -->
 65            <Group>
 66                 <MetadataBoolean DEF='MetadataBooleanInstancename='sample boolean datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataBooleanvalue='true false true'/>
 67                 <Transform>
 68 
                    <!-- MetadataDouble MetadataDoubleInstance is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataDouble DEF='MetadataDoubleInstancename='sample double datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataDoublevalue='1.0 2.0 3.0'/>
 69                 </Transform>
 70                 <Transform>
 71                      <MetadataFloat name='sample float datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataFloatvalue='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 datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataIntegervalue='1 2 3'/>
 78                 </Transform>
 79                 <Transform>
 80                      <MetadataSet name='sample datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataSet'>
 81                           <MetadataString name='containerFieldDefaultTestvalue='"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='valuename='MetadataSetValue1value='true false true'/>
 84                           <MetadataDouble containerField='valuename='MetadataSetValue2value='0 1 2'/>
 85                           <MetadataFloat containerField='valuename='MetadataSetValue3value='3 4 5'/>
 86                           <MetadataInteger containerField='valuename='MetadataSetValue4value='6 7 8'/>
 87                           <MetadataString containerField='valuename='MetadataSetValue5value='"string1" "string2"'/>
 88                      </MetadataSet>
 89                 </Transform>
 90                 <Transform>
 91                      <MetadataString name='sample string datareference='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/core.html#MetadataStringvalue='"one two three" "four five six"'/>
 92                 </Transform>
 93                 <Group>
 94                      <WorldInfo DEF='TestMetadataChild'>
 95                           <MetadataString name='Backwards compatibility notevalue='"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='LinkToExamplesdescription='link to examplesparameter='"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>
<!--

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

<!-- to top Index for DEF nodes: LinkToExamples, MetadataBooleanInstance, MetadataDoubleInstance, TestMetadataChild

Index for ExternProtoDeclare definitions: MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString
-->
X3D Tooltips element index: Anchor, Appearance, ExternProtoDeclare, field, FontStyle, Group, head, Material, meta, MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString, Scene, Shape, Text, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

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. 
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/Basic/development/MetadataExamplesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/MetadataExamples.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)
    <ProtoDeclare name='ProtoName'> <field name='fieldName'/> </ProtoDeclare> -->

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