Class 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.
    • 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 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
    • 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 class MouseBehaviorRenderer
      • 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 class MouseBehaviorRenderer
        Parameters:
        evt - Mouse event to process.