X3D Model Documentation: TestMetadataNodes.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Interchange' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <meta name='titlecontent='TestMetadataNodes.x3d'/>
  6            <meta name='descriptioncontent='Test parentage and type checking of MetadataNodes using X3D4 defaults.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='12 March 2005'/>
  9            <meta name='modifiedcontent='18 May 2024'/>
 10            <meta name='referencecontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#NodeReference'/>
 11            <meta name='referencecontent='https://www.web3d.org/x3d/content/X3dTooltips.html#MetadataDouble'/>
 12            <meta name='subjectcontent='metadata nodes test'/>
 13            <meta name=' warning content=' MetadataString node within NavigationInfo is legal X3D but will cause error when translating to VRML97 due to (previously) disallowed parent node. '/>
 14            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodes.x3d'/>
 15            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 16            <meta name='licensecontent='../license.html'/>
 17       </head>
<!--

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

<!-- to top Index for DEF nodes: M0, M1, M2, M3, M4, M5, M6, TextFont
-->
 18       <Scene>
 19            <WorldInfo title='TestMetadataNodes.x3d'/>
 20            <Background skyColor='0.5 0.5 1'/>
 21            <Anchor description='Click to see documentation example'   url=' "TestMetadataNodesIndex.html" "https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodesIndex.html" '>
 22                 <Shape>
 23                      <Appearance>
 24                           <Material diffuseColor='0.8 0.9 0.9'/>
 25                      </Appearance>
 26                      <Text length='0string='"TestMetadataNodes.x3d" "shows X3D4 Metadata nodes"'>
 27                           <FontStyle DEF='TextFontjustify='"MIDDLE" "MIDDLE"style='BOLD'/>
 28                      </Text>
 29                 </Shape>
 30            </Anchor>
 31            <Group>
 32 
               <!-- MetadataSet M0 is a DEF node that has 1 USE node: USE_1 -->
               <MetadataSet DEF='M0containerField='metadataname='TestSet'>
 33 
                    <!-- MetadataBoolean M1 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataBoolean DEF='M1value='true false true'/>
 34 
                    <!-- MetadataString M2 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataString DEF='M2value='"internal" "metadata"'/>
 35 
                    <!-- MetadataDouble M3 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataDouble DEF='M3value='1.0'/>
 36                      <!-- intermediate comment should not be sorted -->
 37 
                    <!-- MetadataFloat M4 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataFloat DEF='M4value='1.0'/>
 38 
                    <!-- MetadataInteger M5 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataInteger DEF='M5value='1'/>
 39 
                    <!-- MetadataSet M6 is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataSet DEF='M6'>
 40                           <!-- presence of comment will suppress warning about no MetadataSet children found -->
 41                      </MetadataSet>
 42                 </MetadataSet>
 43            </Group>
 44            <NavigationInfo>
 45                 <MetadataString containerField='metadataname='Test illegal parent under VRML97'/>
 46            </NavigationInfo>
 47            <!-- Metadata nodes are allowed as root nodes in X3D4, but must define containerField='metadata' -->
 48            <!-- https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#Rootnodes -->
 49            <MetadataSet USE='M0containerField='metadata'/>
 50            <MetadataBoolean USE='M1containerField='metadata'/>
 51            <MetadataString USE='M2containerField='metadata'/>
 52            <MetadataDouble USE='M3containerField='metadata'/>
 53            <MetadataFloat USE='M4containerField='metadata'/>
 54            <MetadataInteger USE='M5containerField='metadata'/>
 55            <MetadataSet USE='M6containerField='metadata'/>
 56            <!-- Test case: Metadata nodes are only allowed to contain other metadata nodes, test fragment follows -->
 57            <!-- <MetadataSet DEF='ErroneousChild'> <DirectionalLight/> </MetadataSet> -->
 58       </Scene>
 59  </X3D>
<!--

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

<!-- to top Index for DEF nodes: M0, M1, M2, M3, M4, M5, M6, TextFont
-->
X3D Tooltips element index: Anchor, Appearance, Background, FontStyle, Group, head, Material, meta, MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString, NavigationInfo, Scene, Shape, Text, 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.


Anchor
description='Click to see documentation example' 
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/TestMetadataNodesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodes.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)
-->

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