X3D Model Documentation: MetadataNodeExamplesX3D4.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='Immersive' 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='MetadataNodeExamplesX3D4.x3d'/>
  6            <meta name='descriptioncontent='Simple examples of meta statements, comments, WorldInfo node and typed metadata nodes.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='30 September 2011'/>
  9            <meta name='modifiedcontent='30 September 2023'/>
 10            <meta name='referencecontent='Original name MetadataNodeExamples.x3d, split and renamed since handling of metadata containerField defaults changed in X3D4.'/>
 11            <meta name='referencecontent='MetadataNodeExamplesX3D3.x3d'/>
 12            <meta name='specificationSectioncontent='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 4 Concepts, 4.3.2 Root nodes'/>
 13            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#Rootnodes'/>
 14            <meta name='infocontent='Information in head and meta elements is retained after a scene is parsed and loaded, and can be referenced via the Scene Access Interface (SAI) or Document Object Model (DOM)'/>
 15            <meta name='infocontent='Authoring note: MetadataBoolean requires X3D version 4.0, as used in this example scene'/>
 16            <meta name='referencecontent='The following referenced chapter is published online but was not included in the printed book.'/>
 17            <meta name='referencecontent='Chapter15MetadataInformation.html'/>
 18            <meta name='referencecontent='https://x3dgraphics.com/chapters/Chapter15MetadataInformation.html'/>
 19            <meta name='referencecontent='https://X3dGraphics.com'/>
 20            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 21            <meta name='rightscontent='Copyright 2006, Daly Realism and Don Brutzman'/>
 22            <meta name='subjectcontent='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 23            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D4.x3d'/>
 24            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 25            <meta name='licensecontent='../license.html'/>
 26       </head>
<!--

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

<!-- to top Index for DEF nodes: MyMetadataBooleanNode, MyMetadataDoubleNode, MyMetadataFloatNode, MyMetadataIntegerNode, MyMetadataSetNode, MyMetadataStringNode, MyWorldInfo, NestedMetadataSetNode

Index for Viewpoint node: Viewpoint_1
-->
 27       <Scene>
 28            <!-- May 2017: X3D4 Architecture Specification clarification allows Metadata nodes at top level of Scene graph. -->
 29            <MetadataString name='TestRootMetadataNodevalue='"Check whether scene root Metadata* node is satisfactory." "Note that all SFString values must be quoted."'/>
 30            <!-- Comments can appear between nodes (XML elements) but are not retained after a scene is parsed, loaded and playing -->
 31            <WorldInfo DEF='MyWorldInfoinfo='"Metadata strings" "can go here" "as string array values"title='MetadataNodeExamplesX3D4.x3d Example Scene'>
 32                 <!-- Structured information can go in Metadata nodes. Note that any X3D node can contain a single Metadata node with containerField='metadata' -->
 33                 <MetadataSet DEF='MyMetadataSetNodecontainerField='metadataname='Metadata_namereference='SomeReferenceStandard 1.2.3c'>
 34                      <MetadataBoolean DEF='MyMetadataBooleanNodename='Coin Flipreference='MetadataBoolean supported in X3D v3.3 and latervalue='true false true false'/>
 35                      <MetadataDouble DEF='MyMetadataDoubleNodename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='3.141592658 2.71812181'/>
 36 
                    <!-- MetadataFloat MyMetadataFloatNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataFloat DEF='MyMetadataFloatNodename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='9.8 6.023e+23'/>
 37 
                    <!-- MetadataInteger MyMetadataIntegerNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataInteger DEF='MyMetadataIntegerNodename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='6 28 496'/>
 38 
                    <!-- MetadataString MyMetadataStringNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataString DEF='MyMetadataStringNodename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='"Part 27" "P27" "p27"'/>
 39                      <MetadataSet DEF='NestedMetadataSetNodecontainerField='metadataname='TestNestedMetadataSetNodes'>
 40                           <!-- MetadataSet can also contain multiple Metadata nodes with default containerField='value' including USE nodes -->
 41                           <MetadataString USE='MyMetadataStringNode'/>
 42                           <MetadataInteger USE='MyMetadataIntegerNode'/>
 43                           <MetadataFloat USE='MyMetadataFloatNode'/>
 44                           <MetadataFloat name='coefficientsvalue='3.141592653 2.7128 1 0'/>
 45                      </MetadataSet>
 46                 </MetadataSet>
 47            </WorldInfo>
 48            <Background skyColor='0 0.439216 0.760784'/>
 49            <Viewpoint description='View scene source to see metadata examplesposition='0 0 9'/>
 50            <Anchor description='Load scene index pageparameter='"target=_blank"'   url=' "MetadataNodeExamplesIndex.html" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesIndex.html" '>
 51                 <Shape>
 52                      <Text string='"View scene source" "to see" "metadata examples"'>
 53                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 54                      </Text>
 55                      <Appearance>
 56                           <Material diffuseColor='1 0.992157 0.039216'/>
 57                      </Appearance>
 58                 </Shape>
 59            </Anchor>
 60       </Scene>
 61  </X3D>
<!--

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

<!-- to top Index for DEF nodes: MyMetadataBooleanNode, MyMetadataDoubleNode, MyMetadataFloatNode, MyMetadataIntegerNode, MyMetadataSetNode, MyMetadataStringNode, MyWorldInfo, NestedMetadataSetNode

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Anchor, Appearance, Background, FontStyle, head, Material, meta, MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString, Scene, Shape, Text, Viewpoint, 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='Load scene index page' 
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/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D4Index.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D4.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. -->