de.jreality.scene.tool
Interface ToolContext


public interface ToolContext


Method Summary
 SceneGraphPath getAvatarPath()
           
 AxisState getAxisState(InputSlot slot)
           
 PickResult getCurrentPick()
           
 Object getKey()
           
 PickSystem getPickSystem()
           
 SceneGraphPath getRootToLocal()
           
 SceneGraphPath getRootToToolComponent()
           
 InputSlot getSource()
           
 long getTime()
           
 DoubleArray getTransformationMatrix(InputSlot slot)
           
 Viewer getViewer()
           
 void reject()
          a tool calls this method during activation if the context is insufficient for activation.
 

Method Detail

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