public class ViewMouseController extends ViewCameraController implements com.jogamp.newt.event.MouseListener
Modifier and Type | Field and Description |
---|---|
protected IScreenCanvas |
canvas |
protected Coord2d |
prevMouse |
protected CameraThreadController |
threadController |
controllerListeners, targets
Constructor and Description |
---|
ViewMouseController() |
ViewMouseController(View view) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseSource(IScreenCanvas canvas) |
void |
addSlaveThreadController(CameraThreadController controller) |
void |
dispose() |
void |
mouseClicked(com.jogamp.newt.event.MouseEvent e) |
void |
mouseDragged(com.jogamp.newt.event.MouseEvent e)
Compute shift or rotate
|
void |
mouseEntered(com.jogamp.newt.event.MouseEvent e) |
void |
mouseExited(com.jogamp.newt.event.MouseEvent e) |
void |
mouseMoved(com.jogamp.newt.event.MouseEvent e) |
void |
mousePressed(com.jogamp.newt.event.MouseEvent e)
Handles toggle between mouse rotation/auto rotation: double-click starts
the animated rotation, while simple click stops it.
|
void |
mouseReleased(com.jogamp.newt.event.MouseEvent e) |
void |
mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
Compute zoom
|
void |
removeSlaveThreadController() |
addControllerEventListener, addTarget, fireControllerEvent, removeControllerEventListener, removeTarget, rotate, shift, zoom
protected IScreenCanvas canvas
protected Coord2d prevMouse
protected CameraThreadController threadController
public ViewMouseController()
public ViewMouseController(View view)
public void addMouseSource(IScreenCanvas canvas)
public void dispose()
dispose
in class ViewCameraController
public void addSlaveThreadController(CameraThreadController controller)
public void removeSlaveThreadController()
public void mousePressed(com.jogamp.newt.event.MouseEvent e)
mousePressed
in interface com.jogamp.newt.event.MouseListener
public void mouseDragged(com.jogamp.newt.event.MouseEvent e)
mouseDragged
in interface com.jogamp.newt.event.MouseListener
public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
mouseWheelMoved
in interface com.jogamp.newt.event.MouseListener
public void mouseClicked(com.jogamp.newt.event.MouseEvent e)
mouseClicked
in interface com.jogamp.newt.event.MouseListener
public void mouseEntered(com.jogamp.newt.event.MouseEvent e)
mouseEntered
in interface com.jogamp.newt.event.MouseListener
public void mouseExited(com.jogamp.newt.event.MouseEvent e)
mouseExited
in interface com.jogamp.newt.event.MouseListener
public void mouseReleased(com.jogamp.newt.event.MouseEvent e)
mouseReleased
in interface com.jogamp.newt.event.MouseListener
public void mouseMoved(com.jogamp.newt.event.MouseEvent e)
mouseMoved
in interface com.jogamp.newt.event.MouseListener
Copyright © 2016. All rights reserved.