de.jreality.tools
Class AxisTranslationTool

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

public class AxisTranslationTool
extends AbstractTool


Constructor Summary
AxisTranslationTool()
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 boolean getMoveChildren()
           
 double getSnapToGridInterval()
           
 boolean isSnapToGrid()
           
 void perform(ToolContext tc)
          This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.
 void setMoveChildren(boolean moveChildren)
           
 void setSnapToGrid(boolean snapToGrid)
           
 void setSnapToGridInterval(double snapToGridInterval)
           
 
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

AxisTranslationTool

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

getMoveChildren

public boolean getMoveChildren()

setMoveChildren

public void setMoveChildren(boolean moveChildren)

isSnapToGrid

public boolean isSnapToGrid()

setSnapToGrid

public void setSnapToGrid(boolean snapToGrid)

getSnapToGridInterval

public double getSnapToGridInterval()

setSnapToGridInterval

public void setSnapToGridInterval(double snapToGridInterval)