ffe.behaviors
Class PickNodeBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended byffe.behaviors.PickMouseBehavior
                      extended byffe.behaviors.PickNodeBehavior

public class PickNodeBehavior
extends PickMouseBehavior

The PickNodeBehavior class is used to make graphical selections and measurements.


Field Summary
 
Fields inherited from class ffe.behaviors.PickMouseBehavior
buttonPress, conditions, controlButton, currGrp, mevent, pickCanvas, shiftButton, 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
PickNodeBehavior(javax.media.j3d.BranchGroup base, javax.media.j3d.Bounds bounds, Graphics3D g, MainPanel f)
          Constructor
 
Method Summary
 void clear()
          Clear currently selected nodes
 FNode getPick()
           
 java.lang.String getPickLevel()
           
 void resetCount()
           
 void setMode(boolean m)
           
 void setPickLevel(java.lang.String newPick)
           
 void updateScene(int xpos, int ypos)
          Called by Java3D when an atom is picked
 
Methods inherited from class ffe.behaviors.PickMouseBehavior
initialize, processStimulus, 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

PickNodeBehavior

public PickNodeBehavior(javax.media.j3d.BranchGroup base,
                        javax.media.j3d.Bounds bounds,
                        Graphics3D g,
                        MainPanel f)
Constructor

Parameters:
bounds - Behavior bounds
Method Detail

clear

public void clear()
Clear currently selected nodes


getPick

public FNode getPick()

setMode

public void setMode(boolean m)

setPickLevel

public void setPickLevel(java.lang.String newPick)

getPickLevel

public java.lang.String getPickLevel()

resetCount

public void resetCount()

updateScene

public void updateScene(int xpos,
                        int ypos)
Called by Java3D when an atom is picked

Specified by:
updateScene in class PickMouseBehavior
Parameters:
xpos - Horizontal mouse position
ypos - Vertical mouse position