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='title' content='MetadataNodeExamplesX3D4.x3d'/> |
6 | <meta name='description' content='Simple examples of meta statements, comments, WorldInfo node and typed metadata nodes.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='30 September 2011'/> |
9 | <meta name='modified' content='30 September 2023'/> |
10 | <meta name='reference' content='Original name MetadataNodeExamples.x3d, split and renamed since handling of metadata containerField defaults changed in X3D4.'/> |
11 | <meta name='reference' content='MetadataNodeExamplesX3D3.x3d'/> |
12 | <meta name='specificationSection' content='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 4 Concepts, 4.3.2 Root nodes'/> |
13 | <meta name='specificationUrl' content='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#Rootnodes'/> |
14 | <meta name='info' content='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='info' content='Authoring note: MetadataBoolean requires X3D version 4.0, as used in this example scene'/> |
16 | <meta name='reference' content='The following referenced chapter is published online but was not included in the printed book.'/> |
17 | <meta name='reference' content='Chapter15MetadataInformation.html'/> |
18 | <meta name='reference' content='https://x3dgraphics.com/chapters/Chapter15MetadataInformation.html'/> |
19 | <meta name='reference' content='https://X3dGraphics.com'/> |
20 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
21 | <meta name='rights' content='Copyright 2006, Daly Realism and Don Brutzman'/> |
22 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
23 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D4.x3d'/> |
24 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
25 | <meta name='license' content='../license.html'/> |
26 | </head> |
27 | <Scene> |
28 | <!-- May 2017: X3D4 Architecture Specification clarification allows Metadata nodes at top level of Scene graph. --> |
29 | <MetadataString name='TestRootMetadataNode' value='"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='MyWorldInfo' info='"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='MyMetadataSetNode' containerField='metadata' name='Metadata_name' reference='SomeReferenceStandard 1.2.3c'> |
34 | <MetadataBoolean DEF='MyMetadataBooleanNode' name='Coin Flip' reference='MetadataBoolean supported in X3D v3.3 and later' value='true false true false'/> |
35 | <MetadataDouble DEF='MyMetadataDoubleNode' name='Metadata_name' reference='SomeReferenceStandard 1.2.3c' value='3.141592658 2.71812181'/> |
36 |
<!-- MetadataFloat
MyMetadataFloatNode is a DEF node that has 1 USE node: USE_1 --> <MetadataFloat DEF='MyMetadataFloatNode' name='Metadata_name' reference='SomeReferenceStandard 1.2.3c' value='9.8 6.023e+23'/> |
37 |
<!-- MetadataInteger
MyMetadataIntegerNode is a DEF node that has 1 USE node: USE_1 --> <MetadataInteger DEF='MyMetadataIntegerNode' name='Metadata_name' reference='SomeReferenceStandard 1.2.3c' value='6 28 496'/> |
38 |
<!-- MetadataString
MyMetadataStringNode is a DEF node that has 1 USE node: USE_1 --> <MetadataString DEF='MyMetadataStringNode' name='Metadata_name' reference='SomeReferenceStandard 1.2.3c' value='"Part 27" "P27" "p27"'/> |
39 | <MetadataSet DEF='NestedMetadataSetNode' containerField='metadata' name='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='coefficients' value='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 examples' position='0 0 9'/> |
50 | <Anchor description='Load scene index page' parameter='"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 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. |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->