|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Behavior com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior edu.d.umn.behaviors.FlyBehavior edu.d.umn.behaviors.DEMViewerFlyBehavior
public class DEMViewerFlyBehavior
Basically, this is the same type of behavior available with Sun's java3d demo. It is just condensed down into one file, rather than several inheritances. Movement is as follows. Left Click - move forward and backward, turn left and right Middle Click - look up and down, and roll Right Click - change elevation, and strafe left and right
Field Summary | |
---|---|
protected java.util.ArrayList |
modelList
a list of all the models currently in the scene. |
Fields inherited from class edu.d.umn.behaviors.FlyBehavior |
---|
awtCondition, bothCondition, canvasBounds, canvasCenter, deadXSize, deadYSize, ignoreMouseMotion, MAX_ANGLE, maxVelocity, motion, pitchAngle, pitchTransform, rollAngle, rollTransform, targetTG, targetTransform, velocity, velocityTransform, yawAngle, yawTransform |
Fields inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior |
---|
homeTransform, vp |
Fields inherited from class javax.media.j3d.Node |
---|
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Constructor Summary | |
---|---|
DEMViewerFlyBehavior()
Creates a new instance of DEMViewerFlyBehavior |
|
DEMViewerFlyBehavior(java.util.ArrayList modelList,
javax.media.j3d.TransformGroup tg)
Creates a new FlyBehavior |
Method Summary | |
---|---|
void |
aerialView()
Moves the targetTG to get an aerial view centered at the average coordinates of all the ElevationModels currently renedered. |
Methods inherited from class edu.d.umn.behaviors.FlyBehavior |
---|
getTarget, init, initialize, integrateTransforms, levelOff, processAWTEvents, processKeyEvent, processMouseEvent, processStimulus, setMaxSpeed, setTarget |
Methods inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior |
---|
getHomeTransform, getViewingPlatform, goHome, setHomeTransform, setViewingPlatform |
Methods inherited from class javax.media.j3d.Behavior |
---|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn |
Methods inherited from class javax.media.j3d.Node |
---|
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
---|
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList modelList
Constructor Detail |
---|
public DEMViewerFlyBehavior(java.util.ArrayList modelList, javax.media.j3d.TransformGroup tg)
modelList
- A list of all the models that can be seen. Used for the aerial view method to make sure that all models are viewable.tg
- The transform group this behavior will act on.public DEMViewerFlyBehavior()
Method Detail |
---|
public void aerialView()
aerialView
in class FlyBehavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |