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 Map3D
theMap
static int
TOOL_IMMEDIATE
static int
TOOL_MOUSE_CLICKED
static int
TOOL_MOUSE_DCLICKED
static int
TOOL_MOUSE_DOWN
static int
TOOL_MOUSE_DRAGGED
static int
TOOL_MOUSE_MDRAGGED
static int
TOOL_MOUSE_MOVED
static int
TOOL_MOUSE_RCLICKED
static int
TOOL_MOUSE_RDRAGGED
static int
TOOL_MOUSE_UP
static int
TOOL_MOUSE_WHEEL
Fields 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, targetTransform
Fields inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
homeTransform, targetTG, vp
Fields 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 void
addListener(ToolInputListener thisListener)
void
fireToolEvent(ToolInputEvent e)
protected void
integrateTransforms()
void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseDragged(java.awt.event.MouseEvent e)
void
mouseMoved(java.awt.event.MouseEvent arg0)
void
mouseReleased(java.awt.event.MouseEvent e)
void
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
protected void
processAWTEvents(java.awt.AWTEvent[] arg0)
void
removeListener(ToolInputListener thisListener)
void
setMap3D(Map3D m)
Methods inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
initialize, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mousePressed, processStimulus, queueAWTEvent, setEnable, setListenerFlags, setViewingPlatform
Methods inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
getHomeTransform, getViewingPlatform, goHome, setHomeTransform
Methods inherited from class org.jogamp.java3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
Methods 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, setPickable
Methods inherited from class org.jogamp.java3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
Methods 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:
integrateTransforms
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
- Overrides:
mouseDragged
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent arg0)- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
- Overrides:
mouseMoved
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)- Specified by:
mouseWheelMoved
in interfacejava.awt.event.MouseWheelListener
- Overrides:
mouseWheelMoved
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
processAWTEvents
protected void processAWTEvents(java.awt.AWTEvent[] arg0)- Specified by:
processAWTEvents
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-