de.jreality.tools
Class AnimatedRotateTool
java.lang.Object
de.jreality.scene.tool.AbstractTool
de.jreality.tools.AnimatedRotateTool
- All Implemented Interfaces:
- Tool
public class AnimatedRotateTool
- extends AbstractTool
Instantly starts an animated rotation of a SceneGraphComponent after initialization of the tool system
when it is added to the components tools.
The rotation angle and axis can be set using the corresponding methods.
The animation stops with a right mouse click.
Method Summary |
double |
getAngle()
|
double[] |
getAxis()
|
java.lang.String |
getDescription()
Gives an overall description of this Tool. |
void |
perform(ToolContext tc)
This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes. |
void |
setAngle(double angle)
|
void |
setAxis(double[] axis)
|
void |
setAxis(double x,
double y,
double z)
|
Methods inherited from class de.jreality.scene.tool.AbstractTool |
activate, addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, hashCode, removeCurrentSlot, setDescription |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
AnimatedRotateTool
public AnimatedRotateTool()
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
getAngle
public double getAngle()
setAngle
public void setAngle(double angle)
getAxis
public double[] getAxis()
setAxis
public void setAxis(double[] axis)
setAxis
public void setAxis(double x,
double y,
double z)
getDescription
public java.lang.String getDescription()
- Description copied from interface:
Tool
- Gives an overall description of this Tool.
- Specified by:
getDescription
in interface Tool
- Overrides:
getDescription
in class AbstractTool
- Returns:
- A description of the Tool including information
about activation and overall behaviour.