de.jreality.tools
Class RotateTool

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

public class RotateTool
extends AbstractTool

TODO: document this

Author:
brinkman

Constructor Summary
RotateTool()
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 void deactivate(ToolContext tc)
          this method is called when the tool was activate and the AxisState of the activation slot changes to AxisState.RELEASED - to zero.
 double getAnimTimeMax()
           
 double getAnimTimeMin()
           
 boolean getMoveChildren()
           
 boolean isFixOrigin()
           
 boolean isRotateOnPick()
           
 boolean isUpdateCenter()
           
 void perform(ToolContext tc)
          This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.
 void setAnimTimeMax(double animTimeMax)
           
 void setAnimTimeMin(double animTimeMin)
           
 void setFixOrigin(boolean fixOrigin)
           
 void setMoveChildren(boolean moveChildren)
           
 void setRotateOnPick(boolean rotateOnPick)
           
 void setUpdateCenter(boolean updateCenter)
           
 
Methods inherited from class de.jreality.scene.tool.AbstractTool
addCurrentSlot, 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

RotateTool

public RotateTool()
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

deactivate

public void deactivate(ToolContext tc)
Description copied from interface: Tool
this method is called when the tool was activate and the AxisState of the activation slot changes to AxisState.RELEASED - to zero. Note that it will never be called for always active tools.

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

getMoveChildren

public boolean getMoveChildren()

setMoveChildren

public void setMoveChildren(boolean moveChildren)

getAnimTimeMax

public double getAnimTimeMax()

setAnimTimeMax

public void setAnimTimeMax(double animTimeMax)

getAnimTimeMin

public double getAnimTimeMin()

setAnimTimeMin

public void setAnimTimeMin(double animTimeMin)

isUpdateCenter

public boolean isUpdateCenter()

setUpdateCenter

public void setUpdateCenter(boolean updateCenter)

isFixOrigin

public boolean isFixOrigin()

setFixOrigin

public void setFixOrigin(boolean fixOrigin)

isRotateOnPick

public boolean isRotateOnPick()

setRotateOnPick

public void setRotateOnPick(boolean rotateOnPick)