PickTranslateBehavior(BranchGroup root, Canvas3D canvas, Bounds bounds, int pickMode) Creates a pick/translate behavior that waits for user mouse events for
the scene graph.
Parameters: root - Root of your scene graph. Parameters: canvas - Java 3D drawing canvas. Parameters: bounds - Bounds of your scene. Parameters: 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 Summary
public int
getPickMode() Return the pickMode component of this PickTranslaeBehavior.
public void
setPickMode(int pickMode) Sets the pickMode component of this PickTranslateBehavior to the value of
the passed pickMode.
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. Parameters: canvas - Java 3D drawing canvas. Parameters: bounds - Bounds of your scene.
Creates a pick/translate behavior that waits for user mouse events for
the scene graph.
Parameters: root - Root of your scene graph. Parameters: canvas - Java 3D drawing canvas. Parameters: bounds - Bounds of your scene. Parameters: 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.
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.
Parameters: xpos - Current mouse X pos. Parameters: ypos - Current mouse Y pos.
Fields inherited from com.sun.j3d.utils.behaviors.picking.PickMouseBehavior