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

  • Constructor Details

    • ToolBehavior3DAdapter

      public ToolBehavior3DAdapter​(org.jogamp.java3d.Canvas3D c, Map3D map)
  • Method Details

    • fireToolEvent

      public void fireToolEvent​(ToolInputEvent e)
    • addListener

      public void addListener​(ToolInputListener thisListener)
    • removeListener

      public void removeListener​(ToolInputListener thisListener)
    • setMap3D

      public void setMap3D​(Map3D m)
    • integrateTransforms

      protected void integrateTransforms()
      Specified by:
      integrateTransforms in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • mouseDragged

      public void mouseDragged​(java.awt.event.MouseEvent e)
      Specified by:
      mouseDragged in interface java.awt.event.MouseMotionListener
      Overrides:
      mouseDragged in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • mouseClicked

      public void mouseClicked​(java.awt.event.MouseEvent e)
      Specified by:
      mouseClicked in interface java.awt.event.MouseListener
      Overrides:
      mouseClicked in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • mouseMoved

      public void mouseMoved​(java.awt.event.MouseEvent arg0)
      Specified by:
      mouseMoved in interface java.awt.event.MouseMotionListener
      Overrides:
      mouseMoved in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • mouseReleased

      public void mouseReleased​(java.awt.event.MouseEvent e)
      Specified by:
      mouseReleased in interface java.awt.event.MouseListener
      Overrides:
      mouseReleased in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • mouseWheelMoved

      public void mouseWheelMoved​(java.awt.event.MouseWheelEvent e)
      Specified by:
      mouseWheelMoved in interface java.awt.event.MouseWheelListener
      Overrides:
      mouseWheelMoved in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
    • processAWTEvents

      protected void processAWTEvents​(java.awt.AWTEvent[] arg0)
      Specified by:
      processAWTEvents in class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior