Package mgui.interfaces.tools
Class ToolBehavior3DAdapter
java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
mgui.interfaces.tools.ToolBehavior3DAdapter
- All Implemented Interfaces:
java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener
public class ToolBehavior3DAdapter
extends org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
Adapter to act as bridge between AWT Behaviors and the Tools that respond to
them.
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description Map3DtheMapstatic intTOOL_IMMEDIATEstatic intTOOL_MOUSE_CLICKEDstatic intTOOL_MOUSE_DCLICKEDstatic intTOOL_MOUSE_DOWNstatic intTOOL_MOUSE_DRAGGEDstatic intTOOL_MOUSE_MDRAGGEDstatic intTOOL_MOUSE_MOVEDstatic intTOOL_MOUSE_RCLICKEDstatic intTOOL_MOUSE_RDRAGGEDstatic intTOOL_MOUSE_UPstatic intTOOL_MOUSE_WHEELFields inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
canvases, frameWakeup, KEY_LISTENER, motion, MOUSE_LISTENER, MOUSE_MOTION_LISTENER, MOUSE_WHEEL_LISTENER, POST_ID, postWakeup, targetTransformFields inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
homeTransform, targetTG, vpFields inherited from class org.jogamp.java3d.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
Constructors Constructor Description ToolBehavior3DAdapter(org.jogamp.java3d.Canvas3D c, Map3D map) -
Method Summary
Modifier and Type Method Description voidaddListener(ToolInputListener thisListener)voidfireToolEvent(ToolInputEvent e)protected voidintegrateTransforms()voidmouseClicked(java.awt.event.MouseEvent e)voidmouseDragged(java.awt.event.MouseEvent e)voidmouseMoved(java.awt.event.MouseEvent arg0)voidmouseReleased(java.awt.event.MouseEvent e)voidmouseWheelMoved(java.awt.event.MouseWheelEvent e)protected voidprocessAWTEvents(java.awt.AWTEvent[] arg0)voidremoveListener(ToolInputListener thisListener)voidsetMap3D(Map3D m)Methods inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
initialize, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mousePressed, processStimulus, queueAWTEvent, setEnable, setListenerFlags, setViewingPlatformMethods inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
getHomeTransform, getViewingPlatform, goHome, setHomeTransformMethods inherited from class org.jogamp.java3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOnMethods inherited from class org.jogamp.java3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickableMethods inherited from class org.jogamp.java3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
theMap
-
TOOL_MOUSE_CLICKED
public static final int TOOL_MOUSE_CLICKED- See Also:
- Constant Field Values
-
TOOL_MOUSE_MOVED
public static final int TOOL_MOUSE_MOVED- See Also:
- Constant Field Values
-
TOOL_MOUSE_DRAGGED
public static final int TOOL_MOUSE_DRAGGED- See Also:
- Constant Field Values
-
TOOL_MOUSE_MDRAGGED
public static final int TOOL_MOUSE_MDRAGGED- See Also:
- Constant Field Values
-
TOOL_MOUSE_RDRAGGED
public static final int TOOL_MOUSE_RDRAGGED- See Also:
- Constant Field Values
-
TOOL_MOUSE_DCLICKED
public static final int TOOL_MOUSE_DCLICKED- See Also:
- Constant Field Values
-
TOOL_MOUSE_RCLICKED
public static final int TOOL_MOUSE_RCLICKED- See Also:
- Constant Field Values
-
TOOL_MOUSE_WHEEL
public static final int TOOL_MOUSE_WHEEL- See Also:
- Constant Field Values
-
TOOL_MOUSE_UP
public static final int TOOL_MOUSE_UP- See Also:
- Constant Field Values
-
TOOL_MOUSE_DOWN
public static final int TOOL_MOUSE_DOWN- See Also:
- Constant Field Values
-
TOOL_IMMEDIATE
public static final int TOOL_IMMEDIATE- See Also:
- Constant Field Values
-
-
Constructor Details
-
ToolBehavior3DAdapter
-
-
Method Details
-
fireToolEvent
-
addListener
-
removeListener
-
setMap3D
-
integrateTransforms
protected void integrateTransforms()- Specified by:
integrateTransformsin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener- Overrides:
mouseDraggedin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Overrides:
mouseClickedin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent arg0)- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener- Overrides:
mouseMovedin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Overrides:
mouseReleasedin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)- Specified by:
mouseWheelMovedin interfacejava.awt.event.MouseWheelListener- Overrides:
mouseWheelMovedin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
processAWTEvents
protected void processAWTEvents(java.awt.AWTEvent[] arg0)- Specified by:
processAWTEventsin classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-