de.jreality.tools
Class AirplaneTool

java.lang.Object
  extended by de.jreality.scene.tool.AbstractTool
      extended by de.jreality.tools.AirplaneTool
All Implemented Interfaces:
Tool

public class AirplaneTool
extends AbstractTool

Author:
gonska Fly Tool that behaves like an airplane. Use on Node which schould be moved. TODO: - make mouse controling available - make roll,up & down more lazy(an airplane can not react instantly) - what about controling the flight with respect to velocity (no velocity: no turning around?)

Constructor Summary
AirplaneTool()
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 double getRollSpeed()
           
 double getRollUpDownSpeed()
           
 double getRunFactor()
           
 double getThrustFactor()
           
 double getThrustHesitation()
           
 boolean isUpDownInvert()
           
 void perform(ToolContext tc)
          This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.
 void setRollSpeed(double rollSpeed)
           
 void setRollUpDownSpeed(double rollUpDownSpeed)
           
 void setRunFactor(double runFactor)
           
 void setThrustFactor(double thrustFactor)
           
 void setThrustHesitation(double thrustHesitation)
           
 void setUpDownInvert(boolean upDownInvert)
           
 
Methods inherited from class de.jreality.scene.tool.AbstractTool
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

AirplaneTool

public AirplaneTool()
Method Detail

activate

public void activate(ToolContext tc)
Description copied from interface: Tool
This method is called when the tool gets activated. Note that it will never be called if the tool is always active.

Specified by:
activate in interface Tool
Overrides:
activate in class AbstractTool
Parameters:
tc - The current tool context

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

getRollSpeed

public double getRollSpeed()

setRollSpeed

public void setRollSpeed(double rollSpeed)

getRollUpDownSpeed

public double getRollUpDownSpeed()

setRollUpDownSpeed

public void setRollUpDownSpeed(double rollUpDownSpeed)

getRunFactor

public double getRunFactor()

setRunFactor

public void setRunFactor(double runFactor)

getThrustFactor

public double getThrustFactor()

setThrustFactor

public void setThrustFactor(double thrustFactor)

getThrustHesitation

public double getThrustHesitation()

setThrustHesitation

public void setThrustHesitation(double thrustHesitation)

isUpDownInvert

public boolean isUpDownInvert()

setUpDownInvert

public void setUpDownInvert(boolean upDownInvert)