Package org.web3d.x3d.sai.Shape
Interface AcousticProperties
- All Superinterfaces:
X3DAppearanceChildNode
,X3DNode
- All Known Implementing Classes:
AcousticProperties
AcousticProperties specifies the interaction of sound waves with characteristics of geometric objects in the scene.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
AcousticProperties node tooltip: [X3DAppearanceChildNode] AcousticProperties specifies the interaction of sound waves with characteristics of geometric objects in the scene. Acoustic coefficient values are expected to fully account for physical and structural characteristics of associated geometry such as width, height, thickness, shape, softness and/or hardness, and density variations.
- Hint: AcousticProperties must have a parent Appearance node, and only affects geometry within the same Shape.
- Hint: proxy geometry for acoustic response can be far simpler than geometry needed for visual rendering.
- Hint: X3D Architecture Figure 16.2 Sound Propagation Phenomena https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS /Part01/components/sound.html#f-SoundPropagationPhenomena
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named absorption.Provide String value from inputOutput SFString field named description.float
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named diffuse.boolean
Provide boolean value from inputOutput SFBool field named enabled.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.float
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named refraction.float
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named specular.setAbsorption
(float newValue) Accessor method to assign float value to inputOutput SFFloat field named absorption.setDescription
(String newValue) Accessor method to assign String value to inputOutput SFString field named description.setDiffuse
(float newValue) Accessor method to assign float value to inputOutput SFFloat field named diffuse.setEnabled
(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named enabled.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setRefraction
(float newValue) Accessor method to assign float value to inputOutput SFFloat field named refraction.setSpecular
(float newValue) Accessor method to assign float value to inputOutput SFFloat field named specular.
-
Method Details
-
getAbsorption
float getAbsorption()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named absorption.
Tooltip: [0,1] specifies the sound absorption coefficient of a surface, meaning the ratio of sound intensity not reflected by a surface. *- Returns:
- value of absorption field
-
setAbsorption
Accessor method to assign float value to inputOutput SFFloat field named absorption.
Tooltip: [0,1] specifies the sound absorption coefficient of a surface, meaning the ratio of sound intensity not reflected by a surface. *- Parameters:
newValue
- is new value for the absorption field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDescription
String getDescription()Provide String value from inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of the url asset.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Returns:
- value of description field
-
setDescription
Accessor method to assign String value to inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of the url asset.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Parameters:
newValue
- is new value for the description field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDiffuse
float getDiffuse()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named diffuse.
Tooltip: [0,1] diffuse coefficient of sound reflection indicates how much of the incident sound energy is reflected back in multiple directions. *- Returns:
- value of diffuse field
-
setDiffuse
Accessor method to assign float value to inputOutput SFFloat field named diffuse.
Tooltip: [0,1] diffuse coefficient of sound reflection indicates how much of the incident sound energy is reflected back in multiple directions. *- Parameters:
newValue
- is new value for the diffuse field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getEnabled
boolean getEnabled()Provide boolean value from inputOutput SFBool field named enabled.
Tooltip: Enables/disables node operation. *- Returns:
- value of enabled field
-
setEnabled
Accessor method to assign boolean value to inputOutput SFBool field named enabled.
Tooltip: Enables/disables node operation. *- Parameters:
newValue
- is new value for the enabled field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS /Part01/components/core.html#Metadata
- Specified by:
getMetadata
in interfaceX3DAppearanceChildNode
- Specified by:
getMetadata
in interfaceX3DNode
- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS /Part01/components/core.html#Metadata
- Specified by:
setMetadata
in interfaceX3DAppearanceChildNode
- Specified by:
setMetadata
in interfaceX3DNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getRefraction
float getRefraction()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named refraction.
Tooltip: [0,1] sound refraction coefficient of a medium, which determines change in propagation direction of sound wave when obliquely crossing boundary between two mediums where its speed is different.- Hint: relationships described by Snell's Law https://en.wikipedia.org/wiki/Snell%27s_law
- Returns:
- value of refraction field
-
setRefraction
Accessor method to assign float value to inputOutput SFFloat field named refraction.
Tooltip: [0,1] sound refraction coefficient of a medium, which determines change in propagation direction of sound wave when obliquely crossing boundary between two mediums where its speed is different.- Hint: relationships described by Snell's Law https://en.wikipedia.org/wiki/Snell%27s_law
- Parameters:
newValue
- is new value for the refraction field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getSpecular
float getSpecular()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named specular.
Tooltip: [0,1] specular coefficient of sound reflection striking a plane surface, directly reflected back into space, where angle of reflection equals angle of incidence. *- Returns:
- value of specular field
-
setSpecular
Accessor method to assign float value to inputOutput SFFloat field named specular.
Tooltip: [0,1] specular coefficient of sound reflection striking a plane surface, directly reflected back into space, where angle of reflection equals angle of incidence. *- Parameters:
newValue
- is new value for the specular field.- Returns:
AcousticProperties
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-