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.


Variable Index

 o ALLOW_DENSITY_READ
Specifies that this ExponentialFog node allows read access to its density information.
 o ALLOW_DENSITY_WRITE
Specifies that this ExponentialFog node allows write access to its density information.

Constructor Index

 o ExponentialFog()
Constructs an ExponentialFog node with default fog parameters.
 o ExponentialFog(Color3f)
Constructs an ExponentialFog node with the specified fog color.
 o ExponentialFog(Color3f, float)
Constructs an ExponentialFog node with the specified fog color and density.
 o ExponentialFog(float, float, float)
Constructs an ExponentialFog node with the specified fog color.
 o ExponentialFog(float, float, float, float)
Constructs an ExponentialFog node with the specified fog color and density.

Method Index

 o getDensity()
Gets fog density.
 o setDensity(float)
Sets fog density.

Variables

 o ALLOW_DENSITY_READ
 public static final int ALLOW_DENSITY_READ
Specifies that this ExponentialFog node allows read access to its density information.

 o ALLOW_DENSITY_WRITE
 public static final int ALLOW_DENSITY_WRITE
Specifies that this ExponentialFog node allows write access to its density information.

Constructors

 o ExponentialFog
 public ExponentialFog()
Constructs an ExponentialFog node with default fog parameters.

 o ExponentialFog
 public ExponentialFog(Color3f color)
Constructs an ExponentialFog node with the specified fog color.

Parameters:
color - the fog color
 o 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
 o 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
 o 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

Methods

 o 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
 o 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