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
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, yawTransformFields inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
homeTransform, vpFields 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
ConstructorsConstructorDescriptionPointerBehaviorRenderer(JPanelView parent) Creates new pointer behavior, sets parent dialog, and resets MAX_ANGLE to the true start value. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates a new transform for the image by multiplying the appropriate rotations and translations.protected voidProcesses mouse event.Methods inherited from class gov.nih.mipav.view.renderer.J3D.surfaceview.MouseBehaviorRenderer
getCanvasCenter, getTarget, initialize, isIgnoreMouseMotion, processStimulus, setMaximumAngle, setMaximumVelocity, setTarget, setupCallbackMethods inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
getHomeTransform, getViewingPlatform, goHome, setHomeTransform, setViewingPlatformMethods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOnMethods 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, setPickableMethods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
-
Constructor Details
-
PointerBehaviorRenderer
Creates new pointer behavior, sets parent dialog, and resets MAX_ANGLE to the true start value.- Parameters:
parent- Parent dialog.
-
-
Method Details
-
integrateTransforms
protected void integrateTransforms()Creates a new transform for the image by multiplying the appropriate rotations and translations.- Specified by:
integrateTransformsin classMouseBehaviorRenderer
-
processMouseEvent
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:
processMouseEventin classMouseBehaviorRenderer- Parameters:
evt- Mouse event to process.
-