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.
-
DistanceLOD()
- Constructs and initializes a DistanceLOD node.
-
DistanceLOD(float[])
- Constructs and initializes a DistanceLOD node.
-
getDistance(int)
- Returns a particular LOD cut-off distance.
-
initialize()
- Initialize method that sets up initial wakeup criteria.
-
numDistances()
- Returns a count of the number of LOD distance cut-off parameters.
-
processStimulus(Enumeration)
- Process stimulus method that computes appropriate level of detail.
-
setDistance(int, double)
- Sets a particular LOD cut-off distance.
DistanceLOD
public DistanceLOD()
- Constructs and initializes a DistanceLOD node.
DistanceLOD
public DistanceLOD(float distances[])
- Constructs and initializes a DistanceLOD node.
- Parameters:
- distances - a vector of doubles representing LOD cutoff distances
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
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
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
initialize
public void initialize()
- Initialize method that sets up initial wakeup criteria.
- Overrides:
- initialize in class Behavior
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