All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.LinearFog
java.lang.Object
|
+----javax.media.j3d.SceneGraphObject
|
+----javax.media.j3d.Node
|
+----javax.media.j3d.Leaf
|
+----javax.media.j3d.Fog
|
+----javax.media.j3d.LinearFog
- public class LinearFog
- extends Fog
The LinearFog leaf node defines fog distance parameters for
linear fog.
-
ALLOW_DISTANCE_READ
- Specifies that this LinearFog node allows read access to its distance
information.
-
ALLOW_DISTANCE_WRITE
- Specifies that this LinearFog node allows write access to its distance
information.
-
LinearFog()
- Constructs a LinearFog node with default fog parameters.
-
LinearFog(Color3f)
- Constructs a LinearFog node with the specified fog color.
-
LinearFog(Color3f, double, double)
- Constructs a LinearFog node with the specified fog color and distances.
-
LinearFog(float, float, float)
- Constructs a LinearFog node with the specified fog color.
-
LinearFog(float, float, float, double, double)
- Constructs a LinearFog node with the specified fog color and distances.
-
getBackDistance()
- Gets back distance for fog
-
getFrontDistance()
- Gets front distance for fog
-
setBackDistance(double)
- Sets back distance for fog
-
setFrontDistance(double)
- Sets front distance for fog
ALLOW_DISTANCE_READ
public static final int ALLOW_DISTANCE_READ
- Specifies that this LinearFog node allows read access to its distance
information.
ALLOW_DISTANCE_WRITE
public static final int ALLOW_DISTANCE_WRITE
- Specifies that this LinearFog node allows write access to its distance
information.
LinearFog
public LinearFog()
- Constructs a LinearFog node with default fog parameters.
LinearFog
public LinearFog(Color3f color)
- Constructs a LinearFog node with the specified fog color.
- Parameters:
- color - the fog color
LinearFog
public LinearFog(Color3f color,
double frontDistance,
double backDistance)
- Constructs a LinearFog node with the specified fog color and distances.
- Parameters:
- color - the fog color
- frontDistance - the front distance for the fog
- backDistance - the back distance for the fog
LinearFog
public LinearFog(float r,
float g,
float b)
- Constructs a LinearFog 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
LinearFog
public LinearFog(float r,
float g,
float b,
double frontDistance,
double backDistance)
- Constructs a LinearFog node with the specified fog color and distances.
- 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
- frontDistance - the front distance for the fog
- backDistance - the back distance for the fog
setFrontDistance
public final void setFrontDistance(double frontDistance)
- Sets front distance for fog
- Parameters:
- frontDistance - the distance at which fog starts obscuring objects
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getFrontDistance
public final double getFrontDistance()
- Gets front distance for fog
- Returns:
- the distance at which fog starts obscuring objects
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setBackDistance
public final void setBackDistance(double backDistance)
- Sets back distance for fog
- Parameters:
- backDistance - the distance at which fog totally obscurs objects
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getBackDistance
public final double getBackDistance()
- Gets back distance for fog
- Returns:
- the distance at which fog totally obscurs objects
- 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