j3d.examples.stereo
Class MouseMultiplexor

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 com.sun.j3d.utils.behaviors.mouse.MouseRotate
                          extended by j3d.examples.stereo.MouseMultiplexor
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class MouseMultiplexor
extends com.sun.j3d.utils.behaviors.mouse.MouseRotate

Copyright 2007, DocJava, Inc. User: dlyon Date: Mar 1, 2007 Time: 3:59:51 PM


Field Summary
 
Fields inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
INVERT_INPUT, MANUAL_WAKEUP
 
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
MouseMultiplexor(javax.media.j3d.Canvas3D c1, javax.media.j3d.Canvas3D c2)
           
 
Method Summary
 void initFrame()
           
static java.awt.Image mux(java.awt.Image img1, java.awt.Image img2)
          Input img1, img2, output the OutputImage.
 void processMouseEvent(java.awt.event.MouseEvent e)
           
 void showMuxImage()
           
 
Methods inherited from class com.sun.j3d.utils.behaviors.mouse.MouseRotate
getXFactor, getYFactor, initialize, processStimulus, setFactor, setFactor, setupCallback, transformChanged
 
Methods inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
addListener, getTransformGroup, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setEnable, setTransformGroup, wakeup
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseMultiplexor

public MouseMultiplexor(javax.media.j3d.Canvas3D c1,
                        javax.media.j3d.Canvas3D c2)
Method Detail

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent e)
Overrides:
processMouseEvent in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior

showMuxImage

public void showMuxImage()
                  throws java.awt.AWTException
Throws:
java.awt.AWTException

initFrame

public void initFrame()
               throws java.awt.AWTException
Throws:
java.awt.AWTException

mux

public static java.awt.Image mux(java.awt.Image img1,
                                 java.awt.Image img2)
Input img1, img2, output the OutputImage. Use left-right multiplexing to overwrite the pixels in the outputImage

Parameters:
img1 -
img2 -