public class ToolSystem extends Object implements ToolEventReceiver
Constructor and Description |
---|
ToolSystem(Viewer viewer,
ToolSystemConfiguration config,
RenderTrigger renderTrigger) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
SceneGraphPath |
getAvatarPath() |
SceneGraphPath |
getEmptyPickPath() |
Object |
getKey() |
PickSystem |
getPickSystem() |
RenderTrigger |
getRenderTrigger() |
ToolSystemConfiguration |
getToolSystemConfiguration()
needed to view the rawmappings later in the deviceManagerPlugin.
|
static ToolSystem |
getToolSystemForViewer(Viewer v)
This method just looks up and returns the possibly null toolsystem associated to viewer
|
void |
initializeSceneTools()
can run only once.
|
void |
processToolEvent(ToolEvent event) |
void |
setAvatarPath(SceneGraphPath p) |
void |
setEmptyPickPath(SceneGraphPath emptyPickPath) |
void |
setPickSystem(PickSystem pickSystem) |
static void |
setToolSystemForViewer(Viewer v,
ToolSystem ts)
add a toolsystem to a viewer that has no toolsystem
|
static ToolSystem |
toolSystemForViewer(Viewer v)
allocate a toolsystem for a viewer
If v has a tool system already associated to it, return it.
|
public ToolSystem(Viewer viewer, ToolSystemConfiguration config, RenderTrigger renderTrigger)
viewer
- the viewerconfig
- the configrenderTrigger
- a rendertrigger to synch or null - the ToolSystem does not take care of
setting/removing the triggers viewer and scene root (on initialize/dispose)public static ToolSystem toolSystemForViewer(Viewer v)
v
- public static ToolSystem getToolSystemForViewer(Viewer v)
v
- public static void setToolSystemForViewer(Viewer v, ToolSystem ts)
v
- ts
- public void initializeSceneTools()
public void processToolEvent(ToolEvent event)
processToolEvent
in interface ToolEventReceiver
public void setPickSystem(PickSystem pickSystem)
public PickSystem getPickSystem()
public void setAvatarPath(SceneGraphPath p)
public SceneGraphPath getAvatarPath()
public void dispose()
public SceneGraphPath getEmptyPickPath()
public void setEmptyPickPath(SceneGraphPath emptyPickPath)
public RenderTrigger getRenderTrigger()
public ToolSystemConfiguration getToolSystemConfiguration()
public Object getKey()