Interface X3DFogObject
- All Known Implementing Classes:
FogObject,LocalFogObject
public interface X3DFogObject
Abstract type describing a node that influences the lighting equation through the use of fog semantics.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
Method Summary
Modifier and Type Method Description float[]getColor()Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named color.java.lang.StringgetFogType()Provide String enumeration value (baseType fogTypeChoices) ["LINEAR" | "EXPONENTIAL"] from inputOutput SFString field named fogType.floatgetVisibilityRange()Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named visibilityRange.X3DFogObjectsetColor(float[] newValue)Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named color.X3DFogObjectsetFogType(java.lang.String newValue)Accessor method to assign String enumeration value ("LINEAR" | "EXPONENTIAL") to inputOutput SFString field named fogType.X3DFogObjectsetVisibilityRange(float newValue)Accessor method to assign float value to inputOutput SFFloat field named visibilityRange.
-
Method Details
-
getColor
float[] getColor()Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named color.- Returns:
- value of color field
-
setColor
Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named color.- Parameters:
newValue- is new value for the color field.- Returns:
X3DFogObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getFogType
java.lang.String getFogType()Provide String enumeration value (baseType fogTypeChoices) ["LINEAR" | "EXPONENTIAL"] from inputOutput SFString field named fogType.- Returns:
- value of fogType field
-
setFogType
Accessor method to assign String enumeration value ("LINEAR" | "EXPONENTIAL") to inputOutput SFString field named fogType.- Parameters:
newValue- is new value for the fogType field.- Returns:
X3DFogObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVisibilityRange
float getVisibilityRange()Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named visibilityRange.- Returns:
- value of visibilityRange field
-
setVisibilityRange
Accessor method to assign float value to inputOutput SFFloat field named visibilityRange.- Parameters:
newValue- is new value for the visibilityRange field.- Returns:
X3DFogObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-