Class NewtMousePickingController
java.lang.Object
org.jzy3d.chart.controllers.AbstractController
org.jzy3d.chart.controllers.camera.AbstractCameraController
org.jzy3d.chart.controllers.mouse.picking.NewtMousePickingController
- All Implemented Interfaces:
com.jogamp.newt.event.MouseListener
,com.jogamp.newt.event.NEWTEventListener
,EventListener
,ICameraMouseController
,IMousePickingController
- Direct Known Subclasses:
NewtMousePickingPan2dController
public class NewtMousePickingController
extends AbstractCameraController
implements com.jogamp.newt.event.MouseListener, IMousePickingController
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected com.jogamp.opengl.glu.GLU
protected float
protected Coord3d
protected PickingSupport
protected Coord2d
protected Coord3d
protected AbstractCameraThreadController
Fields inherited from class org.jzy3d.chart.controllers.camera.AbstractCameraController
perf, updateViewDefault
Fields inherited from class org.jzy3d.chart.controllers.AbstractController
controllerListeners, target
-
Constructor Summary
ConstructorDescriptionNewtMousePickingController
(Chart chart) NewtMousePickingController
(Chart chart, int brushSize) NewtMousePickingController
(Chart chart, int brushSize, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
boolean
handleSlaveThread
(com.jogamp.newt.event.MouseEvent e) void
mouseClicked
(com.jogamp.newt.event.MouseEvent e) void
mouseDragged
(com.jogamp.newt.event.MouseEvent e) 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) void
mouseReleased
(com.jogamp.newt.event.MouseEvent e) void
mouseWheelMoved
(com.jogamp.newt.event.MouseEvent e) Compute zoomprotected void
pick
(int x, int y) protected void
pick
(com.jogamp.newt.event.MouseEvent e) void
void
setPickingSupport
(PickingSupport picking) Methods inherited from class org.jzy3d.chart.controllers.camera.AbstractCameraController
addSlaveThreadController, addThread, getLODPerf, getSlaveThreadController, getThread, isUpdateViewDefault, removeSlaveThreadController, rotate, rotate, rotate, setLODPerf, setUpdateViewDefault, shift, shift, startThreadController, stopThreadController, zoomX, zoomX, zoomY, zoomY, zoomZ, zoomZ
Methods inherited from class org.jzy3d.chart.controllers.AbstractController
addControllerEventListener, fireControllerEvent, getChart, getCharts, removeControllerEventListener, unregister
-
Field Details
-
factor
protected float factor -
lastInc
protected float lastInc -
mouse3d
-
prevMouse3d
-
picking
-
glu
protected com.jogamp.opengl.glu.GLU glu -
prevMouse
-
threadController
-
-
Constructor Details
-
NewtMousePickingController
public NewtMousePickingController() -
NewtMousePickingController
-
NewtMousePickingController
-
NewtMousePickingController
-
-
Method Details
-
register
- Overrides:
register
in classAbstractController
-
dispose
public void dispose()- Overrides:
dispose
in classAbstractCameraController
-
getPickingSupport
- Specified by:
getPickingSupport
in interfaceIMousePickingController
-
setPickingSupport
- Specified by:
setPickingSupport
in interfaceIMousePickingController
-
mouseClicked
public void mouseClicked(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseClicked
in interfacecom.jogamp.newt.event.MouseListener
-
mouseEntered
public void mouseEntered(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseEntered
in interfacecom.jogamp.newt.event.MouseListener
-
mouseExited
public void mouseExited(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseExited
in interfacecom.jogamp.newt.event.MouseListener
-
mouseReleased
public void mouseReleased(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseReleased
in interfacecom.jogamp.newt.event.MouseListener
-
mouseDragged
public void mouseDragged(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseDragged
in interfacecom.jogamp.newt.event.MouseListener
-
mouseWheelMoved
public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e) Compute zoom- Specified by:
mouseWheelMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mouseMoved
public void mouseMoved(com.jogamp.newt.event.MouseEvent e) - Specified by:
mouseMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mousePressed
public void mousePressed(com.jogamp.newt.event.MouseEvent e) - Specified by:
mousePressed
in interfacecom.jogamp.newt.event.MouseListener
-
pick
protected void pick(com.jogamp.newt.event.MouseEvent e) -
pick
protected void pick(int x, int y) -
handleSlaveThread
public boolean handleSlaveThread(com.jogamp.newt.event.MouseEvent e)
-