net.jbeans.j3d.util.picking.behavior
Class PickMouseBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended bycom.sun.j3d.utils.picking.behaviors.PickMouseBehavior
                      extended bynet.jbeans.j3d.util.picking.behavior.PickMouseBehavior

public class PickMouseBehavior
extends com.sun.j3d.utils.picking.behaviors.PickMouseBehavior

PickMouseBehavior uses new package com.sun.j3d.utils.pickiing.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
PickMouseBehavior

Field Summary
 
Fields inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
buttonPress, conditions, currGrp, debug, mevent, pickCanvas, wakeupCondition
 
Fields inherited from class javax.media.j3d.Node
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_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
 
Constructor Summary
PickMouseBehavior(javax.media.j3d.Canvas3D canvas3d, javax.media.j3d.BranchGroup root, javax.media.j3d.Bounds bounds, int pickMode)
          constructs a new PickMouseBehavior.
 
Method Summary
 void addPickMouseListener(PickMouseListener l)
          Adds a PickMouseListener to the slider.
protected  void firePickedEvent(PickMouseEvent event)
          Send the Pick node to listeners.
protected  void fireSelectedEvent(PickMouseEvent event)
          Send the Selection node to listeners.
 void removePickMouseListener(PickMouseListener l)
          Removes a PickMouseListener from the slider.
 void updateScene(int i, int j)
           
 
Methods inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
getMode, getTolerance, initialize, processStimulus, setMode, setTolerance
 
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, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickMouseBehavior

public PickMouseBehavior(javax.media.j3d.Canvas3D canvas3d,
                         javax.media.j3d.BranchGroup root,
                         javax.media.j3d.Bounds bounds,
                         int pickMode)
constructs a new PickMouseBehavior.

Parameters:
root - Root of your scene graph.
bounds - Bounds of your scene.
pickMode - specifys USE_BOUNDS or USE_GEOMETRY. Note: If pickMode is set to USE_GEOMETRY, all geometry object in the scene graph that allows pickable must have its ALLOW_INTERSECT bit set.
Method Detail

updateScene

public void updateScene(int i,
                        int j)

addPickMouseListener

public void addPickMouseListener(PickMouseListener l)
Adds a PickMouseListener to the slider.

Parameters:
l - the PickMouseListener to add

removePickMouseListener

public void removePickMouseListener(PickMouseListener l)
Removes a PickMouseListener from the slider.

Parameters:
l - the PickMouseListener to remove

firePickedEvent

protected void firePickedEvent(PickMouseEvent event)
Send the Pick node to listeners.


fireSelectedEvent

protected void fireSelectedEvent(PickMouseEvent event)
Send the Selection node to listeners.



Copyright © 1995-2004 net.jbeans. All Rights Reserved.