Tracks the ViewPlatform
Generates a rotation about an axis so that the Z-axis points at the
platform
Writes that transform to a target TransformGroup
javax.media.j3d.LOD
javax.media.j3d.DistanceLOD
Tracks the ViewPlatform
Computes a distance to a shape
Maps the distance to Switch group child choices
The LOD abstract class generalizes level-of-detail behaviors
The DistanceLOD class implements distance-based switching level-of-detail
Picking :
The API is distributed among a number of classes . . .
Enable pickability of any node via methods on Node
Initiate a pick using methods on Locale or BranchGroup
Pick methods take as an argument a PickShape
PickBounds, PickPoint, PickRay, PickSegment
Pick methods return one or more SceneGraphPaths
Create a behavior that wakes up on mouse events
On a mouse release:
Construct a PickRay from the eye passing through the 2D mouse screen point
Initiate a pick to find all pick hits along the ray, sorted from closest to
furthest
Get the first pick hit in the returned data
Do something to that picked shape
(Re)declare interest in mouse events