public class SelectionBehavior
extends com.sun.j3d.utils.behaviors.mouse.MouseBehavior
Portions of this software is based on the file ColorCube.java, available as part of the Java3D Developer Kit examples, and falls under the license that came with that example. The license is listed at the end of this file. The remainder of the file falls under the standard license for this library.
buttonPress, currXform, enable, flags, invert, INVERT_INPUT, MANUAL_WAKEUP, mouseCriterion, mouseEvents, mouseq, reset, transformGroup, transformX, transformY, wakeUp, x, x_last, y, y_last
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 and Description |
---|
SelectionBehavior(javax.media.j3d.Canvas3D canvas,
javax.media.j3d.BranchGroup root,
javax.media.j3d.Bounds bounds,
GUIState guiState) |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches the Selection Behavior from the Canvas properly, so leaks don't occur.
|
void |
mouseClicked(java.awt.event.MouseEvent evt) |
void |
processStimulus(java.util.Enumeration criteria) |
void |
setSelectsAll(boolean selection,
boolean inspection)
Sets whether mouse-clicking results in selecting all picked elements (true) or just the closest one (false).
|
void |
setTolerance(double tolerance) |
addListener, getTransformGroup, initialize, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, processMouseEvent, setEnable, setTransformGroup, wakeup
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
public SelectionBehavior(javax.media.j3d.Canvas3D canvas, javax.media.j3d.BranchGroup root, javax.media.j3d.Bounds bounds, GUIState guiState)
public void setTolerance(double tolerance)
public void detach()
public void setSelectsAll(boolean selection, boolean inspection)
public void processStimulus(java.util.Enumeration criteria)
processStimulus
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
public void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior