de.jreality.tutorial.util
Class FlyTool

java.lang.Object
  extended by de.jreality.scene.tool.AbstractTool
      extended by 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

Constructor Summary
FlyTool()
           
 
Method Summary
 void addChangeListener(ActionListener l)
           
 void broadcastChange()
           
 double getGain()
           
 boolean isShiftIsRotate()
           
 void perform(ToolContext tc)
          This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.
 void removeChangeListener(ActionListener l)
           
 void setGain(double gain)
           
 void setMetric(int sig)
           
 void setShiftIsRotate(boolean shiftIsRotate)
           
 
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
 

Constructor Detail

FlyTool

public FlyTool()
Method Detail

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(ActionListener l)

removeChangeListener

public void removeChangeListener(ActionListener l)

broadcastChange

public void broadcastChange()

isShiftIsRotate

public boolean isShiftIsRotate()

setShiftIsRotate

public void setShiftIsRotate(boolean shiftIsRotate)