Class PickTranslateBehavior

    • Constructor Detail

      • PickTranslateBehavior

        public PickTranslateBehavior​(BranchGroup root,
                                     Canvas3D canvas,
                                     Bounds bounds)
        Deprecated.
        Creates a pick/translate 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.
      • PickTranslateBehavior

        public PickTranslateBehavior​(BranchGroup root,
                                     Canvas3D canvas,
                                     Bounds bounds,
                                     int pickMode)
        Deprecated.
        Creates a pick/translate 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 Detail

      • setPickMode

        public void setPickMode​(int pickMode)
        Deprecated.
        Sets the pickMode component of this PickTranslateBehavior 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 PickTranslaeBehavior.
      • 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 MouseTranslate 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