de.jreality.scene.tool
Interface ToolContext
public interface ToolContext
getViewer
Viewer getViewer()
getSource
InputSlot getSource()
- Returns:
- the source that triggers activation/perform/deactivate.
getTransformationMatrix
DoubleArray getTransformationMatrix(InputSlot slot)
getAxisState
AxisState getAxisState(InputSlot slot)
getTime
long getTime()
- Returns:
- the time stamp of the event that's currently
being processed
getRootToLocal
SceneGraphPath getRootToLocal()
- Returns:
- Returns the path to the current tool if tool is not
activated by picking, path to pick otherwise
getRootToToolComponent
SceneGraphPath getRootToToolComponent()
- Returns:
- Returns the path to the component where the
current tool is attatched
getCurrentPick
PickResult getCurrentPick()
getAvatarPath
SceneGraphPath getAvatarPath()
getPickSystem
PickSystem getPickSystem()
reject
void reject()
- a tool calls this method during activation
if the context is insufficient for activation.
That means the tool is not in activated state after
the activate call. calling this method at any other
time than activation, it has absolutely no effect.
getKey
Object getKey()