Class PointerBehaviorRenderer
- 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
-
- gov.nih.mipav.view.renderer.J3D.surfaceview.MouseBehaviorRenderer
-
- gov.nih.mipav.view.renderer.J3D.surfaceview.PointerBehaviorRenderer
-
public class PointerBehaviorRenderer extends MouseBehaviorRenderer
This behavior is supposed to "fly by pointer" - that is, zoom in, translate, and rotate to where the mouse is currently pointing. The velocity shall be constant, and the user will be able to control it though a slider.
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.surfaceview.MouseBehaviorRenderer
awtCondition, bothCondition, canvasBounds, canvasCenter, deadFactor, deadXSize, deadYSize, ignoreMouseMotion, MAX_ANGLE, MAX_VELOCITY, motion, mouseCallback, newTargetTransform, parent, pitchAngle, pitchTransform, spinAngle, spinTransform, targetTG, targetTransform, velocity, velocityTransform, yawAngle, yawTransform
-
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
Constructors Constructor Description PointerBehaviorRenderer(JPanelView parent)
Creates new pointer behavior, sets parent dialog, and resets MAX_ANGLE to the true start value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
integrateTransforms()
Creates a new transform for the image by multiplying the appropriate rotations and translations.protected void
processMouseEvent(java.awt.event.MouseEvent evt)
Processes mouse event.-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.surfaceview.MouseBehaviorRenderer
getCanvasCenter, getTarget, initialize, isIgnoreMouseMotion, processStimulus, setMaximumAngle, setMaximumVelocity, setTarget, setupCallback
-
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
-
-
-
-
Constructor Detail
-
PointerBehaviorRenderer
public PointerBehaviorRenderer(JPanelView parent)
Creates new pointer behavior, sets parent dialog, and resets MAX_ANGLE to the true start value.- Parameters:
parent
- Parent dialog.
-
-
Method Detail
-
integrateTransforms
protected void integrateTransforms()
Creates a new transform for the image by multiplying the appropriate rotations and translations.- Specified by:
integrateTransforms
in classMouseBehaviorRenderer
-
processMouseEvent
protected void processMouseEvent(java.awt.event.MouseEvent evt)
Processes mouse event. For the left mouse button, changes translation; for the right mouse button, changes spin or pitch. If ALT key is down, zooms out.- Specified by:
processMouseEvent
in classMouseBehaviorRenderer
- Parameters:
evt
- Mouse event to process.
-
-