All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.DistanceLOD

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.media.j3d.Behavior
                                   |
                                   +----java.media.j3d.LOD
                                           |
                                           +----java.media.j3d.DistanceLOD

public class DistanceLOD
extends LOD
A distance-based LOD node that operates on a Switch group node to selects one of the children of the Switch node based on distance from the viewer. For distances 0,..,N where distance[0] is most detail, N is least, the DistanceLOD presents to the traverser a child n when the viewer is > distance[n+1] and <= distance[n] from the center of the Bounds of the DistanceLOD node.


Constructor Index

 o DistanceLOD()
Constructs and initializes a DistanceLOD node.
 o DistanceLOD(float[])
Constructs and initializes a DistanceLOD node.

Method Index

 o getDistance(int)
Returns a particular LOD cut-off distance.
 o initialize()
Initialize method that sets up initial wakeup criteria.
 o numDistances()
Returns a count of the number of LOD distance cut-off parameters.
 o processStimulus(Enumeration)
Process stimulus method that computes appropriate level of detail.
 o setDistance(int, double)
Sets a particular LOD cut-off distance.

Constructors

 o DistanceLOD
 public DistanceLOD()
Constructs and initializes a DistanceLOD node.

 o DistanceLOD
 public DistanceLOD(float distances[])
Constructs and initializes a DistanceLOD node.

Parameters:
distances - a vector of doubles representing LOD cutoff distances

Methods

 o numDistances
 public final int numDistances()
Returns a count of the number of LOD distance cut-off parameters.

Returns:
a count of the LOD cut-off distances
 o getDistance
 public final double getDistance(int whichLOD)
Returns a particular LOD cut-off distance.

Parameters:
whichLOD - an index specifying which LOD distance to return
Returns:
the cut-off distance value associated with the index provided
 o setDistance
 public final void setDistance(int whichLOD,
                               double distance)
Sets a particular LOD cut-off distance.

Parameters:
whichLOD - an index specifying which LOD distance to modify
distance - the cut-off distance associated with the index provided
 o initialize
 public void initialize()
Initialize method that sets up initial wakeup criteria.

Overrides:
initialize in class Behavior
 o processStimulus
 public void processStimulus(Enumeration criteria)
Process stimulus method that computes appropriate level of detail.

Parameters:
criteria - an enumeration of the criteria that caused the stimulus
Overrides:
processStimulus in class Behavior

All Packages  Class Hierarchy  This Package  Previous  Next  Index