Package mgui.interfaces.tools.graphics
Class ToolMouseOrbit3D
java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.graphics.ToolMouseOrbit3D
- All Implemented Interfaces:
java.lang.Cloneable,PopupMenuObject,Tool,ToolInputListener,IconObject
public class ToolMouseOrbit3D extends Tool3D
Tool to allow user to navigate a Graphic3D interface using the mouse. Allows
zoom, pan, and rotate operations which alter a Camera3D object (which in turn alters
the ViewingPlatform transform via Map3D in the Java3D universe). While the OrbitBehavior
class performs these functions well, the present class allows interaction with an
accessible Map3D object, which is desired as an interface for other aspects of this object
model.
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description doublepanRatedoublerotateRateCamera3DtheCameradoublezoomRateFields inherited from class mgui.interfaces.tools.graphics.Tool3D
icon, isImmediate, listeners, name, previous_tool, targetPanel, targetShape, toolPhase -
Constructor Summary
Constructors Constructor Description ToolMouseOrbit3D()ToolMouseOrbit3D(InterfaceGraphic3D target) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()voidhandleToolEvent(ToolInputEvent e)Handle this tool eventprotected voidsetIcon()voidsetPanRate(double newRate)voidsetRotateRate(double newRate)voidsetTargetPanel(InterfacePanel panel)voidsetZoomRate(double newRate)Methods inherited from class mgui.interfaces.tools.graphics.Tool3D
activate, addListener, deactivate, fireDeactivated, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isExclusive, isImmediate, removeListener, setTargetShape, showPopupMenuMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
zoomRate
public double zoomRate -
panRate
public double panRate -
rotateRate
public double rotateRate -
theCamera
-
-
Constructor Details
-
ToolMouseOrbit3D
public ToolMouseOrbit3D() -
ToolMouseOrbit3D
-
-
Method Details
-
setTargetPanel
- Specified by:
setTargetPanelin interfaceTool- Overrides:
setTargetPanelin classTool3D
-
setZoomRate
public void setZoomRate(double newRate) -
setPanRate
public void setPanRate(double newRate) -
setRotateRate
public void setRotateRate(double newRate) -
handleToolEvent
Description copied from interface:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Overrides:
handleToolEventin classTool3D
-
clone
public java.lang.Object clone() -
setIcon
protected void setIcon()
-