de.jreality.tutorial.util
Class FlyTool
java.lang.Object
de.jreality.scene.tool.AbstractTool
de.jreality.tutorial.util.FlyTool
- All Implemented Interfaces:
- Tool
public class FlyTool
- extends AbstractTool
This tool is designed to sit "above" the camera in the "ship" or "avatar" node and "fly"
in the direction determined by the "PointerShipTransformation" (PST) virtual device. That is, along a
line determined by the last column (position) and next-to-last column (direction) of the
matrix associated to the PST. It operates in a metric-neutral way.
- Author:
- gunn
Methods inherited from class de.jreality.scene.tool.AbstractTool |
activate, addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, removeCurrentSlot, setDescription |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
FlyTool
public FlyTool()
perform
public void perform(ToolContext tc)
- Description copied from interface:
Tool
- This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes.
- Specified by:
perform
in interface Tool
- Overrides:
perform
in class AbstractTool
- Parameters:
tc
- The current tool context
getGain
public double getGain()
setGain
public void setGain(double gain)
setMetric
public void setMetric(int sig)
addChangeListener
public void addChangeListener(java.awt.event.ActionListener l)
removeChangeListener
public void removeChangeListener(java.awt.event.ActionListener l)
broadcastChange
public void broadcastChange()
isShiftIsRotate
public boolean isShiftIsRotate()
setShiftIsRotate
public void setShiftIsRotate(boolean shiftIsRotate)