Class PickZoomBehavior

All Implemented Interfaces:
MouseBehaviorCallback

public class PickZoomBehavior extends PickMouseBehavior implements MouseBehaviorCallback
Deprecated.
As of Java 3D version 1.2, replaced by com.sun.j3d.utils.picking.behaviors.PickZoomBehavior
See Also:
  • Constructor Details

    • PickZoomBehavior

      public PickZoomBehavior(BranchGroup root, Canvas3D canvas, Bounds bounds)
      Deprecated.
      Creates a pick/zoom behavior that waits for user mouse events for the scene graph. This method has its pickMode set to BOUNDS picking.
      Parameters:
      root - Root of your scene graph.
      canvas - Java 3D drawing canvas.
      bounds - Bounds of your scene.
    • PickZoomBehavior

      public PickZoomBehavior(BranchGroup root, Canvas3D canvas, Bounds bounds, int pickMode)
      Deprecated.
      Creates a pick/zoom behavior that waits for user mouse events for the scene graph.
      Parameters:
      root - Root of your scene graph.
      canvas - Java 3D drawing canvas.
      bounds - Bounds of your scene.
      pickMode - specifys PickObject.USE_BOUNDS or PickObject.USE_GEOMETRY. Note: If pickMode is set to PickObject.USE_GEOMETRY, all geometry object in the scene graph that allows pickable must have its ALLOW_INTERSECT bit set.
  • Method Details

    • setPickMode

      public void setPickMode(int pickMode)
      Deprecated.
      Sets the pickMode component of this PickZoomBehavior to the value of the passed pickMode.
      Parameters:
      pickMode - the pickMode to be copied.
    • getPickMode

      public int getPickMode()
      Deprecated.
      Return the pickMode component of this PickZoomBehavior.
    • updateScene

      public void updateScene(int xpos, int ypos)
      Deprecated.
      Update the scene to manipulate any nodes. This is not meant to be called by users. Behavior automatically calls this. You can call this only if you know what you are doing.
      Specified by:
      updateScene in class PickMouseBehavior
      Parameters:
      xpos - Current mouse X pos.
      ypos - Current mouse Y pos.
    • transformChanged

      public void transformChanged(int type, Transform3D transform)
      Deprecated.
      Callback method from MouseZoom This is used when the Picking callback is enabled
      Specified by:
      transformChanged in interface MouseBehaviorCallback
      Parameters:
      type - will be one of ROTATE, TRANSLATE or ZOOM
    • setupCallback

      public void setupCallback(PickingCallback callback)
      Deprecated.
      Register the class @param callback to be called each time the picked object moves