|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OGLUserInputHandler
A complete handler for all user input information within a scene.
The handler takes care of all the handling needed for sensors, anchors, navigation and keyboard. However, it does not define a way of sourcing those events as it assumes that a user will either delegate or extend this class with more specific information such as an AWT listener or Java3D behavior.
The current key handling does not allow keyboard navigation of the world. It passes all key events directly through to the current key sensor if one is registered.
| Method Summary | |
|---|---|
void |
setCollisionListener(CollisionListener l)
Set the listener for collision notifications. |
void |
setPickableScene(org.j3d.aviatrix3d.Group scene)
Set the root group that we are doing the picking on. |
void |
setViewInfo(OGLViewpointNodeType vp,
org.j3d.aviatrix3d.TransformGroup tg,
org.j3d.aviatrix3d.SceneGraphPath path)
Set the view and it's related transform group to use and the path to get there from the root of the scene. |
| Method Detail |
|---|
void setPickableScene(org.j3d.aviatrix3d.Group scene)
scene - The scene to pick against
void setViewInfo(OGLViewpointNodeType vp,
org.j3d.aviatrix3d.TransformGroup tg,
org.j3d.aviatrix3d.SceneGraphPath path)
throws java.lang.IllegalArgumentException
vp - The current viewpointtg - The transform just about the viewpoint used to move it
around in response to the UI device inputpath - The path from the root to the transform to use
java.lang.IllegalArgumentException - The terminal node is not a viewpointvoid setCollisionListener(CollisionListener l)
l - The listener to use for change updates
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||