element Sound
diagram x3d-3.3_p204.png
type extension of X3DSoundNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString AudioClip MovieTexture ProtoInstance
used by
group ChildContentModelImmersive
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

DEF defines a unique ID name for each node, referencable by other nodes.
USE  xs:IDREF        
appinfo

USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
class  xs:NMTOKENS        
appinfo

The class attribute is a space-separated list of classes, reserved for use by XML stylesheets.
direction  SFVec3f    0 0 1    
intensity  intensityType    1    
location  SFVec3f    0 0 0    
maxBack  derived by: SFFloat    10    
maxFront  derived by: SFFloat    10    
minBack  derived by: SFFloat    1    
minFront  derived by: SFFloat    1    
priority  intensityType    0    
spatialize  SFBool    true    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:element name="source" type="SFNode" fixed="inputOutputField" default="X3DSoundSourceNode"/>
<xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
source <xs:element name="Sound">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:element name="source" type="SFNode" fixed="inputOutputField" default="X3DSoundSourceNode"/>
     
<xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Sound"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
   
</xs:appinfo>
   
<xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/sound.html#Sound"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSoundNode">
       
<xs:group ref="SoundChildContentModel" minOccurs="0"/>
       
<xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>
       
<xs:attribute name="intensity" type="intensityType" default="1"/>
       
<xs:attribute name="location" type="SFVec3f" default="0 0 0"/>
       
<xs:attribute name="maxBack" default="10">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="maxFront" default="10">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="minBack" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="minFront" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="priority" type="intensityType" default="0"/>
       
<xs:attribute name="spatialize" type="SFBool" default="true"/>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute Sound/@direction
type SFVec3f
properties
default 0 0 1
facets
Kind Value Annotation
whiteSpace collapse
pattern ((\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)? (\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)? (\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)?)?
source <xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>

attribute Sound/@intensity
type intensityType
properties
default 1
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="intensity" type="intensityType" default="1"/>

attribute Sound/@location
type SFVec3f
properties
default 0 0 0
facets
Kind Value Annotation
whiteSpace collapse
pattern ((\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)? (\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)? (\+|\-)?(0|[1-9][0-9]*)?(\.[0-9]*)?((E|e)(\+|\-)?[0-9]+)?)?
source <xs:attribute name="location" type="SFVec3f" default="0 0 0"/>

attribute Sound/@maxBack
type restriction of SFFloat
properties
default 10
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="maxBack" default="10">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@maxFront
type restriction of SFFloat
properties
default 10
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="maxFront" default="10">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@minBack
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="minBack" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@minFront
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="minFront" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@priority
type intensityType
properties
default 0
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="priority" type="intensityType" default="0"/>

attribute Sound/@spatialize
type SFBool
properties
default true
source <xs:attribute name="spatialize" type="SFBool" default="true"/>

attribute Sound/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy