All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.ExponentialFog
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.Node
|
+----java.media.j3d.Leaf
|
+----java.media.j3d.Fog
|
+----java.media.j3d.ExponentialFog
- public class ExponentialFog
- extends Fog
The ExponentialFog leaf node defines fog density parameters for
exponential fog.
-
ALLOW_DENSITY_READ
- Specifies that this ExponentialFog node allows read access to its
density information.
-
ALLOW_DENSITY_WRITE
- Specifies that this ExponentialFog node allows write access to its
density information.
-
ExponentialFog()
- Constructs an ExponentialFog node with default fog parameters.
-
ExponentialFog(Color3f)
- Constructs an ExponentialFog node with the specified fog color.
-
ExponentialFog(Color3f, float)
- Constructs an ExponentialFog node with the specified fog color
and density.
-
ExponentialFog(float, float, float)
- Constructs an ExponentialFog node with the specified fog color.
-
ExponentialFog(float, float, float, float)
- Constructs an ExponentialFog node with the specified fog color
and density.
-
getDensity()
- Gets fog density.
-
setDensity(float)
- Sets fog density.
ALLOW_DENSITY_READ
public static final int ALLOW_DENSITY_READ
- Specifies that this ExponentialFog node allows read access to its
density information.
ALLOW_DENSITY_WRITE
public static final int ALLOW_DENSITY_WRITE
- Specifies that this ExponentialFog node allows write access to its
density information.
ExponentialFog
public ExponentialFog()
- Constructs an ExponentialFog node with default fog parameters.
ExponentialFog
public ExponentialFog(Color3f color)
- Constructs an ExponentialFog node with the specified fog color.
- Parameters:
- color - the fog color
ExponentialFog
public ExponentialFog(Color3f color,
float density)
- Constructs an ExponentialFog node with the specified fog color
and density.
- Parameters:
- color - the fog color
- density - the density of the fog
ExponentialFog
public ExponentialFog(float r,
float g,
float b)
- Constructs an ExponentialFog node with the specified fog color.
- Parameters:
- r - the red component of the fog color
- g - the green component of the fog color
- b - the blue component of the fog color
ExponentialFog
public ExponentialFog(float r,
float g,
float b,
float density)
- Constructs an ExponentialFog node with the specified fog color
and density.
- Parameters:
- r - the red component of the fog color
- g - the green component of the fog color
- b - the blue component of the fog color
- density - the density of the fog
setDensity
public final void setDensity(float density)
- Sets fog density.
- Parameters:
- density - the new density of this fog
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getDensity
public final float getDensity()
- Gets fog density.
- Returns:
- the dentisy of this fog
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
All Packages Class Hierarchy This Package Previous Next Index