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 double
panRate
double
rotateRate
Camera3D
theCamera
double
zoomRate
Fields 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.Object
clone()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventprotected void
setIcon()
void
setPanRate(double newRate)
void
setRotateRate(double newRate)
void
setTargetPanel(InterfacePanel panel)
void
setZoomRate(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, showPopupMenu
Methods 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:
setTargetPanel
in interfaceTool
- Overrides:
setTargetPanel
in classTool3D
-
setZoomRate
public void setZoomRate(double newRate) -
setPanRate
public void setPanRate(double newRate) -
setRotateRate
public void setRotateRate(double newRate) -
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Overrides:
handleToolEvent
in classTool3D
-
clone
public java.lang.Object clone() -
setIcon
protected void setIcon()
-