org.wilmascope.light
Class DirLightMouseCtrl

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Behavior
                  extended by com.sun.j3d.utils.behaviors.mouse.MouseBehavior
                      extended by org.wilmascope.light.DirLightMouseCtrl
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class DirLightMouseCtrl
extends com.sun.j3d.utils.behaviors.mouse.MouseBehavior

This class enables using mouse to change the direction of the directional light


Field Summary
protected  java.awt.event.MouseEvent mevent
           
 
Fields inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
buttonPress, currXform, enable, flags, invert, INVERT_INPUT, MANUAL_WAKEUP, mouseq, reset, transformGroup, transformX, transformY, wakeUp, x, x_last, y, y_last
 
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
 
Constructor Summary
DirLightMouseCtrl(DirectionalLightPanel panel)
           
 
Method Summary
 void initialize()
          Initializes the wake up event
 void processStimulus(java.util.Enumeration criteria)
          This method processes the mouse event,making the directional light and the corrisponding arrow changing with the mouse movement.
 void setArrow(Arrow arrow)
           
 void setLight(javax.media.j3d.DirectionalLight light)
           
 
Methods inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
addListener, getTransformGroup, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, processMouseEvent, setEnable, setTransformGroup, wakeup
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, 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
 

Field Detail

mevent

protected java.awt.event.MouseEvent mevent
Constructor Detail

DirLightMouseCtrl

public DirLightMouseCtrl(DirectionalLightPanel panel)
Method Detail

initialize

public void initialize()
Initializes the wake up event

Overrides:
initialize in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior

processStimulus

public void processStimulus(java.util.Enumeration criteria)
This method processes the mouse event,making the directional light and the corrisponding arrow changing with the mouse movement.

Specified by:
processStimulus in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior

setArrow

public void setArrow(Arrow arrow)

setLight

public void setLight(javax.media.j3d.DirectionalLight light)