#VRML V2.0 utf8
# X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt
# http://www.web3d.org/x3d/content/X3dToVrml97.xslt
# Generated using XSLT processor: Saxonica
# [X3D] VRML V3.3 utf8
# PROFILE Immersive
# [X3D] version=3.3
# [X3D] noNamespaceSchemaLocation=http://www.web3d.org/specifications/x3d-3.3.xsd
# [head]
# META "title" "MetadataExamples.x3d"
# META "description" "Simple examples of meta statements, comments, WorldInfo node and typed metadata nodes."
# META "creator" "Don Brutzman"
# META "created" "30 September 2011"
# META "modified" "24 February 2016"
# META "info" "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)"
### Info:
# META "info" "Authoring note: MetadataBoolean requires X3D version 3.3, as used in this example scene"
### Info:
# META "reference" "The following referenced chapter is published online but was not included in the printed book."
# META "reference" "Chapter15MetadataInformation.html"
# META "reference" "http://x3dgraphics.com/chapters/Chapter15MetadataInformation.html"
# META "reference" "http://X3dGraphics.com"
# META "reference" "http://www.web3d.org/x3d/content/examples/X3dResources.html"
# META "rights" "Copyright 2006, Daly Realism and Don Brutzman"
# META "subject" "X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
# META "identifier" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter15Metadata/MetadataExamples.x3d"
# META "generator" "X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
# META "license" "../license.html"
EXTERNPROTO MetadataBoolean [
# [appinfo] MetadataBoolean contains a set of double-precision floating-point numbers in the value field.
exposedField SFString name
exposedField MFFloat value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataBoolean"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataBoolean"
"MetadataPrototypes.x3d#MetadataBoolean"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataBoolean"
]
EXTERNPROTO MetadataDouble [
# [appinfo] MetadataDouble contains a set of double-precision floating-point numbers in the value field.
exposedField SFString name
exposedField MFFloat value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataDouble"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataDouble"
"MetadataPrototypes.x3d#MetadataDouble"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataDouble"
]
EXTERNPROTO MetadataFloat [
# [appinfo] MetadataFloat contains a set of floating-point numbers in the value field.
exposedField SFString name
exposedField MFFloat value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataFloat"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataFloat"
"MetadataPrototypes.x3d#MetadataFloat"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataFloat"
]
EXTERNPROTO MetadataInteger [
# [appinfo] MetadataInteger contains a set of 32-bit integer numbers in the value field.
exposedField SFString name
field MFInt32 value
eventIn MFInt32 set_value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataInteger"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataInteger"
"MetadataPrototypes.x3d#MetadataInteger"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataInteger"
]
EXTERNPROTO MetadataSet [
# [appinfo] MetadataSet contains a set of nodes in the value field.
exposedField SFString name
exposedField MFNode value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataSet"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataSet"
"MetadataPrototypes.x3d#MetadataSet"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataSet"
]
EXTERNPROTO MetadataString [
# [appinfo] MetadataString contains a set of strings in the value field.
exposedField SFString name
exposedField MFString value
exposedField SFString reference
exposedField SFNode metadata # [appinfo] Metadata node only
][
"MetadataPrototypes.wrl#MetadataString"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.wrl#MetadataString"
"MetadataPrototypes.x3d#MetadataString"
"http://www.web3d.org/x3d/content/examples/Basic/development/MetadataPrototypes.x3d#MetadataString"
]
# [Scene] ========== ========== ==========
NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
# Comments can appear between nodes (XML elements) but are not retained after a scene is parsed and loaded
# No Metadata nodes are allowed at top level of Scene graph
DEF MyWorldInfo WorldInfo {
info [ "Metadata strings" "can go here" "as string array values" ]
title "MetadataExamples.x3d Example Scene"
### Warning: Metadata nodes are not supported as a child of current node WorldInfo in VRML97 encoding. The child MetadataSet node has been moved to immediately follow the parent WorldInfo.
}
### closing node early, pushing metadata node afterwards as peer instead
# Structured information can go in Metadata nodes. Note that any X3D node can contain a single Metadata node with containerField='metadata'
# metadata
DEF MyMetadataSetNode MetadataSet {
name "Metadata_name"
reference "Standard 1.2.3c"
metadata DEF NestedMetadataSetNode MetadataSet {
name "TestNestedMetadataSetNodes"
value [
USE MyMetadataStringNode
USE MyMetadataIntegerNode
USE MyMetadataFloatNode
MetadataFloat {
name "coefficients"
value [ 3.141592653 2.7128 1 0 ]
}
]
}
# MetadataSet can also contain multiple Metadata nodes with containerField='value'
value [
DEF MyMetadataBooleanNode MetadataBoolean {
name "Coin Flip"
reference "MetadataBoolean allowed in X3D v3.3 and later"
value true false true false
}
DEF MyMetadataDoubleNode MetadataDouble {
name "Metadata_name"
reference "Standard 1.2.3c"
value [ 3.141592658 2.71812181 ]
}
DEF MyMetadataFloatNode MetadataFloat {
name "Metadata_name"
reference "Standard 1.2.3c"
value [ 9.8 6.023e+23 ]
}
DEF MyMetadataIntegerNode MetadataInteger {
name "Metadata_name"
reference "Standard 1.2.3c"
value [ 6 28 496 ]
### Error: SFInt32 attribute value='6 28 496' must contain only 1 value
}
DEF MyMetadataStringNode MetadataString {
name "Metadata_name"
reference "Standard 1.2.3c"
value [ "Part 27" "P27" "p27" ]
}
]
}
Background {
skyColor [ 0 0.439216 0.760784 ]
}
Viewpoint {
description "View scene source to see metadata examples"
position 0 0 9
}
Anchor {
description "view pretty-print scene source"
parameter [ "target=_blank" ]
url [ "MetadataExamples.html" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter15Metadata/MetadataExamples.html" ]
children [
Shape {
geometry Text {
string [ "View scene source" "to see" "metadata examples" ]
fontStyle FontStyle {
justify [ "MIDDLE" "MIDDLE" ]
}
}
appearance Appearance {
material Material {
diffuseColor 1 0.992157 0.039216
}
}
}
]
}