Class SAILocalFog
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.environmentaleffects.SAILocalFog
- All Implemented Interfaces:
LocalFog
,X3DChildNode
,X3DFogObject
,X3DNode
A concrete implementation of the LocalFog node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAILocalFog
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getColor
(float[] val) Return the color value in the argument float[]boolean
Return the enabled boolean value.Return the fogType String value.float
Return the visibilityRange float value.void
setColor
(float[] val) Set the color field.void
setEnabled
(boolean val) Set the enabled field.void
setFogType
(String val) Set the fogType field.void
setVisibilityRange
(float val) Set the visibilityRange field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAILocalFog
public SAILocalFog(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceLocalFog
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceLocalFog
- Parameters:
val
- The boolean to set.
-
getColor
public void getColor(float[] val) Return the color value in the argument float[]- Specified by:
getColor
in interfaceX3DFogObject
- Parameters:
val
- The float[] to initialize.
-
setColor
public void setColor(float[] val) Set the color field.- Specified by:
setColor
in interfaceX3DFogObject
- Parameters:
val
- The float[] to set.
-
getFogType
Return the fogType String value.- Specified by:
getFogType
in interfaceX3DFogObject
- Returns:
- The fogType String value.
-
setFogType
Set the fogType field.- Specified by:
setFogType
in interfaceX3DFogObject
- Parameters:
val
- The String to set.
-
getVisibilityRange
public float getVisibilityRange()Return the visibilityRange float value.- Specified by:
getVisibilityRange
in interfaceX3DFogObject
- Returns:
- The visibilityRange float value.
-
setVisibilityRange
public void setVisibilityRange(float val) Set the visibilityRange field.- Specified by:
setVisibilityRange
in interfaceX3DFogObject
- Parameters:
val
- The float to set.
-